[Solved] Final compilation errors about GLEW/GL.

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

Tonyx97
Not too shy to talk
Not too shy to talk
Posts: 29
Joined: Sat Sep 12, 2015 20:13

[Solved] Final compilation errors about GLEW/GL.

Postby Tonyx97 » Sat Sep 12, 2015 20:30

Hello guys! This is my first post in CEGUI and I'm new here. I heard about CEGUI in MTA:SA (a multiplayer modification of GTA:SA) and I tried several times to use it with my OpenGL dev engine but I fail always. Now I'm back trying to get CEGUI works in my engine. I've spent a lot of days watching videos and threads about how to compiling CEGUI and his dependencies. Now I'll talk about my problem. First I compile dependencies like every video shows, then I paste the dependencies (built from VS 12 2013) folder to cegui folder then I use CMake to compile CEGUI and it compiles (with a lot of red messages). So, I open VS and I try to compile this https://i.gyazo.com/4d8e9f390fe915d27d2 ... b91c46.png and then I get all this external errors: http://pastebin.com/B8Pj3kkJ how could I fix all these errors?
First CMake checkboxes: https://i.gyazo.com/707b88d4d879defcb23 ... 0cbe07.png
Second CMake checkboxes: https://i.gyazo.com/3fdd09ffebe333096e0 ... 9777c5.png and https://i.gyazo.com/89a5ebf7670bbe9e990 ... add8a8.png

I think I give you all information. If you need something else to try to help me I can provide it. Thanks in advance! :)
Last edited by Tonyx97 on Sun Sep 13, 2015 22:02, edited 1 time in total.

lucebac
Just can't stay away
Just can't stay away
Posts: 193
Joined: Sat May 24, 2014 21:55

Re: Final compilation errors about GLEW/GL.

Postby lucebac » Sat Sep 12, 2015 20:37

What errors did you get from CMake? Can you post them here as well?

Tonyx97
Not too shy to talk
Not too shy to talk
Posts: 29
Joined: Sat Sep 12, 2015 20:13

Re: Final compilation errors about GLEW/GL.

Postby Tonyx97 » Sat Sep 12, 2015 20:42

First CMake compilation: http://pastebin.com/dBRzm1zj
Second CMake compilation: http://pastebin.com/aw9QbsAK
There are warnings but no errors, the problem is when I try to compile in VS 2013, it gives me a lot of unresolved external errors.

lucebac
Just can't stay away
Just can't stay away
Posts: 193
Joined: Sat May 24, 2014 21:55

Re: Final compilation errors about GLEW/GL.

Postby lucebac » Sat Sep 12, 2015 21:39

Well, your second CMake log is pretty clear about what's happening: you are missing all of the dependencies. Are you sure you copied them to the right folder? Have you tried setting CMAKE_PREFIX_PATH to the folder where the dependencies are?

Tonyx97
Not too shy to talk
Not too shy to talk
Posts: 29
Joined: Sat Sep 12, 2015 20:13

Re: Final compilation errors about GLEW/GL.

Postby Tonyx97 » Sat Sep 12, 2015 21:53

First I use CMake with this folder https://gyazo.com/243d42229e024bf7a24af447905383f5 (already built) and then I build it with VS and copy the dependencies to cegui folder, I don't know what is wrong with this method... I just downloaded all dependencies from CEGUI website and it gives me these errors. And I don't know what have I to do with CMAKE_PREFIX_PATH that maybe is which is causing error or something... I found something like this but it's correct (I think)

Code: Select all

if ((WIN32 OR APPLE) AND NOT CMAKE_PREFIX_PATH)
    set (CMAKE_PREFIX_PATH "${CMAKE_SOURCE_DIR}/dependencies" CACHE PATH "Path to dependencies")
    # prefer the dylib deps in the dependencies over some other framework
    set (CMAKE_FIND_FRAMEWORK LAST)
endif()


and

Code: Select all

//Path to dependencies
CMAKE_PREFIX_PATH:PATH=C:/Users/Tony/Desktop/CEGUI/cegui-0.8.2/dependencies


and this in CMake
Image

One question, why CEGUI and other distributors don't share the .dll and .lib already? I don't get it, I heard something but I'm still confused about it...

lucebac
Just can't stay away
Just can't stay away
Posts: 193
Joined: Sat May 24, 2014 21:55

Re: Final compilation errors about GLEW/GL.

Postby lucebac » Sat Sep 12, 2015 22:43

You can download the CEGUI SDK from here. Be sure to download the correct version that fits your VS version.

Tonyx97
Not too shy to talk
Not too shy to talk
Posts: 29
Joined: Sat Sep 12, 2015 20:13

Re: Final compilation errors about GLEW/GL.

Postby Tonyx97 » Sat Sep 12, 2015 22:55

So if I download the 0.8.4 SDK of VS 2013 I only must link libs and dlls for my engine/project, am I wrong?

lucebac
Just can't stay away
Just can't stay away
Posts: 193
Joined: Sat May 24, 2014 21:55

Re: Final compilation errors about GLEW/GL.

Postby lucebac » Sat Sep 12, 2015 22:58

You only have to link the .lib files. The .dll files have to be in the same folder as your applications main .exe file is.
For further info, please read: http://stackoverflow.com/questions/2005 ... tudio-2012

Tonyx97
Not too shy to talk
Not too shy to talk
Posts: 29
Joined: Sat Sep 12, 2015 20:13

Re: Final compilation errors about GLEW/GL.

Postby Tonyx97 » Sat Sep 12, 2015 23:05

I wanted to mean that :) So this should be easy now, I'll try tomorrow, going to sleep. Thanks you for the help ;)

Tonyx97
Not too shy to talk
Not too shy to talk
Posts: 29
Joined: Sat Sep 12, 2015 20:13

Re: Final compilation errors about GLEW/GL.

Postby Tonyx97 » Sun Sep 13, 2015 10:58

Everything now works perfectly :D

lucebac
Just can't stay away
Just can't stay away
Posts: 193
Joined: Sat May 24, 2014 21:55

Re: Final compilation errors about GLEW/GL.

Postby lucebac » Sun Sep 13, 2015 21:59

please mark this thread as [solved] then.


Return to “Help”

Who is online

Users browsing this forum: No registered users and 13 guests