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:wink:. 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:
[ 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
Unfortunatly, Util.cpp is written in assembler (right?) , so i cannot even try to fix it, the only thing i figured out was the error was about these lines:
the util.c fix worked perfectly, i had to make another fix because there was no error handler window for mac osx, so i used x for it. And some of the java interface files failed to build, but i read somewhere that they are just important for certain widgets and most widgets dont need that (right?).
But in the end, Spring finally started on my MacBok Pro
But i still need to figure out where to put the mods and the maps
I'm not sure it should compile in 32 bits, because operations like pushq and popq are 64-bit specific. Maybe you could use a flag in there to let the compiler choose between both.
It compiled and I'm pretty sure it works. There are some traces of the CPU identification on the console while running and they seem to retrieve correct information.
what lobby client do u use? i tried springlobby, but the wxmac didnt compile neither through macports nor from source, allthough i used the build flags for snow leopard.
It did finally compile in 64 bit, but its an unstable build (the stable release is using carbon, but osx has no 64 bit carbon support), so braindamage and koshi had to make fixes for springlobby to compile (thx ) It still gives error messages at random times but it pretty much works fine now !
I think we are finally getting a mac build of spring, [CoW]GrapeFruit
yeah braindamage and me are trying that as well, but tbh i wasnt able to try much cause i have to play in a concert on christmas, so im kinda busy practicing not to ruin it
after several try I found that gcc4.0 was the best (and not 4.2) but I have this problem at 16% of compiling : Does anyone has the same problem ? I guess it is problem of compiler version but I cannot find any information on that... thanks !
Code:
[ 16%] Building CXX object rts/CMakeFiles/spring.dir/Game/GameServer.cpp.o /opt/local/include/boost/functional/hash/detail/float_functions.hpp: In member function ÔÇÿfloat boost::hash_detail::call_cpp_frexpf<true>::operator()(float, T) const [with T = int*]ÔÇÖ: /opt/local/include/boost/functional/hash/detail/hash_float_generic.hpp:44: instantiated from ÔÇÿsize_t boost::hash_detail::float_hash_impl2(T) [with T = float]ÔÇÖ /opt/local/include/boost/functional/hash/detail/hash_float_generic.hpp:84: instantiated from ÔÇÿsize_t boost::hash_detail::float_hash_impl(T) [with T = float]ÔÇÖ /opt/local/include/boost/functional/hash/detail/hash_float.hpp:92: instantiated from ÔÇÿsize_t boost::hash_detail::float_hash_value(T) [with T = float]ÔÇÖ /opt/local/include/boost/functional/hash/hash.hpp:299: instantiated from here /opt/local/include/boost/functional/hash/detail/float_functions.hpp:200: error: call of overloaded ÔÇÿfrexp(float&, int*&)ÔÇÖ is ambiguous /usr/include/architecture/i386/math.h:331: note: candidates are: double frexp(double, int*) /usr/include/c++/4.0.0/cmath:269: note: long double std::frexp(long double, int*) /usr/include/c++/4.0.0/cmath:265: note: float std::frexp(float, int*) /Users/guiochet/Desktop/spring_0.81.2/rts/lib/streflop/SMath.h:466: note: streflop::Double streflop::frexp(streflop::Double, int*) /Users/guiochet/Desktop/spring_0.81.2/rts/lib/streflop/SMath.h:258: note: streflop::Simple streflop::frexp(streflop::Simple, int*) /opt/local/include/boost/functional/hash/detail/float_functions.hpp: In member function ÔÇÿfloat boost::hash_detail::call_cpp_ldexpf<true>::operator()(float, T) const [with T = int]ÔÇÖ: /opt/local/include/boost/functional/hash/detail/hash_float_generic.hpp:57: instantiated from ÔÇÿsize_t boost::hash_detail::float_hash_impl2(T) [with T = float]ÔÇÖ /opt/local/include/boost/functional/hash/detail/hash_float_generic.hpp:84: instantiated from ÔÇÿsize_t boost::hash_detail::float_hash_impl(T) [with T = float]ÔÇÖ /opt/local/include/boost/functional/hash/detail/hash_float.hpp:92: instantiated from ÔÇÿsize_t boost::hash_detail::float_hash_value(T) [with T = float]ÔÇÖ /opt/local/include/boost/functional/hash/hash.hpp:299: instantiated from here /opt/local/include/boost/functional/hash/detail/float_functions.hpp:188: error: call of overloaded ÔÇÿldexp(float&, int&)ÔÇÖ is ambiguous /usr/include/architecture/i386/math.h:328: note: candidates are: double ldexp(double, int) /usr/include/c++/4.0.0/cmath:284: note: long double std::ldexp(long double, int) /usr/include/c++/4.0.0/cmath:280: note: float std::ldexp(float, int) /Users/guiochet/Desktop/spring_0.81.2/rts/lib/streflop/SMath.h:467: note: streflop::Double streflop::ldexp(streflop::Double, int) /Users/guiochet/Desktop/spring_0.81.2/rts/lib/streflop/SMath.h:259: note: streflop::Simple streflop::ldexp(streflop::Simple, int) make[2]: *** [rts/CMakeFiles/spring.dir/Game/GameServer.cpp.o] Error 1 make[1]: *** [rts/CMakeFiles/spring.dir/all] Error 2 make: *** [all] Error 2
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum