Problems upgrading to CEGUI 0.6
Posted: Mon Apr 07, 2008 20:48
Hi. I'm trying to upgrade my project to CEGUI 0.6 and running into some problems.
First, I tried downloading the SDK for MSVC++ 8, but I kept getting a run-time "The application failed to initialize properly" error even when I'd put all the .dlls in my working directory.
So then I tried downloading the source and building myself. I edited the lua makefile config to build OpenGL, expat parser, and the samples. I copied over the dependencies folder from the SDK package and built debug_static. It gave a bunch of linker errors on the sample programs.
If I tried to input the static libraries into my project anyway (ignoring the failed sample programs), I get tons of linker warnings about "locally defined symbols" and undefined external symbol errors. I also get compiler warnings about "warning C4251: 'CEGUI::TreeItem::d_listItems' : class 'std::vector<_Ty>' needs to have dll-interface to be used by clients of class 'CEGUI::TreeItem'"
So then I tried the dlls instead of the statics libs... I was able to build them and then build my project fine; but when I try to run it, I get the "The application failed to initialize properly" error again.
I'd rather use the statics than the .dlls, but if I could get either working, that'd be good. Any help?
Edit: And another rider question... I keep seeing good wiki articles linked to like this one. But when I navigate to the articles section in the wiki, I only see 2. How do I find all these other articles?
Edit Edit: Um... am I allowed to ask a third question? How do you change what image codec CEGUI uses to load images? It seems to be using the TGA codec by default which seems to dislike my 8-bit .png files. (I could not get it to load an 8-bit tga either and had to make it 24, which seems wasteful.)
First, I tried downloading the SDK for MSVC++ 8, but I kept getting a run-time "The application failed to initialize properly" error even when I'd put all the .dlls in my working directory.
So then I tried downloading the source and building myself. I edited the lua makefile config to build OpenGL, expat parser, and the samples. I copied over the dependencies folder from the SDK package and built debug_static. It gave a bunch of linker errors on the sample programs.
If I tried to input the static libraries into my project anyway (ignoring the failed sample programs), I get tons of linker warnings about "locally defined symbols" and undefined external symbol errors. I also get compiler warnings about "warning C4251: 'CEGUI::TreeItem::d_listItems' : class 'std::vector<_Ty>' needs to have dll-interface to be used by clients of class 'CEGUI::TreeItem'"
So then I tried the dlls instead of the statics libs... I was able to build them and then build my project fine; but when I try to run it, I get the "The application failed to initialize properly" error again.
I'd rather use the statics than the .dlls, but if I could get either working, that'd be good. Any help?
Edit: And another rider question... I keep seeing good wiki articles linked to like this one. But when I navigate to the articles section in the wiki, I only see 2. How do I find all these other articles?
Edit Edit: Um... am I allowed to ask a third question? How do you change what image codec CEGUI uses to load images? It seems to be using the TGA codec by default which seems to dislike my 8-bit .png files. (I could not get it to load an 8-bit tga either and had to make it 24, which seems wasteful.)