i didnt find a suitable subforum for this, so please forgive me for posting here, i thought to some extend it might be similar to the linux compiling.
I followed the guide in the Spring wiki, got all dependencies with Macports or compiled them from source.
It worked fine until i got this error at 59% during the compilation of Util.cpp:
Code: Select all
[ 59%] Building CXX object rts/CMakeFiles/spring.dir/System/Util.cpp.o
{standard input}:20:suffix or operands invalid for `push'
{standard input}:23:suffix or operands invalid for `pop'
make[2]: *** [rts/CMakeFiles/spring.dir/System/Util.cpp.o] Error 1
make[1]: *** [rts/CMakeFiles/spring.dir/all] Error 2
make: *** [all] Error 2
Code: Select all
void ExecCPUID(unsigned int* a, unsigned int* b, unsigned int* c, unsigned int* d)
{
#ifndef __APPLE__
__asm__ __volatile__(
"cpuid"
: "=a" (*a), "=b" (*b), "=c" (*c), "=d" (*d)
: "0" (*a)
);
#else
__asm__ __volatile__(
"pushl %%ebx\n\t"
"cpuid\n\t"
"movl %%ebx, %1\n\t"
"popl %%ebx"
: "=a" (*a), "=r" (*b), "=c" (*c), "=d" (*d)
: "0" (*a)
);
CMakeOutput.log: http://springonmacosx.pastebin.com/m4a3c60a5
CMakeError.log: http://springonmacosx.pastebin.com/m1669b6f
Thanks for ur help,
grapfruit
P.S.: I also tried scons, but i failed configuring because of a lacking jni.h
header file ...