Fyorl Posted May 30, 2008 Share Posted May 30, 2008 I'm not sure if I should be posting this here but I'm guessing this is the official GemRB forum? The 0.3.0 source fails to compile on my x86_64 laptop running Fedora 9 with the following error: cc1plus: warnings being treated as errors In file included from IniSpawn.h:34, from Map.h:29, from ScriptedAnimation.h:8, from Video.h:36, from Progressbar.cpp:25: DataFileMgr.h:64: error: type qualifiers ignored on function return type DataFileMgr.h:66: error: type qualifiers ignored on function return type Progressbar.cpp: In member function ‘void Progressbar::RedrawProgressbar(const char*, int)’: Progressbar.cpp:130: error: ‘strncasecmp’ was not declared in this scope make[4]: *** [Progressbar.lo] Error 1 make[4]: Leaving directory `/home/kim/gemrb-stable/gemrb-0.3.0/gemrb/plugins/Core' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/home/kim/gemrb-stable/gemrb-0.3.0/gemrb/plugins' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/kim/gemrb-stable/gemrb-0.3.0/gemrb' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/kim/gemrb-stable/gemrb-0.3.0' make: *** [all] Error 2 However the latest SVN checkout compiles fine after running autogen.sh. Link to comment
Avenger Posted May 30, 2008 Share Posted May 30, 2008 Yes, this is the 'official gemrb forum'. And yeah, about 2-3 months ago lynx fixed some compilation warnings. Fixes still happen occasionally, hehe. Link to comment
Fyorl Posted May 30, 2008 Author Share Posted May 30, 2008 Heh, I'm just pleased to see the 97.5% activity rating on sourceforge ^_^ Link to comment
Avenger Posted May 30, 2008 Share Posted May 30, 2008 Actually, a 97.5% is very low! It was usually over 99% for years. Link to comment
Fyorl Posted May 30, 2008 Author Share Posted May 30, 2008 Oh god, I had better get started writing some GUI Scripts then Link to comment
Guest lynx Posted May 31, 2008 Share Posted May 31, 2008 you get these warnings if you use gcc >= 4.3 . More conformance, more warnings. Link to comment
Fyorl Posted May 31, 2008 Author Share Posted May 31, 2008 Would adjusting my CFLAGS variable help? Can I remove the switch that treats all warnings as errors? Link to comment
Guest lynx Posted May 31, 2008 Share Posted May 31, 2008 if you really want to use 0.3.0 and not svn, then just remove -Werror from all the makefiles and retry. Overriding C*FLAGS would remove some other flags too. Link to comment
Avenger Posted June 1, 2008 Share Posted June 1, 2008 If you want to submit patches it is always good to work with the SVN version. Not like there is a big chance of something changing in the iwd2 guiscripts, but things happen sometimes Link to comment
Fyorl Posted June 1, 2008 Author Share Posted June 1, 2008 Hmm well the best I can do with the SVN release is compile it. After that I can't get it to execute. It fails with something like: 'Error loading shared object libgemrb_core.so.0 no such file or directory'. I thought maybe gemrb.cfg was the problem however it doesn't even get to the config loading stage. Link to comment
Avenger Posted June 1, 2008 Share Posted June 1, 2008 The core .so should be removed from the plugins dir. Normal install does it, i guess you just compiled without install? Link to comment
Fyorl Posted June 1, 2008 Author Share Posted June 1, 2008 I had a chat with lynx over IRC and we managed to fix the problem. The problem was 'make install' didn't install the libgemrb_core.so.0 anywhere that the gemrb binary was looking for it. Instead I ran the version inside the build folder. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.