2025-08-01 18:23 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001806Spring engineLinuxpublic2010-02-04 16:49
Reporterpepijn 
Assigned ToAuswaschbar 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version0.81.1.2 
Target VersionFixed in Version 
Summary0001806: Compiling on Mac breaks AI because of .so/.dylib mismatch
DescriptionI compiled Spring according to these instructions: http://springrts.com/wiki/Spring_on_MacOSX

The game works, but the AI's don't.
The compiler creates .so files, but the game searches for a .dylib file.

Error message:
Error while loading AI Interface Library from file "/usr/local/share/games/spring/AI/Interfaces/C/0.1/libAIInterface.dylib"
Additional InformationMac OS X 10.6.2
XCode 3.2.1
gcc 4.2.1
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0004580

hoijui (reporter)

please try if this fixed it:
1411f119d65f10900c3f859906f2c87cdc3d615b
(current master)

if no response for a month, we consider it fixed.

~0004583

pepijn (reporter)

Last edited: 2010-02-01 16:45

I don't know if this is related to the fix, but I get 3 "implement this" warnings upon building.
All three are in a else clause where seemingly the OSX part should be selected.

/Users/pepijndevos/git/spring/rts/System/Platform/Misc.cpp:44:4: error: #error implement this
/Users/pepijndevos/git/spring/rts/System/Platform/Misc.cpp:130:3: error: #error implement this
/Users/pepijndevos/git/spring/rts/System/Platform/Misc.cpp:223:3: warning: #warning implement this (or use linux version)
make[2]: *** [rts/CMakeFiles/spring.dir/System/Platform/Misc.cpp.o] Error 1
make[1]: *** [rts/CMakeFiles/spring.dir/all] Error 2
make: *** [all] Error 2

It seems they use MACOSX_BUNDLE rather then __APPLE__ in a few places.
Searching for the first returns 2 files, the later 10.
I read that CMake <= 2.4 does not support this directive.
**warning** I know not the slightest bit of C

Building works after replacing MACOSX_BUNDLE with __APPLE__, but I don't know how to install without ruining my 0.80 version.

I removed the 0.80 version since I noticed 0.81 was released.
Not fixed... they are still .so
I suspect however that they are bundled as .so, not built.
I remember finding a .so file in the spring dir... but I can't remember if that was before or after building.

~0004597

pepijn (reporter)

Works now!

How do I set the status of this report to something good?
+Notes

-Issue History
Date Modified Username Field Change
2010-01-27 16:27 pepijn New Issue
2010-02-01 00:28 hoijui Note Added: 0004580
2010-02-01 00:28 hoijui Status new => feedback
2010-02-01 16:07 pepijn Note Added: 0004583
2010-02-01 16:15 pepijn Note Edited: 0004583
2010-02-01 16:17 pepijn Note Edited: 0004583
2010-02-01 16:20 pepijn Note Edited: 0004583
2010-02-01 16:45 pepijn Note Edited: 0004583
2010-02-04 14:41 pepijn Note Added: 0004597
2010-02-04 16:49 Auswaschbar Status feedback => resolved
2010-02-04 16:49 Auswaschbar Resolution open => fixed
2010-02-04 16:49 Auswaschbar Assigned To => Auswaschbar
+Issue History