Hi & Welcome, From what you have posted, it looks like PLIB was not built with -fPIC.
Here is a good link about the build process (on Ubuntu). http://cicolink.blogspot.com/2011/10/how-to-compile-speed-dreams-on-ubuntu.html HTH, Joe On 8/16/2016 9:15 PM, Kapil Gupta wrote: > Hi, > > ``` > /usr/bin/ld: > /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libplibsg.a(sg.o): > relocation R_X86_64_32 against `.rodata.str1.8' can not be used when > making a shared object; recompile with -fPIC > /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib/libplibsg.a: error > adding symbols: Bad value > collect2: error: ld returned 1 exit status > make[2]: *** [lib64/games/speed-dreams-2/modules/graphic/osggraph.so] > Error 1 > make[1]: *** [src/modules/graphic/osggraph/CMakeFiles/osggraph.dir/all] > Error 2 > make: *** [all] Error 2 > ``` > This is the error I get while compiling the code. Its saying to turn on > the -fPIC option, but I dont know how to. What should I do? > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > Speed-dreams-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/speed-dreams-users > ------------------------------------------------------------------------------ _______________________________________________ Speed-dreams-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/speed-dreams-users
