Compiling spring (mingw and visual studio 7/8) - Page 25

Compiling spring (mingw and visual studio 7/8)

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
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Compiling spring (mingw and visual studio 7/8)

Post by hoijui »

thanks!
yeah i saw that the latest Dev-Cpp beta is 2005 ;-)
the thing is, that it the Wiki entry which explains how to compile spring, mentions Dev-Cpp and Code::Blocks, but has a link to Dev-Cpp only. i guess not many compile spring with mingw on windows, but i do ;-).

i will download code::blocks then and actualize the Wiki with a link to Code::Blocks, and so it mentions the version difference of the used mingw.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Compiling spring (mingw and visual studio 7/8)

Post by hoijui »

..i just installed the latest Code::Blocks, and it comes with MinGW 3.4 aswell. not with 4.2.
.. will install MinGW directly now...
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Compiling spring (mingw and visual studio 7/8)

Post by hoijui »

neither with 4.2.1 nor with 4.3 i wa able to compile spring on windows. seems as if both are not yet major enough?
it already fails on scons configure.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Compiling spring (mingw and visual studio 7/8)

Post by imbaczek »

check the configure log. i've compiled spring successfully in both mingw 4.2 and 4.3 (but in 4.3, unitsync is FUBAR.)
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Compiling spring (mingw and visual studio 7/8)

Post by hoijui »

I did, and made a search in google for the error i got. thats where i derived my conclusion from. but well, if you succeeded... :/

it guesses the include paths correctly, but the tests for the headers fail.
the beginning of config.log:

Code: Select all

	Configure(confdir = build\sconf_temp)
scons: Configure: Checking for C++ header file boost/cstdint.hpp... 
build\sconf_temp\conftest_0.cpp <-
  |
  |#include "boost/cstdint.hpp"
  |
  |
g++ -o build\sconf_temp\conftest_0.o -c -fsingle-precision-constant -frounding-math -fsignaling-nans -mieee-fp -O2 -pipe -fno-strict-aliasing -mfpmath=387 -mthreads -D_REENTRANT -D_SZ_ONE_DIRECTORY -DSTREFLOP_X87 -Irts -Irts\System -Irts\lib\luabind -Irts\lib\lua\include -Irts\lib\streflop -Imingwlibs\include -IP:\MinGW\include -Imingwlibs\include\freetype2 -Imingwlibs\include\SDL -Imingwlibs\include\ogg -Imingwlibs\include\vorbis -Imingwlibs\include\python2.5 -Imingwlibs\include\python2.4 -Imingwlibs\include\java build\sconf_temp\conftest_0.cpp
g++: CreateProcess: No such file or directory
scons: Configure: no

scons: Configure: Checking for C++ header file boost/regex.hpp... 
build\sconf_temp\conftest_1.cpp <-
  |
  |#include "boost/regex.hpp"
  |
  |
g++ -o build\sconf_temp\conftest_1.o -c -fsingle-precision-constant -frounding-math -fsignaling-nans -mieee-fp -O2 -pipe -fno-strict-aliasing -mfpmath=387 -mthreads -D_REENTRANT -D_SZ_ONE_DIRECTORY -DSTREFLOP_X87 -Irts -Irts\System -Irts\lib\luabind -Irts\lib\lua\include -Irts\lib\streflop -Imingwlibs\include -IP:\MinGW\include -Imingwlibs\include\freetype2 -Imingwlibs\include\SDL -Imingwlibs\include\ogg -Imingwlibs\include\vorbis -Imingwlibs\include\python2.5 -Imingwlibs\include\python2.4 -Imingwlibs\include\java build\sconf_temp\conftest_1.cpp
g++: CreateProcess: No such file or directory
scons: Configure: no
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Compiling spring (mingw and visual studio 7/8)

Post by imbaczek »

your mingw install seems broken, gcc can't find its dependent programs. make sure you've downloaded all required packages - gcc core, g++, binutils, etc.
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Re: Compiling spring (mingw and visual studio 7/8)

Post by Kloot »

g++: CreateProcess: No such file or directory
Is your mingw's path environment variable set properly?
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Compiling spring (mingw and visual studio 7/8)

Post by hoijui »

yes, MINGDIR is set properly.

i installed the 'main' package of 4.3 and 4.2.1 only.
this includes core, c++ and some others, but not binutils eg.

maybe it would be easier if one of you would actualize the wiki with instructions how to install MinGW 4 so it compiles spring ;-)
well if you have time once.
this way (me figuring out what to install), it seems like the smae work for you, and me in parallel ;-)
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Compiling spring (mingw and visual studio 7/8)

Post by hoijui »

could you please tell me which parts of MinGW i need?
gcc, core, g++, binutils, ...?
MSYS?
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Compiling spring (mingw and visual studio 7/8)

Post by imbaczek »

I think you need gcc, g++, binutils and mingw-runtime. I also have gdb and msys (makefiles work a bit better in msys shell, no problems with lack of rm and such.)
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Compiling spring (mingw and visual studio 7/8)

Post by hoijui »

thanks imbaczek.
i found out that i also need win32api and (becuase they did something wrong with packaging, i also need java, which contians some c++ headers needed by boost).
now i get lots of "yes" on scons configure, using MinGW 4.3.0 on windows, but one thing remains "no": boost/regex.hpp

if you have an idea what i am missing, please help! :D
the error message from config.log:

Code: Select all

scons: Configure: Checking for C++ header file boost/regex.hpp... 
build\sconf_temp\conftest_1.cpp <-
  |
  |#include "boost/regex.hpp"
  |
  |
g++ -o build\sconf_temp\conftest_1.o -c -fsingle-precision-constant -frounding-math -fsignaling-nans -mieee-fp -O2 -pipe -fno-strict-aliasing -mfpmath=387 -mthreads -D_REENTRANT -D_SZ_ONE_DIRECTORY -DSTREFLOP_X87 -Irts -Irts\System -Irts\lib\luabind -Irts\lib\lua\include -Irts\lib\streflop -Imingwlibs\include -IP:\MinGW\include -Imingwlibs\include\freetype2 -Imingwlibs\include\SDL -Imingwlibs\include\ogg -Imingwlibs\include\vorbis -Imingwlibs\include\python2.5 -Imingwlibs\include\python2.4 -Imingwlibs\include\java build\sconf_temp\conftest_1.cpp
In file included from mingwlibs\include/boost/regex/v4/regex_traits.hpp:39,
                 from mingwlibs\include/boost/regex/regex_traits.hpp:27,
                 from mingwlibs\include/boost/regex/v4/regex.hpp:39,
                 from mingwlibs\include/boost/regex.hpp:31,
                 from build\sconf_temp\conftest_1.cpp:2:
mingwlibs\include/boost/regex/v4/cpp_regex_traits.hpp:365: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
mingwlibs\include/boost/regex/v4/cpp_regex_traits.hpp: In member function »boost::regex_constants::syntax_type boost::re_detail::cpp_regex_traits_char_layer<char>::syntax_type(char) const«:
mingwlibs\include/boost/regex/v4/cpp_regex_traits.hpp:357: Fehler: »m_char_map« wurde in diesem Gültigkeitsbereich nicht definiert
mingwlibs\include/boost/regex/v4/cpp_regex_traits.hpp: In member function »boost::regex_constants::escape_syntax_type boost::re_detail::cpp_regex_traits_char_layer<char>::escape_syntax_type(char) const«:
mingwlibs\include/boost/regex/v4/cpp_regex_traits.hpp:361: Fehler: »m_char_map« wurde in diesem Gültigkeitsbereich nicht definiert
In file included from mingwlibs\include/boost/regex/v4/regex.hpp:58,
                 from mingwlibs\include/boost/regex.hpp:31,
                 from build\sconf_temp\conftest_1.cpp:2:
mingwlibs\include/boost/regex/v4/states.hpp: At global scope:
mingwlibs\include/boost/regex/v4/states.hpp:210: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
mingwlibs\include/boost/regex/v4/states.hpp:226: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
In file included from mingwlibs\include/boost/regex/v4/regex.hpp:67,
                 from mingwlibs\include/boost/regex.hpp:31,
                 from build\sconf_temp\conftest_1.cpp:2:
mingwlibs\include/boost/regex/v4/basic_regex.hpp:66: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
mingwlibs\include/boost/regex/v4/basic_regex.hpp: In member function »size_t boost::basic_regex<charT, traits>::max_size() const«:
mingwlibs\include/boost/regex/v4/basic_regex.hpp:387: Fehler: »UINT_MAX« wurde in diesem Gültigkeitsbereich nicht definiert
In file included from mingwlibs\include/boost/regex/v4/regex.hpp:70,
                 from mingwlibs\include/boost/regex.hpp:31,
                 from build\sconf_temp\conftest_1.cpp:2:
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp: In member function »boost::re_detail::re_syntax_base* boost::re_detail::basic_regex_creator<charT, traits>::append_set(const boost::re_detail::basic_char_set<charT, traits>&, mpl_::true_*)«:
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:533: Fehler: »struct boost::re_detail::re_set« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:533: Fehler: »struct boost::re_detail::re_set« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:542: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:546: Fehler: »struct boost::re_detail::re_set« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:576: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:581: Fehler: »struct boost::re_detail::re_set« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:592: Fehler: »struct boost::re_detail::re_set« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:608: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:611: Fehler: »struct boost::re_detail::re_set« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:626: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:629: Fehler: »struct boost::re_detail::re_set« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:644: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:649: Fehler: »struct boost::re_detail::re_set« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:655: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:657: Fehler: »struct boost::re_detail::re_set« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:657: Fehler: »struct boost::re_detail::re_set« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp: In member function »void boost::re_detail::basic_regex_creator<charT, traits>::fixup_pointers(boost::re_detail::re_syntax_base*)«:
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:713: Fehler: »struct boost::re_detail::re_alt« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:713: Fehler: »struct boost::re_detail::re_alt« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp: In member function »void boost::re_detail::basic_regex_creator<charT, traits>::create_startmaps(boost::re_detail::re_syntax_base*)«:
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:801: Fehler: »struct boost::re_detail::re_alt« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:803: Fehler: »struct boost::re_detail::re_alt« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp: In member function »void boost::re_detail::basic_regex_creator<charT, traits>::create_startmap(boost::re_detail::re_syntax_base*, unsigned char*, unsigned int*, unsigned char)«:
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:920: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:970: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:985: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:1007: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:1022: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:1024: Fehler: »struct boost::re_detail::re_set« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:1043: Fehler: »struct boost::re_detail::re_alt« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:1049: Fehler: »UCHAR_MAX« wurde in diesem Gültigkeitsbereich nicht definiert
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:1051: Fehler: »struct boost::re_detail::re_alt« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp: In member function »void boost::re_detail::basic_regex_creator<charT, traits>::set_all_masks(unsigned char*, unsigned char)«:
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:1164: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:1167: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp: In member function »bool boost::re_detail::basic_regex_creator<charT, traits>::is_bad_repeat(boost::re_detail::re_syntax_base*)«:
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:1186: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp: In member function »void boost::re_detail::basic_regex_creator<charT, traits>::set_bad_repeat(boost::re_detail::re_syntax_base*)«:
mingwlibs\include/boost/regex/v4/basic_regex_creator.hpp:1209: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
In file included from mingwlibs\include/boost/regex/v4/regex.hpp:73,
                 from mingwlibs\include/boost/regex.hpp:31,
                 from build\sconf_temp\conftest_1.cpp:2:
mingwlibs\include/boost/regex/v4/basic_regex_parser.hpp: In member function »bool boost::re_detail::basic_regex_parser<charT, traits>::parse_open_paren()«:
mingwlibs\include/boost/regex/v4/basic_regex_parser.hpp:425: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
mingwlibs\include/boost/regex/v4/basic_regex_parser.hpp: In function »bool boost::re_detail::valid_value(charT, int, const mpl_::true_&)«:
mingwlibs\include/boost/regex/v4/basic_regex_parser.hpp:1350: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
In file included from mingwlibs\include/boost/regex/v4/regex.hpp:88,
                 from mingwlibs\include/boost/regex.hpp:31,
                 from build\sconf_temp\conftest_1.cpp:2:
mingwlibs\include/boost/regex/v4/perl_matcher.hpp: In function »bool boost::re_detail::can_start(charT, const unsigned char*, unsigned char)«:
mingwlibs\include/boost/regex/v4/perl_matcher.hpp:34: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
mingwlibs\include/boost/regex/v4/perl_matcher.hpp: In function »bool boost::re_detail::can_start(short unsigned int, const unsigned char*, unsigned char)«:
mingwlibs\include/boost/regex/v4/perl_matcher.hpp:50: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
mingwlibs\include/boost/regex/v4/perl_matcher.hpp: In function »bool boost::re_detail::can_start(wchar_t, const unsigned char*, unsigned char)«:
mingwlibs\include/boost/regex/v4/perl_matcher.hpp:56: Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
In file included from mingwlibs\include/boost/regex/v4/perl_matcher.hpp:521,
                 from mingwlibs\include/boost/regex/v4/regex.hpp:88,
                 from mingwlibs\include/boost/regex.hpp:31,
                 from build\sconf_temp\conftest_1.cpp:2:
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp: In member function »bool boost::re_detail::perl_matcher<BidiIterator, Allocator, traits>::match_alt()«:
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp:421: Fehler: »const struct boost::re_detail::re_alt« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp:422: Fehler: »const struct boost::re_detail::re_alt« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp: In member function »bool boost::re_detail::perl_matcher<BidiIterator, Allocator, traits>::match_rep()«:
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp:465: Fehler: »const struct boost::re_detail::re_repeat« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp:466: Fehler: »const struct boost::re_detail::re_repeat« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp: In member function »bool boost::re_detail::perl_matcher<BidiIterator, Allocator, traits>::match_dot_repeat_slow()«:
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp:589: Fehler: »const struct boost::re_detail::re_repeat« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp: In member function »bool boost::re_detail::perl_matcher<BidiIterator, Allocator, traits>::match_dot_repeat_fast()«:
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp:628: Fehler: »const struct boost::re_detail::re_repeat« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp: In member function »bool boost::re_detail::perl_matcher<BidiIterator, Allocator, traits>::match_char_repeat()«:
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp:691: Fehler: »const struct boost::re_detail::re_repeat« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp: In member function »bool boost::re_detail::perl_matcher<BidiIterator, Allocator, traits>::match_set_repeat()«:
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp:712: Fehler: »const struct boost::re_detail::re_set« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp:759: Fehler: »const struct boost::re_detail::re_repeat« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp: In member function »bool boost::re_detail::perl_matcher<BidiIterator, Allocator, traits>::match_long_set_repeat()«:
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp:828: Fehler: »const struct boost::re_detail::re_repeat« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp: In member function »bool boost::re_detail::perl_matcher<BidiIterator, Allocator, traits>::unwind_greedy_single_repeat(bool)«:
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp:1008: Fehler: »const struct boost::re_detail::re_repeat« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp:1014: Fehler: »const struct boost::re_detail::re_repeat« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp: In member function »bool boost::re_detail::perl_matcher<BidiIterator, Allocator, traits>::unwind_slow_dot_repeat(bool)«:
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp:1063: Fehler: »const struct boost::re_detail::re_repeat« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp:1078: Fehler: »const struct boost::re_detail::re_repeat« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp: In member function »bool boost::re_detail::perl_matcher<BidiIterator, Allocator, traits>::unwind_fast_dot_repeat(bool)«:
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp:1116: Fehler: »const struct boost::re_detail::re_repeat« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp:1132: Fehler: »const struct boost::re_detail::re_repeat« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp: In member function »bool boost::re_detail::perl_matcher<BidiIterator, Allocator, traits>::unwind_char_repeat(bool)«:
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp:1183: Fehler: »const struct boost::re_detail::re_repeat« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp:1198: Fehler: »const struct boost::re_detail::re_repeat« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp: In member function »bool boost::re_detail::perl_matcher<BidiIterator, Allocator, traits>::unwind_short_set_repeat(bool)«:
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp:1225: Fehler: »const struct boost::re_detail::re_set« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp:1249: Fehler: »const struct boost::re_detail::re_repeat« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp:1264: Fehler: »const struct boost::re_detail::re_repeat« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp: In member function »bool boost::re_detail::perl_matcher<BidiIterator, Allocator, traits>::unwind_long_set_repeat(bool)«:
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp:1316: Fehler: »const struct boost::re_detail::re_repeat« hat kein Element namens »_map«
mingwlibs\include/boost/regex/v4/perl_matcher_non_recursive.hpp:1331: Fehler: »const struct boost::re_detail::re_repeat« hat kein Element namens »_map«
In file included from mingwlibs\include/boost/regex/v4/perl_matcher.hpp:524,
                 from mingwlibs\include/boost/regex/v4/regex.hpp:88,
                 from mingwlibs\include/boost/regex.hpp:31,
                 from build\sconf_temp\conftest_1.cpp:2:
mingwlibs\include/boost/regex/v4/perl_matcher_common.hpp: In member function »bool boost::re_detail::perl_matcher<BidiIterator, Allocator, traits>::match_set()«:
mingwlibs\include/boost/regex/v4/perl_matcher_common.hpp:661: Fehler: »const struct boost::re_detail::re_set« hat kein Element namens »_map«
In file included from mingwlibs\include/boost/regex/v4/regex.hpp:166,
                 from mingwlibs\include/boost/regex.hpp:31,
                 from build\sconf_temp\conftest_1.cpp:2:
mingwlibs\include/boost/regex/v4/regex_split.hpp: In function »size_t boost::regex_split(OutputIterator, std::basic_string<charT, Traits1, Alloc1>&, const boost::basic_regex<charT, Traits2>&, boost::regex_constants::match_flag_type)«:
mingwlibs\include/boost/regex/v4/regex_split.hpp:131: Fehler: »UINT_MAX« wurde in diesem Gültigkeitsbereich nicht definiert
mingwlibs\include/boost/regex/v4/regex_split.hpp: In function »size_t boost::regex_split(OutputIterator, std::basic_string<charT, Traits1, Alloc1>&)«:
mingwlibs\include/boost/regex/v4/regex_split.hpp:138: Fehler: »UINT_MAX« wurde in diesem Gültigkeitsbereich nicht definiert
scons: Configure: no
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Compiling spring (mingw and visual studio 7/8)

Post by imbaczek »

no idea what's wrong here. errors in german don't help 8) you're close, though.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Compiling spring (mingw and visual studio 7/8)

Post by hoijui »

DOH :D
sorry
well.. this:

Code: Select all

Fehler: »CHAR_BIT« wurde in diesem Gültigkeitsbereich nicht definiert
means this:

Code: Select all

error: »CHAR_BIT« not defined in this context
when searching google for "boost CHAR_BIT", it seems to have to do with limits.h includes :/
how should i find out what could be wrong? i dont want to learn all boost and stuff just becasue of a single compilation error.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

Re: Compiling spring (mingw and visual studio 7/8)

Post by Auswaschbar »

I had similar errors, I solved it with updating boost to 1.35.0 in mingwlibs. You can download them here:
http://spring.jobjol.nl/show_file.php?id=1102
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Compiling spring (mingw and visual studio 7/8)

Post by hoijui »

thanks Auswaschbar!
it works with v11. i actualized the Wiki:
http://spring.clan-sy.com/wiki/Source_D ... NS.2FMinGW
it looks ugly, but it at least contains the info one needs.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Compiling spring (mingw and visual studio 7/8)

Post by hoijui »

i was wrong, again.
it still does not work.
scons configure works now, but scons still fails when linking spring.exe

Code: Select all

mingwlibs\lib/libboost_regex-mt.a(instances.o):instances.cpp:(.text+0x1b): undefined reference to `___gxx_personality_sj0'
mingwlibs\lib/libboost_regex-mt.a(instances.o):instances.cpp:(.text+0x34): undefined reference to `__Unwind_SjLj_Register'
mingwlibs\lib/libboost_regex-mt.a(instances.o):instances.cpp:(.text+0x52): undefined reference to `__Unwind_SjLj_Unregister'
mingwlibs\lib/libboost_regex-mt.a(instances.o):instances.cpp:(.text+0xa7): undefined reference to `__Unwind_SjLj_Resume'
mingwlibs\lib/libboost_regex-mt.a(instances.o):instances.cpp:(.text+0xcb): undefined reference to `___gxx_personality_sj0'
mingwlibs\lib/libboost_regex-mt.a(instances.o):instances.cpp:(.text+0xe4): undefined reference to `__Unwind_SjLj_Register'
mingwlibs\lib/libboost_regex-mt.a(instances.o):instances.cpp:(.text+0x102): undefined reference to `__Unwind_SjLj_Unregister'
mingwlibs\lib/libboost_regex-mt.a(instances.o):instances.cpp:(.text+0x157): undefined reference to `__Unwind_SjLj_Resume'
mingwlibs\lib/libboost_regex-mt.a(instances.o):instances.cpp:(.text+0x178): undefined reference to `___gxx_personality_sj0'
mingwlibs\lib/libboost_regex-mt.a(instances.o):instances.cpp:(.text+0x194): undefined reference to `__Unwind_SjLj_Register'
mingwlibs\lib/libboost_regex-mt.a(instances.o):instances.cpp:(.text+0x1ce): undefined reference to `__Unwind_SjLj_Unregister'
mingwlibs\lib/libboost_regex-mt.a(instances.o):instances.cpp:(.text+0x1fe): undefined reference to `__Unwind_SjLj_Resume'
mingwlibs\lib/libboost_regex-mt.a(instances.o):instances.cpp:(.text$_ZN5boost9re_detail21cpp_regex_traits_baseIcE5imbueERKSt6locale[boost::re_detail::cpp_regex_traits_base<char>::imbue(std::locale const&)]+0x27): undefined reference to `___gxx_personality_sj0'
mingwlibs\lib/libboost_regex-mt.a(instances.o):instances.cpp:(.text$_ZN5boost9re_detail21cpp_regex_traits_baseIcE5imbueERKSt6locale[boost::re_detail::cpp_regex_traits_base<char>::imbue(std::locale const&)]+0x40): undefined reference to `__Unwind_SjLj_Register'
mingwlibs\lib/libboost_regex-mt.a(instances.o):instances.cpp:(.text$_ZN5boost9re_detail21cpp_regex_traits_baseIcE5imbueERKSt6locale[boost::re_detail::cpp_regex_traits_base<char>::imbue(std::locale const&)]+0x116): undefined reference to `__Unwind_SjLj_Unregister'
mingwlibs\lib/libboost_regex-mt.a(instances.o):instances.cpp:(.text$_ZN5boost9re_detail21cpp_regex_traits_baseIcE5imbueERKSt6locale[boost::re_detail::cpp_regex_traits_base<char>::imbue(std::locale const&)]+0x152): undefined reference to `__Unwind_SjLj_Resume'
mingwlibs\lib/libboost_regex-mt.a(instances.o):instances.cpp:(.text$_ZN5boost16cpp_regex_traitsIcE16get_catalog_nameEv[boost::cpp_regex_traits<char>::get_catalog_name()]+0x18): undefined reference to `___gxx_personality_sj0'
mingwlibs\lib/libboost_regex-mt.a(instances.o):instances.cpp:(.text$_ZN5boost16cpp_regex_traitsIcE16get_catalog_nameEv[boost::cpp_regex_traits<char>::get_catalog_name()]+0x34): undefined reference to `__Unwind_SjLj_Register'
mingwlibs\lib/libboost_regex-mt.a(instances.o):instances.cpp:(.text$_ZN5boost16cpp_regex_traitsIcE16get_catalog_nameEv[boost::cpp_regex_traits<char>::get_catalog_name()]+0x90): undefined reference to `__Unwind_SjLj_Unregister'
mingwlibs\lib/libboost_regex-mt.a(instances.o):instances.cpp:(.text$_ZN5boost16cpp_regex_traitsIcE16get_catalog_nameEv[boost::cpp_regex_traits<char>::get_catalog_name()]+0xcf): undefined reference to `__Unwind_SjLj_Resume'
.
.
.
what is this SjLj?
i saw that MinGW 4.2.1 for windows has this attached to the version (eg gcc-4.2.1_sjlj), but 4.3.0 (which i am using now), does not.
is it possible that boost in mingwlibs_v11 is made ofr MinGW 4.2.1 SjLj, and does not work with MinGW 4.3.0?
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Compiling spring (mingw and visual studio 7/8)

Post by imbaczek »

ABI changed between 4.2 and 4.3 gcc releases, you'll have to compile boost-regex and boost-thread yourself. (Or wait a while, I'll try to upload compiled versions, but don't know when.)
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Compiling spring (mingw and visual studio 7/8)

Post by hoijui »

thanks!
i compiled them myself. yet again i seem closer!

Code: Select all

p:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/backward/backward_warning.h:32:2: Warnung: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
In Datei, eingefügt von p:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/ext/hash_map:64,
                 von rts\System/creg/STL_Map.h:6,
                 von rts\Game\WaitCommandsAI.cpp:23:
p:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/backward/backward_warning.h:32:2: Warnung: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
p:/mingw/bin/../lib/gcc/mingw32/4.3.0/../../../../mingw32/bin/ld.exe: warning: auto-importing has been activated without --enable-auto-import specified on the command line.
This should work unless it involves constant data structures referencing symbols from auto-imported DLLs.build\rts\lib\gml\gml.o:gml.cpp:(.text+0x1cdd): undefined reference to `gmlUpdateServers()'
collect2: ld gab 1 als Ende-Status zurück
scons: *** [game\spring.exe] Error 1
scons: building terminated because of errors.
it seems to me that this:

Code: Select all

DLLs.build\rts\lib\gml\gml.o:gml.cpp:(.text+0x1cdd): undefined reference to `gmlUpdateServers()'
is the only thing that matters. an other suggestion? :D
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Compiling spring (mingw and visual studio 7/8)

Post by imbaczek »

try scons configure again. apart from that, you're on your own now 8)
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Re: Compiling spring (mingw and visual studio 7/8)

Post by imbaczek »

took some time to check what's going on. the reason is here:

Code: Select all

rts\lib\gml\gml.h
103:EXTERN inline void gmlUpdateServers() {
when gcc 4.3 encounters a function declared 'extern inline', it *doesn't* generate it in a linkable form, ever. solution - copy it to gml.cpp and remove the extern keyword.

btw compiling with gcc 4.3.0 and -D_GML_ results in a crash:

Code: Select all

(gdb) run
Starting program: c:\Documents and Settings\baczyslaw\Moje dokumenty\progz\sprin
g\game/spring.exe
[New thread 3076.0xe4]
[New thread 3076.0xe58]

Program received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x006a6f33 in _fu531____glewUseProgram ()
#2  0x00000000 in ?? ()
(gdb)
Post Reply

Return to “Engine”