Page 1 of 1

Problems after building CEGUI from source

Posted: Thu Apr 22, 2010 14:11
by Nomonkeybusiness
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.

Re: Problems after building CEGUI from source

Posted: Thu Apr 22, 2010 20:36
by agamemnus
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.

Re: Problems after building CEGUI from source

Posted: Fri Apr 23, 2010 09:12
by CrazyEddie
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.

Re: Problems after building CEGUI from source

Posted: Mon Apr 26, 2010 11:28
by Nomonkeybusiness
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.

Re: Problems after building CEGUI from source

Posted: Wed Apr 28, 2010 13:36
by CrazyEddie
Cool. It's good that you have it working ;)

CE.