Page 1 of 1

Cannot compile successfully on Windows

Posted: 25 Sep 2014, 11:00
by Senethril
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 ?

Re: Cannot compile successfully on Windows

Posted: 25 Sep 2014, 11:02
by gajop
There is absolutely no reason to write your thread subjects in all caps..

Re: CANNOT COMPILE SUCCESSFULY ON WINDOWS

Posted: 25 Sep 2014, 11:05
by Silentwings
Please stop writing your post titles capitals, they are no more important than anything else.

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)
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
wiki wrote: If you get undefined reference to `_Unwind_Resume' linking errors, deinstall whole MinGW and reinstall it with sjlj.
And just in case, "deinstall" really means it, just deleting the files you can find won't work.

Re: Cannot compile successfully on Windows

Posted: 25 Sep 2014, 19:15
by Senethril
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.

Re: Cannot compile successfully on Windows

Posted: 25 Sep 2014, 22:55
by abma
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.

Re: Cannot compile successfully on Windows

Posted: 26 Sep 2014, 03:59
by Senethril
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

Re: Cannot compile successfully on Windows

Posted: 26 Sep 2014, 04:05
by abma
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.

Re: Cannot compile successfully on Windows

Posted: 26 Sep 2014, 05:20
by Senethril
okey sorry for incovenience

i understood you

i m going to try the version 97.0

Re: Cannot compile successfully on Windows

Posted: 26 Sep 2014, 08:36
by Silentwings
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.
i m going to try the version 97.0
... are you confused? The develop branch has versions numbered 97.0.1-xxx