Page 1 of 1

make install-spring fails

Posted: 04 Dec 2010, 16:34
by Hrenomoto
Hello.
I'm trying to build spring-0.82.6.1 on my opensuse x86_32 system. First i run "cmake -DCMAKE_INSTALL_PREFIX=/usr ." and get no errors, which, i believe, means that all dependencies for spring are satisfied. "make spring" doesn't show no errors too. Then i run "sudo make install-spring" (sudo to write files to system folders in /usr), and that's the error I get:
CMake Error at rts/builds/default/cmake_install.cmake:36 (FILE):
file INSTALL cannot find file
"/home/mkv/src/spring_0.82.6.1/rts/builds/default/CMakeFiles/CMakeRelink.dir/spring"
to install.
Full log is at http://pastebin.com/xUr4yaAx
What is wrong? What should I do with this?

Re: make install-spring fails

Posted: 04 Dec 2010, 17:11
by weepee
Either your Spring archive was missing some files or something went wrong during compilation: check makeÔÇÖs log (or ÔÇ£pastebinÔÇØ it here). Also you can run ÔÇ£ccmake .ÔÇØ before cmake to have the full list of build options. If nothing else works, maybe try to run ÔÇ£makeÔÇØ instead of ÔÇ£make springÔÇØ.

Re: make install-spring fails

Posted: 04 Dec 2010, 17:17
by hoijui
Built target engine-default
this is the target that creates the binary (spring), which is not found by the install target. i don't know whats wrong there. search for files of the name "spring" and "engine-default" in the build dir (which is equal to the source dir for you). maybe it is in the wrong place, or it uses the wrong name. if that gives no hint, the log of make would be good (maybe delete CMakeCache.txt and do the whole procedure again first).

Re: make install-spring fails

Posted: 04 Dec 2010, 20:20
by Hrenomoto
I tried to build spring from git and the same problem appeared, which makes me think that it's my system's fault.
However.
The problem is
file INSTALL cannot find file
"/home/mkv/src/spring_0.82.6.1/rts/builds/default/CMakeFiles/CMakeRelink.dir/spring"
to install.
Solution is simple: ln -s `pwd`/spring rts/builds/default/CMakeFiles/CMakeRelink.dir/spring which leads us to another problem:
file INSTALL cannot find file
"/home/mkv/src/spring_0.82.6.1/tools/unitsync/CMakeFiles/CMakeRelink.dir/libunitsync.so"
to install.
which should be probably solved in the same way: ln -s `pwd`/libunitsync.so rts/builds/default/CMakeFiles/CMakeRelink.dir/libunitsync.so but it doesn't work. ./libunitsync.so is the only file found with such name, but it still doesn't work and i don't know what to do next, maybe i'm just tired...
Anyway, here is what make spring returned to standard output: http://pastebin.com/R05jJBEC
And i'm sorry if my English is bad and hard to parse, it's not my first language.

Re: make install-spring fails

Posted: 04 Dec 2010, 21:04
by Hrenomoto
Great! I did it! Just made some symbolic links in rts/builds/default/CMakeFiles/CMakeRelink.dir and it worked. But WHY should i do this manually?! I think it's a bug. Is there a bugzilla or something? And i'm not sure my spring built in such strange way will work properly. I gonna test it right now.

Re: make install-spring fails

Posted: 04 Dec 2010, 21:08
by koshi
Hrenomoto wrote: Is there a bugzilla or something?
http://springrts.com/mantis/

Re: make install-spring fails

Posted: 05 Dec 2010, 11:00
by hoijui
what CMake version do you use?

Re: make install-spring fails

Posted: 05 Dec 2010, 15:44
by Hrenomoto
cmake version 2.6-patch 4

Re: make install-spring fails

Posted: 05 Dec 2010, 16:18
by hoijui
hmmm.. ok :/ no idea then.