when I build AR Drone SDK , I get this error.Although I made all the configurations
../../Soft/Build/targets_versions/linux_sdk_demo_PROD_MODE_vlib_Linux_4.4.0-66-generic_GNU_Linux_usrbingcc_5.4.0/Navdata/navdata.o:(.data+0x80): undefined reference to `demo_navdata_client_init'
../../Soft/Build/targets_versions/linux_sdk_demo_PROD_MODE_vlib_Linux_4.4.0-66-generic_GNU_Linux_usrbingcc_5.4.0/Navdata/navdata.o:(.data+0x88): undefined reference to `demo_navdata_client_process'
../../Soft/Build/targets_versions/linux_sdk_demo_PROD_MODE_vlib_Linux_4.4.0-66-generic_GNU_Linux_usrbingcc_5.4.0/Navdata/navdata.o:(.data+0x90): undefined reference to `demo_navdata_client_release'
collect2: error: ld returned 1 exit status
generic.makefile:136: recipe for target '/home/tamercan/Desktop/ARDrone_SDK_2_0_1/ARDrone_SDK_2_0_1/Examples/Linux/sdk_demo/Build/../../Build/Release/ardrone_testing_tool' failed
make[4]: *** [/home/tamercan/Desktop/ARDrone_SDK_2_0_1/ARDrone_SDK_2_0_1/Examples/Linux/sdk_demo/Build/../../Build/Release/ardrone_testing_tool] Error 1
app.makefile:33: recipe for target 'all' failed
make[3]: *** [all] Error 2
Makefile:163: recipe for target 'build_app' failed
make[2]: *** [build_app] Error 2
Makefile:70: recipe for target 'linux_sdk_demo' failed
make[1]: *** [linux_sdk_demo] Error 2
make[1]: Leaving directory '/home/tamercan/Desktop/ARDrone_SDK_2_0_1/ARDrone_SDK_2_0_1/Examples/Linux/sdk_demo/Build'
Makefile:5: recipe for target 'all' failed
make: *** [all] Error 2
Are you using Ubuntu 16.04 or later? Looks like AR.Drone SDK 2.0.1 is not compatible with that version. Last version I was able to compile this SDK was 14.04.
I posted this error in Parrot Developer Forum but the only answer I received is to use a previous version.
http://forum.developer.parrot.com/t/ardrone-sdk-2-0-1-compiling-linux-examples-on-ubuntu-16-04-lts/4168
Related
I am trying to build opencv with opencv_contributions, but I can`t figure out this error at building.
I made cmake like this :
cmake -DOPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-master/modules/ ~/opencv-3.2.0/
And at the end of building i got this error:
[100%] Linking CXX executable ../../bin/opencv_perf_stitching
[100%] Built target opencv_perf_stitching
[100%] Linking CXX shared module ../../lib/cv2.so
/usr/bin/ld: CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o: relocation R_X86_64_PC32 against undefined symbol `_Z13pyopencv_fromIN2cv4MatxIdLi4ELi4EEEEP7_objectRKT_' 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
modules/python2/CMakeFiles/opencv_python2.dir/build.make:393: recipe for target 'lib/cv2.so' failed
make[2]: *** [lib/cv2.so] Error 1
CMakeFiles/Makefile2:14221: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/all' failed
make[1]: *** [modules/python2/CMakeFiles/opencv_python2.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
An error occurred when the procedure was executing the clang command, see below:
clang: error: no such file or directory: 'CMakeFiles/visp_gui.dir/src/display/.#vpDisplayOpenCV.cpp.o'
make[2]: *** [lib/libvisp_gui.3.0.0.dylib] Error 1
make[1]: *** [modules/gui/CMakeFiles/visp_gui.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
I was wondering if there's any option I can do to set up in order to eliminate the .# prefix from the name of vpDisplayOpenCV.cpp.o.
I am using Xubuntu 14.04 and trying to install the latest version of OpenCV, which is 3.0.0 rc1. Briefly, this is the error message I get:
/usr/bin/ld: /usr/local/lib/libavcodec.a(avpacket.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libavcodec.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libopencv_videoio.so.3.0.0] Error 1
make[1]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2
make: *** [all] Error 2
This error message was raised at 41% of the installation, when linking CXX shared library. Before trying to install openCV, first I configured by using cmake without flags. It said that openCV was ready to be installed. I don't know how to solve this problem and I am new to install packages from source. Any help would be appreciated.
I'm Trying to install OpenCV on Ubuntu 14.10 but i'm facing this error again and again :(
/usr/bin/ld: /usr/local/lib/libavcodec.a(avpacket.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libavcodec.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
modules/highgui/CMakeFiles/opencv_highgui.dir/build.make:654: recipe for target 'lib/libopencv_highgui.so.2.4.9' failed
make[2]: *** [lib/libopencv_highgui.so.2.4.9] Error 1
CMakeFiles/Makefile2:1767: recipe for target 'modules/highgui/CMakeFiles/opencv_highgui.dir/all' failed
make[1]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
Makefile:133: recipe for target 'all' failed
make: *** [all] Error 2
Please provide the command history before you have encountered the error.
If calling make was the last thing before the error occured, you can try to call make CFLAGS="-fPIC" instead.
Late to the party, but the issue is that FFMPEG is not compiled with position-independent code. Go to your FFMPEG directory and do
./configure --enable-nonfree --enable-pic --enable-shared
then redo the make, make install steps, and re-do the build of opencv.
I got this error during opencv installation:
Linking CXX executable ../../bin/opencv_perf_core
/lib/libgbm.so.1: undefined reference to `wayland_buffer_is_drm'
collect2: error: ld returned 1 exit status
make[2]: * [bin/opencv_perf_core] Error 1
make[1]: * [modules/core/CMakeFiles/opencv_perf_core.dir/all] Error 2
make: * [all] Error 2
can you help me.