Myzhar / Lepton3_BBB

A grabber for BeagleBone Blue to acquire thermal images from Lepton3 sensor
GNU Lesser General Public License v3.0
13 stars 4 forks source link

SDK linking issue #8

Open jadonk opened 6 years ago

jadonk commented 6 years ago

It seems there is some kind of regarding relocatable code and the LEPTON_SDK.a library.

[100%] Linking CXX executable opencv_demo
/usr/bin/ld: ../grabber_lib/Lepton_SDK/lib/LEPTON_SDK.a(bbb_I2C.o): relocation R_ARM_THM_MOVW_ABS_NC against `a local symbol' can not be used when making a shared object; recompile with -fPIC
../grabber_lib/Lepton_SDK/lib/LEPTON_SDK.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
opencv_demo/CMakeFiles/opencv_demo.dir/build.make:96: recipe for target 'opencv_demo/opencv_demo' failed
Myzhar commented 6 years ago

I do not have this error... I follow the suggestion and I recompile with -fPIC

Myzhar commented 6 years ago

@jadonk Possible solution with commit https://github.com/Myzhar/Lepton3_BBB/commit/c0786a77e677ad22685225ce75a4460e072ff6da

Myzhar commented 6 years ago

@jadonk have you tried to add the -fPIC flag to your CMakeFiles.txt. I think that the problem is with your configuration...