Problems after building CEGUI from source

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

Nomonkeybusiness
Not too shy to talk
Not too shy to talk
Posts: 45
Joined: Wed Sep 09, 2009 11:20

Problems after building CEGUI from source

Postby Nomonkeybusiness » Thu Apr 22, 2010 14:11

Hello.
I've got some problems running my program after compiling CEGUI from source.

After downloading the whole 0.7.x folder from the repository, and premake 3.1, I ran build vs_2005.bat (I normally use vs2008, but when I tried to run build_vs2008.bat it exited with the message "Unrecognized target: vs2008", but I figured it shouldn't matter)
I also DL'd the dependencies for the vc8 version, and finally compiled. When done, I simply copied all the .lib-files over to my project/CEGUI/lib-folder and the .dll to the corresponding folder ("project/debug"/"project/release") and expected it to work.
It didn't.
When I try to run the project, It exits immidately with an error prompt that says "The application failed to initialize properly (0xc0150002). Click OK to terminate the application". In the ouputwindow I see the following:

Code: Select all

CauseOfWar.exe': Loaded 'C:\Documents and Settings\Administrator\My Documents\CauseOfWar\Copy of CauseOfWar\Debug\CEGUIBase_d.dll', Symbols loaded.
LDR: LdrpWalkImportDescriptor() failed to probe c:\Documents and Settings\Administrator\My Documents\CauseOfWar\Copy of CauseOfWar\Debug\CEGUIBase_d.dll for its manifest, ntstatus 0xc0150002
Debugger:: An unhandled non-continuable exception was thrown during process load
The program '[6516] CauseOfWar.exe: Native' has exited with code -1072365566 (0xc0150002).


I've searched the forums, and found this viewtopic.php?f=10&t=4726, although I didn't recieve much from it. Do anyone know what the problem might be?

Thanks.

agamemnus
Just can't stay away
Just can't stay away
Posts: 185
Joined: Sun Mar 14, 2010 04:21

Re: Problems after building CEGUI from source

Postby agamemnus » Thu Apr 22, 2010 20:36

Nomonkeybusiness wrote:Hello.
I've got some problems running my program after compiling CEGUI from source.


I can compile with 2008 just fine. I don't think it's a good idea to mix and match 2005 and 2008 bits. Try this:

* Download and extract the latest clean official source code.
* Download and extract the latest source code "snapshot" from sourceforge.
* Download and extract the 2008 compiled version and add in the dependencies folder to your source code folder.
* Over-write the source code with the snapshot.
* Run the bat file.
* Run the sln file and compile.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Problems after building CEGUI from source

Postby CrazyEddie » Fri Apr 23, 2010 09:12

You should be using premake 3.6 or 3.7 if you want official premake releases. Or ideally using our custom premake (http://sourceforge.net/projects/crayzed ... p/download), since it enables some options not provided by the standard builds.

As for the error, double check you're linking with the correct dependencies for the compiler you're using. Then check the contents of the manifest in the output DLLs and ensure you have the appropriate version of the MSVC++ runtime installed.

CE.

Nomonkeybusiness
Not too shy to talk
Not too shy to talk
Posts: 45
Joined: Wed Sep 09, 2009 11:20

Re: Problems after building CEGUI from source

Postby Nomonkeybusiness » Mon Apr 26, 2010 11:28

I downloaded the Custom premake.exe, and I got it to work. I must say, the idea with WUM_VISIBLE is great, and works excellent.
Thanks for the help. And thanks for a fantastic library and a great forum. We appreciate your work!

Love from Sweden.

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: Problems after building CEGUI from source

Postby CrazyEddie » Wed Apr 28, 2010 13:36

Cool. It's good that you have it working ;)

CE.


Return to “Help”

Who is online

Users browsing this forum: Baidu [Spider] and 16 guests