[ 58%] Building C object rts/lib/headlessStubs/CMakeFiles/headlessStubs.dir/sdlstub.c.o /home/wolas/Desktop/DEVELOPMENT/spring_0.82.0/rts/lib/headlessStubs/sdlstub.c:8:17: error: SDL.h: No such file or directory /home/wolas/Desktop/DEVELOPMENT/spring_0.82.0/rts/lib/headlessStubs/sdlstub.c:23: error: expected ÔÇÿ=ÔÇÖ, ÔÇÿ,ÔÇÖ, ÔÇÿ;ÔÇÖ, ÔÇÿasmÔÇÖ or ÔÇÿ__attribute__ÔÇÖ before ÔÇÿstubKeyStateÔÇÖ /home/wolas/Desktop/DEVELOPMENT/spring_0.82.0/rts/lib/headlessStubs/sdlstub.c:24: error: expected ÔÇÿ=ÔÇÖ, ÔÇÿ,ÔÇÖ, ÔÇÿ;ÔÇÖ, ÔÇÿasmÔÇÖ or ÔÇÿ__attribute__ÔÇÖ before ÔÇÿstubVersionÔÇÖ... ... (many of those lines)
well SDL.h is on my system in /usr/include/SDL/SDL.h so what can be wrong?
Thanks Hoijui that works much better. I found 'make spring' and 'make install-spring' to make the build time quicker. I'll have to try out the MT version at some point.
One other point to note for anyone following this thread is that two of the Skirmish AIs (Hugh and E323) are not included in that git generated archive. If you just download their own archive and stick them in the correct directory and reconfigure it worked fine for me.
You might also want to use a different user account, or at least a different .springrc config file that indicates a different SpringData directory. Otherwise everytime you switch between 0.81 and 0.82 spring rescans your maps and mods (because base file changed -> different hash).
Some notes about compiling 0.82.3 which may be related to this thread (installation logs attached):
Running ÔÇ£make install-springÔÇØ makes files in rts/lib/headlessStubs/ and tools/unitsync/ to be compiled. This should obviously happens while running ÔÇ£make springÔÇØ, not at installation time.
Sources in the AI directory are not compiled, making ÔÇ£make install-springÔÇØ ends with errors. Running ÔÇ£makeÔÇØ in this directory and then ÔÇ£make install-springÔÇØ in the top-level directory fix the problem.
this new stuff is not working well, because of cmake not working as it should. for some people it works as expected, for others not, and it seems to not to be pin-pointable to a certain cmake version... anyway, if you configure multiple times (as in, reconfigure) it might work as expected. i will try some rearrangement to limit this, but can not promise anything. basically, we are using a sort of hack, as cmake does not allow natively to install only a subset of an application. the build part is less hacky, but still plagued by the order in which the individual targets are defined/in what subdirs they are.
OK, I see. I tried ÔÇ£cmake CMAKE_BACKWARDS_COMPATIBILITY="2.8" .ÔÇØ (default is 2.4) since I use cmake 2.8.1. Now the AI directory is compiled at install time, but at least the installation is completed without errors.
the thing is, that we need to do cmake hackery to be bale to combine a subset of targets in a single target name. this hackery seemingly randomly works or not. one thing that should always work, is using bare make and make install, instead of make spring and make install-spring. this means you have to compile everything though. you can also do make and make install-spring, to build everything and install only spring(default stuff). then again, the best solution for you is probably to not install under /usr, but under ~/ somewhere (thats what i do when compiling spring myself, while only having packages under /usr. then you do not need root access for install.
Actually I fully agree with what you wrote. My point was not to solve a problem of mine but rather to point out potential problems. So, if the cmake issue canÔÇÖt be solve for all configurations, I think it is very important to clearly document it in the installation instructions. Anyway, thank for your help.
thanks sadly, there is no way to get people to read a document that contains such hints. "install.. where.. where is the commands i have to c&p? ... there!! c&p, c&P!!! ... why no work?!? i post forum!" not that this is bad, i guess i am not different. it is human.
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum