Open madelynwith5ns opened 4 years ago
You can try to compile with static boost library installed. On Ubuntu and Fedora, this is a distinct package from the standard libs. Try to recompile after install. After some research online, I also added the below flag to the top level CMakeList.txt, which is supposed to be equivalent to -fPIC.
set( CMAKE_POSITION_INDEPENDENT_CODE ON )
@MadelynWith5Ns Did u ever find a fix?
I'm trying to get set up with malmo. I went into the scripts directory and ran:
chmod +x malmo_build.sh
to allow executing the script. Then i ran./malmo_build.sh
and got this error:/usr/bin/ld: /usr/lib/x86_64-linux-gnu/libboost_date_time.a(greg_month.o): relocation R_X86_64_PC32 against symbol `_ZTVN5boost9date_time18all_date_names_putINS_9gregorian17greg_facet_configEcSt19ostreambuf_iteratorIcSt11char_traitsIcEEEE' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status make[2]: [Malmo/src/JavaWrapper/CMakeFiles/MalmoJava.dir/build.make:96: Malmo/src/JavaWrapper/libMalmoJava.so] Error 1 make[1]: [CMakeFiles/Makefile2:1341: Malmo/src/JavaWrapper/CMakeFiles/MalmoJava.dir/all] Error 2 make: *** [Makefile:163: all] Error 2
(I tried running
./malmo_build.sh -fPIC
but that didn't work at all. Malmo threw invalid option errors for -f, -P, -I, and -C.)