Hello i have tried several TDM-GCC-32 but only one works well(no dwarf)
all others install make crash cmake after few seconds of configuration...
please help me to compile spring on windows.
I use mingw and cmake
http://pastebin.com/YyYj0u3W
if i force use of cmake 3.0 i get always the same error logs with \libboost_regex-mt.a , it continue but cannot create dlls or files and finish too with mingw32-make: *** [install-spring] Error 2
i do not prefer use visual studio, tutorials here http://springrts.com/wiki/Building_Spring_on_Windows and here zero-k.info/Forum/Thread/2950 tell do not use it.
And it is possible to use pthreads and opm with success on windows compilators ?
Cannot compile successfully on Windows
Moderator: Moderators
Cannot compile successfully on Windows
Last edited by abma on 25 Sep 2014, 23:03, edited 3 times in total.
Reason: removed caps
Reason: removed caps
Re: Cannot compile successfully on Windows
There is absolutely no reason to write your thread subjects in all caps..
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: CANNOT COMPILE SUCCESSFULY ON WINDOWS
Please stop writing your post titles capitals, they are no more important than anything else.
You have installed the wrong version of mingw. Read http://springrts.com/wiki/Building_Spring_on_Windows more carefully.
In particular you have not followed the instructions in the "Installing MinGW-w64" section and presumably also not read the "Possible Problems" section which reads
Code: Select all
:regex.cpp:(.text+0x195): undefined reference to `_Unwind_SjLj_Resume'
C:\Users\Colorado\Desktop\spring_96.0\mingwlibs\lib\libboost_regex-mt.a(regex.o)
In particular you have not followed the instructions in the "Installing MinGW-w64" section and presumably also not read the "Possible Problems" section which reads
And just in case, "deinstall" really means it, just deleting the files you can find won't work.wiki wrote: If you get undefined reference to `_Unwind_Resume' linking errors, deinstall whole MinGW and reinstall it with sjlj.
Re: Cannot compile successfully on Windows
Yes, i promise to no use capital letters.
But to follow the tuto you mention, i cannot find the exact download, that why i tried several install but they never started on my 32 bits sytem(amd)
So i can't use sjlj like in the image of installation.
one think, the first time i tried compiler i reach the same crash but before i saw one error, after search that was probably due to SDL library , effectively i can see it named SDL2 in spring source but it is called just SDL in cmakelists,so i dl sdl 1 not version 2, no more warning...its good or not ? i yet heard somethings like that explained by zerver not in the main context.
But to follow the tuto you mention, i cannot find the exact download, that why i tried several install but they never started on my 32 bits sytem(amd)
So i can't use sjlj like in the image of installation.
one think, the first time i tried compiler i reach the same crash but before i saw one error, after search that was probably due to SDL library , effectively i can see it named SDL2 in spring source but it is called just SDL in cmakelists,so i dl sdl 1 not version 2, no more warning...its good or not ? i yet heard somethings like that explained by zerver not in the main context.
Re: Cannot compile successfully on Windows
the instructions currently only work with the development = (develop branch on github) version of spring. if you try an older version, it won't work.
also install instructions are VERY clear, they lead to this link:
http://sourceforge.net/projects/mingw-w ... e/download
(which maybe not work in the future, thats why its not directly linked.)
You must use sjlj exception, else you get the compile errors you mentioned in your first post.
also install instructions are VERY clear, they lead to this link:
http://sourceforge.net/projects/mingw-w ... e/download
(which maybe not work in the future, thats why its not directly linked.)
You must use sjlj exception, else you get the compile errors you mentioned in your first post.
Re: Cannot compile successfully on Windows
i tested every package with x86_64-w64-mingw32 in it ,no success to
launch mingw32-make, it tell me i have not the good system for the use.
I want an install for sjlj, any webdl provide a file and a valid link,
only a txt file, i always get same error...
I see all the files in the git but cannot figure out how add them one by one
or separatly.(already did that, because there was no mingw32-make file
in install folder of tgm gcc)
recently i used three new installers(firsts were TDM GCC 32 webdl)
x32-4.8.1-release-win32-sjlj-rev5.7z ------------> errors are here http://pastebin.com/senqDLZW
x86_64-4.9.1-release-win32-sjlj-rt_v3-rev1.7z ---> system is not appropriate... ok
i686-4.9.1-release-win32-sjlj-rt_v3-rev1.7z -----> errors are here http://pastebin.com/8iBaPZCf
Last build failed like that at ~70%:
C:\Users\Colorado\Desktop\spring_96.0\rts\Rendering\VerticalSync.cpp: In member
function 'void CVerticalSync::SetInterval(int)':
C:\Users\Colorado\Desktop\spring_96.0\rts\Rendering\VerticalSync.cpp:88:30: erro
r: '__wglewSwapIntervalEXT' was not declared in this scope
wglSwapIntervalEXT(interval);
^
I have probably to dl and make install manually ?
how to link pthread, i have all of this files: libwinpthread-1.dll(in bin folder) (libpthreadGC2.a)
libpthread.a
libpthread.dll.a
libthread_s.dll.a
libwinpthread.a
libwinpthread.dll.a
last cmake log below:
http://pastebin.com/PHzH6qJ2
launch mingw32-make, it tell me i have not the good system for the use.
I want an install for sjlj, any webdl provide a file and a valid link,
only a txt file, i always get same error...
I see all the files in the git but cannot figure out how add them one by one
or separatly.(already did that, because there was no mingw32-make file
in install folder of tgm gcc)
recently i used three new installers(firsts were TDM GCC 32 webdl)
x32-4.8.1-release-win32-sjlj-rev5.7z ------------> errors are here http://pastebin.com/senqDLZW
x86_64-4.9.1-release-win32-sjlj-rt_v3-rev1.7z ---> system is not appropriate... ok
i686-4.9.1-release-win32-sjlj-rt_v3-rev1.7z -----> errors are here http://pastebin.com/8iBaPZCf
Last build failed like that at ~70%:
C:\Users\Colorado\Desktop\spring_96.0\rts\Rendering\VerticalSync.cpp: In member
function 'void CVerticalSync::SetInterval(int)':
C:\Users\Colorado\Desktop\spring_96.0\rts\Rendering\VerticalSync.cpp:88:30: erro
r: '__wglewSwapIntervalEXT' was not declared in this scope
wglSwapIntervalEXT(interval);
^
I have probably to dl and make install manually ?
how to link pthread, i have all of this files: libwinpthread-1.dll(in bin folder) (libpthreadGC2.a)
libpthread.a
libpthread.dll.a
libthread_s.dll.a
libwinpthread.a
libwinpthread.dll.a
last cmake log below:
http://pastebin.com/PHzH6qJ2
Re: Cannot compile successfully on Windows
quoting myself:
the instructions currently only work with the development = (develop branch on github) version of spring. if you try an older version, it won't work.
it looks like you tried to compile spring 96.0.
the instructions currently only work with the development = (develop branch on github) version of spring. if you try an older version, it won't work.
it looks like you tried to compile spring 96.0.
Re: Cannot compile successfully on Windows
okey sorry for incovenience
i understood you
i m going to try the version 97.0
i understood you
i m going to try the version 97.0
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: Cannot compile successfully on Windows
abma wrote:the instructions currently only work with the development = (develop branch on github) version of spring. if you try an older version, it won't work.
... are you confused? The develop branch has versions numbered 97.0.1-xxxi m going to try the version 97.0