Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue Building on Raspberry Pi #20

Closed
thetoivonen opened this issue Apr 29, 2016 · 4 comments
Closed

Issue Building on Raspberry Pi #20

thetoivonen opened this issue Apr 29, 2016 · 4 comments

Comments

@thetoivonen
Copy link

thetoivonen commented Apr 29, 2016

Attempting to make /usb_example/DJI_guidance_example on raspbian with g++-4.9.2

After fixing issue #13 in main.cpp...

make -f Makefile_noOpenCV

returns

g++ -g -Wall -I/usr/local/include -I../../../include -c main.cpp DJI_utility.h
g++ -g -Wall -I/usr/local/include -I../../../include -c DJI_utility.cpp DJI_utility.h
g++ -o guidance_example main.o DJI_utility.o -Wl,-rpath,./ -lpthread -lrt -L./ -L/usr/local/lib/ -lDJI_guidance -lusb-1.0
main.o: In function main': /home/pi/Guidance-SDK/examples/usb_example/DJI_guidance_example/main.cpp:178: undefined reference toselect_disparity_image(e_vbus_index)'
/home/pi/Guidance-SDK/examples/usb_example/DJI_guidance_example/main.cpp:185: undefined reference to select_motion()' /home/pi/Guidance-SDK/examples/usb_example/DJI_guidance_example/main.cpp:189: undefined reference toget_device_type(e_device_type_)'
/home/pi/Guidance-SDK/examples/usb_example/DJI_guidance_example/main.cpp:192: undefined reference to get_image_size(int_, int_)' /home/pi/Guidance-SDK/examples/usb_example/DJI_guidance_example/main.cpp:251: undefined reference to set_exposure_param(exposure_param)'
/home/pi/Guidance-SDK/examples/usb_example/DJI_guidance_example/main.cpp:273: undefined reference to `select_disparity_image(e_vbus_index)'
collect2: error: ld returned 1 exit status
Makefile_noOpenCV:12: recipe for target 'guidance_example' failed
make: *** [guidance_example] Error 1

@tangketan
Copy link
Contributor

tangketan commented May 3, 2016

The default lib is built on Ubuntu 14.04. There is no lib compiled under Raspberry Pi. You may need to use lib compiled on ARM or XU3.

@thetoivonen
Copy link
Author

Seems to be an issue with DJI_guidance.h as this is where the undefined references are defined.

@janwillemm
Copy link
Contributor

janwillemm commented May 20, 2016

I have the same issue. I use the ARM so lib and followed the developer sample steps one by one and still get this error. @thetoivonen found any solutions yet?

@thetoivonen
Copy link
Author

I was able to get it working by using the XU3 so library and compiling on the Pi with arm-linux-gnueabihf-g++-4.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants