RigsOfRods / ror-linux-buildscripts

Shell scripts to build Rigs of Rods git on apt based GNU/Linux systems
http://forum.rigsofrods.org/thread-21.html
16 stars 8 forks source link

Build fails for Ubuntu 17.10 #19

Closed Bob-Z closed 7 years ago

Bob-Z commented 7 years ago

Here it is:

[100%] Linking CXX executable ../../bin/RoR
/usr/bin/ld: warning: libboost_system.so.1.58.0, needed by /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libCaelum.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libPagedGeometry.a(BatchPage.cpp.o): relocation R_X86_64_32 against hidden symbol `_ZTVN7Forests9BatchPageE' can not be used when making a shared object
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libPagedGeometry.a(BatchedGeometry.cpp.o): relocation R_X86_64_32 against hidden symbol `_ZTVN7Forests15BatchedGeometryE' can not be used when making a shared object
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libPagedGeometry.a(GrassLoader.cpp.o): relocation R_X86_64_32 against hidden symbol `_ZTVN7Forests11GrassLoaderE' can not be used when making a shared object
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libPagedGeometry.a(ImpostorPage.cpp.o): relocation R_X86_64_32 against hidden symbol `_ZTVN7Forests12ImpostorPageE' can not be used when making a shared object
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libPagedGeometry.a(PagedGeometry.cpp.o): relocation R_X86_64_32 against symbol `_ZN4Ogre7Vector34ZEROE' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libPagedGeometry.a(PropertyMaps.cpp.o): relocation R_X86_64_32 against symbol `_ZN4Ogre20ResourceGroupManager27DEFAULT_RESOURCE_GROUP_NAMEB5cxx11E' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libPagedGeometry.a(StaticBillboardSet.cpp.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/libPagedGeometry.a(TreeLoader2D.cpp.o): relocation R_X86_64_32 against hidden symbol `_ZTVN7Forests12TreeLoader2DE' can not be used when making a shared object
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
source/main/CMakeFiles/RoR.dir/build.make:4926: recipe for target 'bin/RoR' failed
make[2]: *** [bin/RoR] Error 1
CMakeFiles/Makefile2:201: recipe for target 'source/main/CMakeFiles/RoR.dir/all' failed
make[1]: *** [source/main/CMakeFiles/RoR.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2

FYI here are libboost-system version available:

libboost-system1.62-dev
libboost-system1.63-dev

Maybe switching back to compiling dependencies might be more portable.