ECLIPSE C/C++ MINGW gcc compiling issues

ECLIPSE C/C++ MINGW gcc compiling issues

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
velteyn
Posts: 40
Joined: 25 Jan 2012, 10:53

ECLIPSE C/C++ MINGW gcc compiling issues

Post by velteyn »

I'm attempting a eclipse++/MinGW build after a CMake project creation.

it gave me

No rule to make target `rts/lib/streflop/libstreflop.a', needed by `AI/Interfaces/Java/AIInterface.dll'. Stop.

make all....

any help would be very appreciated :)
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: ECLIPSE C/C++ MINGW gcc compiling issues

Post by abma »

does "make streflop" work?

does rts/lib/streflop/libstreflop.a exist after this? does libstreflop.a exist somewhere else?

which version of spring do you try to compile?

you should use the develop branch if possible...
User avatar
Prominence
Posts: 97
Joined: 24 Jun 2008, 07:21

Re: ECLIPSE C/C++ MINGW gcc compiling issues

Post by Prominence »

I too had compiling issue even on simple stuff, so I used MSYS for compiling instead.

Hopefully whatever problem is fixed by next release of eclipse IDE which is tomorrow.
velteyn
Posts: 40
Joined: 25 Jan 2012, 10:53

Re: ECLIPSE C/C++ MINGW gcc compiling issues

Post by velteyn »

ok Im compiling the official TARBALL spring_94.1 avaiable into download section

I used the same method for an old release and I had no probs :)

streflop is present and also stefloplib.a is presnet, probably built in a previous step

mingw32-make streflop builds lib without problems :)
velteyn
Posts: 40
Joined: 25 Jan 2012, 10:53

Re: ECLIPSE C/C++ MINGW gcc compiling issues

Post by velteyn »

Ok solved, I compiled the trunk from git .

Another problem... SEGMENTATION FAULT on spring.exe
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: ECLIPSE C/C++ MINGW gcc compiling issues

Post by abma »

Another problem... SEGMENTATION FAULT on spring.exe
infolog.txt?
velteyn
Posts: 40
Joined: 25 Jan 2012, 10:53

Re: ECLIPSE C/C++ MINGW gcc compiling issues

Post by velteyn »

infolog not present...

I changed gcc compiler and I used that one official !! I think its a gcc /mingw problem !

Followed literally the instructions from here

but NOW !! I have this problem


member CMakeFiles\engine-default.dir/objects.a(SMFGroundDrawer.cpp.obj) in archive is not an object
collect2.exe: error: ld returned 1 exit status
mingw32-make[3]: *** [spring.exe] Error 1
mingw32-make[3]: Leaving directory `C:/tmp/spring'
mingw32-make[2]: *** [rts/builds/default/CMakeFiles/engine-default.dir/all] Error 2
mingw32-make[2]: Leaving directory `C:/tmp/spring'
mingw32-make[1]: *** [rts/builds/default/CMakeFiles/install-spring.dir/rule] Error 2
mingw32-make[1]: Leaving directory `C:/tmp/spring'
mingw32-make: *** [install-spring] Error 2
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: ECLIPSE C/C++ MINGW gcc compiling issues

Post by hoijui »

you possibly aborted a build, and then continued, and the compiler did not cleanup correctly. just delete the object in question, and compile again. then it should be re-created from scratch, and work (if it is this problem, which i personally encountered in the past, with mingw).
velteyn
Posts: 40
Joined: 25 Jan 2012, 10:53

Re: ECLIPSE C/C++ MINGW gcc compiling issues

Post by velteyn »

YESSS I MADE IT !! THANK YOU !! :mrgreen:
Post Reply

Return to “Engine”