lfermin77 / Incremental_DuDe_ROS

8 stars 6 forks source link

Compile on Fedora is impossible #5

Open MalcolmMielle opened 7 years ago

MalcolmMielle commented 7 years ago

I'm trying to compile this on fedora with indigo and I can't get pass this error

/usr/bin/ld: /home/malcolm/ros_catkin_ws/indigo_ws/src/Incremental_DuDe_ROS/Third_Party/dude_final/FIST/libFIST.linux64.a(api_functions.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/home/malcolm/ros_catkin_ws/indigo_ws/src/Incremental_DuDe_ROS/Third_Party/dude_final/FIST/libFIST.linux64.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
CMakeFiles/evaluation.dir/build.make:778: recipe for target '/home/malcolm/ros_catkin_ws/indigo_ws/devel/lib/inc_dude/evaluation' failed
make[2]: *** [/home/malcolm/ros_catkin_ws/indigo_ws/devel/lib/inc_dude/evaluation] Error 1
CMakeFiles/Makefile2:355: recipe for target 'CMakeFiles/evaluation.dir/all' failed
make[1]: *** [CMakeFiles/evaluation.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: /home/malcolm/ros_catkin_ws/indigo_ws/src/Incremental_DuDe_ROS/Third_Party/dude_final/FIST/libFIST.linux64.a(api_functions.o): relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC
/home/malcolm/ros_catkin_ws/indigo_ws/src/Incremental_DuDe_ROS/Third_Party/dude_final/FIST/libFIST.linux64.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
CMakeFiles/inc_dude.dir/build.make:778: recipe for target '/home/malcolm/ros_catkin_ws/indigo_ws/devel/lib/inc_dude/inc_dude' failed
make[2]: *** [/home/malcolm/ros_catkin_ws/indigo_ws/devel/lib/inc_dude/inc_dude] Error 1
CMakeFiles/Makefile2:488: recipe for target 'CMakeFiles/inc_dude.dir/all' failed
make[1]: *** [CMakeFiles/inc_dude.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
[inc_dude] <== '/home/malcolm/ros_catkin_ws/indigo_ws/build/inc_dude/build_env.sh /usr/bin/make --jobserver-fds=3,4 -j' failed with return code '2'

It seems that it is coming from hardened file on fedora as in here with ffmpeg.

I've seen that you are using FIST.lib directly from a compiled version in the third party, and I would want to recompile it myself so that it is compatible with my system. Where can I find this library ?

Thanks

lfermin77 commented 7 years ago

Effectively, I am using the compiled version of FIST, the library is FIST: Fast Industrial-Strength Triangulation of Polygons.

I am currently using Ubuntu with Indigo. Please let me know if you are able to fix it

MalcolmMielle commented 7 years ago

Awesome, thanks ! However, I get a 404 error when clicking the link ;) EDIT : just missed an l at the end

As soon as I get the library, I will fork the code, try this and if you want, push it to your repo, if I manage to make it work.

lfermin77 commented 7 years ago

Try again www.cosy.sbg.ac.at/~held/projects/triang/triang.html