jikij
-
Posts
5 -
Joined
-
Last visited
Posts posted by jikij
-
-
Hello,
I tried to compile pyrogenesis on OS X 10.5.8 (intel), but I got many errors.
Most of them were complaining that wscasecmp was not declared.
Some of the files where wscasecmp was not declared were:
source/ps/Filesystem.cpp
source/ps/Util.cpp
source/lib/file/file_system_util.cpp
source/lib/file/archive/archive_zip.cpp
...
In 'source/lib/sysdep/os/osx/osx.cpp' 'wstring_from_string' was not declared.
I did also get an error in 'libraries/spidermonkey/include/js/jsotypes.h' about a conflicting declaration of uint64. I got this error when I compiled last time, and it seems like I am not the only one who got this error. Why has this not been fixed, by adding the simple fix suggested in http://www.wildfiregames.com/forum/index.php?showtopic=12593?
Good luck
-
It works!
You were right, it compiled with my local installation of Spidermonkey. I "fixed" it by simply uninstalling Spidermonkey. I still got some errors while running, but it was possible to skip them(I can post the errors if you need them). I will try to see if I can figure out a way to compile without uninstalling Spidermonkey, but that will be later. Now I am going to play the game .
-
I added lots of printfs and it seems like the error is caused by a call to JS_DefineFunctions in ScriptingHost::ScriptingHost() in source/scripting/ScriptingHost.cpp.
I tried to comment the lines, but then another call to JS_DefineFunction in JS_InitClass in ScriptingHost::DefineCustomObjectType made it crash. Maybe there are more than one call to JS_DefineFunction that causes the error?
I am on a x86 processor, so everything should hopefully work.
-
Hello,
I have finally managed to compile on OS X, but when I try to run pyrogenesis_dbg I get this error:
TIMER| InitVfs: 2.943 ms
Bus errorI tried to run it trough gdb and it gave this output:
TIMER| InitVfs: 3.18 ms
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000001
0x00c5d7e3 in JS_DefineFunction ()I have compiled on two OS X computers now, and both get exactly the same error.
The first time I built I accidentally misread the build instructions and compiled without a proper installation of libdevil(without ILU and ILUT). The compilation quitted, but the game was compiled, and I managed to launch it without a bus error and get to the Main Menu. It crashed when I tried to play a game(probably because everything was not compiled).
It might be something after the build errors caused by a corrupt libdevil installation, that causes my bus error.
OS X compiling error. wscasecmp not declared.
in Game Development & Technical Discussion
Posted
The problem with uint64 goes away when I patch '...trunk/libraries/spidermonkey/src/js/src/jsotypes.h'.
How can I fix the errors caused by wcscasecmp and compile successfully?