Help with Square Root Errors?
Posted: 14 Dec 2016, 02:58
Hello. I am new here, and I was hoping to avoid this, but I have a Raspberry Pi 3 (and an Odroid xu3, but I'll get to that later...) that I would like to build Spring RTS for. Of course, there is no such package for arm in the Ubuntu ARM or Raspbian repos.
I have downloaded a large number of packages, which are listed below. I have had no success in getting Java AWT and some other java items located (and I don't know what provides them), so I have disabled Java AIs.
Please also note that I needed to install boost dev and dbg manually, as they were apparently needed and not in the debian install programs command.
I have run Cmake Gui and have set march to armv8-a, the type that is used in the Pi 3 (Well, there's armv8-a-ecc [or very similar] too, but I don't know what that is). CmakeCache is attached.
If I run make now, it gets to six percent and stops while compiling assimp, with this error:
I do not know what this code does, nor why it is failing. I am using the latest tar.lzma tarball from the compiling spring wiki page, since the git command stopped at the shard stage with a "could not find repository" error.
If for some reason this will not work at all on the Raspberry Pi, I can also try building on my Odroid, as I would also like to have this working there, and I suspect it would run there much better anyway. Be that as it may, I am unaware presently (if there is a reason, please let me know) as to why there might be any differences in the build process, so I am building on the Pi, since it is easier to clean up after.
Thank you!
I have downloaded a large number of packages, which are listed below. I have had no success in getting Java AWT and some other java items located (and I don't know what provides them), so I have disabled Java AIs.
Please also note that I needed to install boost dev and dbg manually, as they were apparently needed and not in the debian install programs command.
Code: Select all
sudo apt-get install sudo apt-get install build-essential zlib1g-dev libfreetype6-dev cmake libsdl2-dev libopenal-dev libglew-dev zip libvorbis-dev libxcursor-dev libdevil-dev libboost-system1.55-dev libboost-thread1.55-dev libboost-regex1.55-dev libboost-serialization1.55-dev libboost-program-options1.55-dev libboost-chrono1.55-dev libunwind-dev libboost-filesystem1.55-dev libboost-signals1.55-dev libboost-test1.55-dev xsltproc libfontconfig1-dev libcurl4-openssl-dev
sudo apt-get install build-essential zlib1g-dev libfreetype6-dev cmake libsdl2-dev libopenal-dev libglew-dev zip libvorbis-dev libxcursor-dev libdevil-dev libboost-system1.55-dev libboost-thread1.55-dev libboost-regex1.55-dev libboost-serialization1.55-dev libboost-program-options1.55-dev libboost-chrono1.55-dev libunwind-dev libboost-filesystem1.55-dev libboost-signals1.55-dev libboost-test1.55-dev xsltproc libfontconfig1-dev libcurl4-openssl-dev
sudo apt-get install cmake-gui
apt-cache search java
sudo apt-get install openjdk-8-jdk openjdk-8-jre
sudo apt-get install libboost-dev
sudo apt-get install libboost
apt-cache search libboost
sudo apt-get install libboost-dbg libboost-all-dev
sudo apt-get purge openjdk*
sudo apt-get install oracle-java8-jdk
sudo apt-get install openjdk-8-jre
I have run Cmake Gui and have set march to armv8-a, the type that is used in the Pi 3 (Well, there's armv8-a-ecc [or very similar] too, but I don't know what that is). CmakeCache is attached.
If I run make now, it gets to six percent and stops while compiling assimp, with this error:
Code: Select all
In file included from /home/pi/spring_103.0/rts/lib/assimp/contrib/poly2tri/poly2tri/sweep/../common/utils.h:37:0,
from /home/pi/spring_103.0/rts/lib/assimp/contrib/poly2tri/poly2tri/sweep/sweep.cc:35:
/home/pi/spring_103.0/rts/System/FastMath.h: In function ‘float fastmath::sqrt_sse(float)’:
/home/pi/spring_103.0/rts/System/FastMath.h:82:16: error: ‘sqrt’ was not declared in this scope
return sqrt(x);
^
/home/pi/spring_103.0/rts/System/FastMath.h:82:16: note: suggested alternatives:
In file included from /home/pi/spring_103.0/rts/lib/streflop/streflop.h:76:0,
from /home/pi/spring_103.0/rts/lib/streflop/streflop_cond.h:13,
from /home/pi/spring_103.0/rts/lib/assimp/contrib/poly2tri/poly2tri/sweep/../common/shapes.h:40,
from /home/pi/spring_103.0/rts/lib/assimp/contrib/poly2tri/poly2tri/sweep/advancing_front.h:35,
from /home/pi/spring_103.0/rts/lib/assimp/contrib/poly2tri/poly2tri/sweep/sweep.cc:34:
/home/pi/spring_103.0/rts/lib/streflop/SMath.h:425:16: note: ‘streflop::sqrt’
inline Double sqrt(Double x) {return streflop_libm::__ieee754_sqrt(x);}
^
/home/pi/spring_103.0/rts/lib/streflop/SMath.h:425:16: note: ‘streflop::sqrt’
rts/lib/assimp/code/CMakeFiles/assimp.dir/build.make:2906: recipe for target 'rts/lib/assimp/code/CMakeFiles/assimp.dir/__/contrib/poly2tri/poly2tri/sweep/sweep.cc.o' failed
make[2]: *** [rts/lib/assimp/code/CMakeFiles/assimp.dir/__/contrib/poly2tri/poly2tri/sweep/sweep.cc.o] Error 1
CMakeFiles/Makefile2:468: recipe for target 'rts/lib/assimp/code/CMakeFiles/assimp.dir/all' failed
make[1]: *** [rts/lib/assimp/code/CMakeFiles/assimp.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
If for some reason this will not work at all on the Raspberry Pi, I can also try building on my Odroid, as I would also like to have this working there, and I suspect it would run there much better anyway. Be that as it may, I am unaware presently (if there is a reason, please let me know) as to why there might be any differences in the build process, so I am building on the Pi, since it is easier to clean up after.
Thank you!