make install-spring fails

make install-spring fails

Discuss everything related to running Spring on your chosen distribution of Linux.

Moderator: Moderators

Post Reply
Hrenomoto
Posts: 5
Joined: 04 Dec 2010, 16:13

make install-spring fails

Post 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?
weepee
Posts: 13
Joined: 15 Aug 2010, 13:50

Re: make install-spring fails

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

Re: make install-spring fails

Post 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).
Hrenomoto
Posts: 5
Joined: 04 Dec 2010, 16:13

Re: make install-spring fails

Post 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.
Hrenomoto
Posts: 5
Joined: 04 Dec 2010, 16:13

Re: make install-spring fails

Post 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.
User avatar
koshi
Lobby Developer
Posts: 1059
Joined: 14 Aug 2007, 16:15

Re: make install-spring fails

Post by koshi »

Hrenomoto wrote: Is there a bugzilla or something?
http://springrts.com/mantis/
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: make install-spring fails

Post by hoijui »

what CMake version do you use?
Hrenomoto
Posts: 5
Joined: 04 Dec 2010, 16:13

Re: make install-spring fails

Post by Hrenomoto »

cmake version 2.6-patch 4
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: make install-spring fails

Post by hoijui »

hmmm.. ok :/ no idea then.
Post Reply

Return to “Linux”