Building spring 0.79.1.2 in Eclipse IDE

Building spring 0.79.1.2 in Eclipse IDE

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
greyghost
Posts: 3
Joined: 12 Jul 2009, 21:09

Building spring 0.79.1.2 in Eclipse IDE

Post by greyghost »

Hello! I'm very excited to begin contributing to the Spring Project, both with content and coding for the engine itself. Before I dive into the adventure that appears to be content generation, I'm attempting to build spring 0.79.1.2 from source using:
  • Eclipse 3.4.2 (Ganymede) w/ CDT for C/C++
  • MinGW 5.1.4
  • SCons 1.2.0
  • SConsBuilder 0.7.3 plugin for Eclipse
I can tell you that most of my trouble come from my lack of C++ experience in Eclipse, and then my lack of C++ experience in general. Is there a post or link out there that walks through getting all the includes/build paths/etc configured in Eclipse?

I have a lot of errors related to Eclipse not finding the includes properly.

Thanks in advance... I believe I'll be a return customer.

Matt
Super Mario
Posts: 823
Joined: 21 Oct 2008, 02:54

Re: Building spring 0.79.1.2 in Eclipse IDE

Post by Super Mario »

You need to use Cmake in order to configure the source files, see the developments tab for more details.
You also need the latest version of MinGW which is 4.4.0
greyghost
Posts: 3
Joined: 12 Jul 2009, 21:09

Re: Building spring 0.79.1.2 in Eclipse IDE

Post by greyghost »

Thanks for the point in the right direction.
I got CMake 2.6 installed, and added it as an external tool in Eclipse...
CMake runs and seems to complete fine, and if I build to "spring", it runs to the end and then dies with around 30 or so errors similar to this:
..\mingwlibs\lib\libboost_program_options-mt.a(options_description.o):options_description.cpp:(.text+0x326b): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
I imagine I have left out a reference to something... I have mingwlibs in my spring source directory, and that doesn't appear to be the problem.

Any suggestions?

Thanks!
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Building spring 0.79.1.2 in Eclipse IDE

Post by imbaczek »

it looks like you aren't linking in libstdc++ or are linking it in wrong order.
greyghost
Posts: 3
Joined: 12 Jul 2009, 21:09

Re: Building spring 0.79.1.2 in Eclipse IDE

Post by greyghost »

I've tried several make targets, with no luck. In eclipse, the MinGW include directories are in the project's "Includes" path and they display there in the project explorer.

Is this a CMake issue? Any ideas on what to do next?

Thanks
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Building spring 0.79.1.2 in Eclipse IDE

Post by Auswaschbar »

You either need a special build of mingw, or need to enable shared-libc. I have not yet figured out how to do this myself.
Post Reply

Return to “Engine”