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 with Building for Raspberry Pi #40

Open
marcusdostie opened this issue Feb 25, 2021 · 2 comments
Open

Issue with Building for Raspberry Pi #40

marcusdostie opened this issue Feb 25, 2021 · 2 comments

Comments

@marcusdostie
Copy link

I am trying to get a Lepton 3.5 on the PureThermal 2 - FLIR Lepton Smart I/O Module to simply take a picture so I can test it out this weekend in the field. Earlier today I tried to get the pylepton module to work but once I finally got opencv to work the example code does not seem to capture an image. So I thought if I could get the GetThermal software to work I could at least take an image then I would figure out the python module later but this is not working either. I can get all the way to the last step of Build getthermal then when I run make I get the error below.

pi@raspberrypi:~/GetThermal/build $ make
g++ -pipe -O2 -g -std=gnu++11 -flto=4 -fno-fat-lto-objects -fuse-linker-plugin -fPIC -o release/GetThermal obj/main.o obj/uvcvideoproducer.o obj/uvcacquisition.o obj/uvcbuffer.o obj/leptonvariation.o obj/abstractccinterface.o obj/LEPTON_AGC.o obj/LEPTON_OEM.o obj/LEPTON_RAD.o obj/LEPTON_SDK.o obj/LEPTON_SYS.o obj/LEPTON_VID.o obj/crc16fast.o obj/dataformatter.o obj/rangeprovider.o obj/bosonvariation.o obj/Client_API.o obj/Client_Dispatcher.o obj/Client_Packager.o obj/Example.o obj/Serializer_BuiltIn.o obj/Serializer_Struct.o obj/UART_Connector.o obj/flirChannels.o obj/flirCRC.o obj/libusb_binary_protocol.o obj/qrc_qml.o obj/moc_uvcvideoproducer.o obj/moc_uvcacquisition.o obj/moc_leptonvariation.o obj/moc_abstractccinterface.o obj/moc_leptonvariation_types.o obj/moc_dataformatter.o obj/moc_bosonvariation.o obj/moc_bosonvariation_types.o -L/home/pi/GetThermal/libuvc/build/ -luvcstatic -lusb-1.0 -lQt5Quick -lQt5Multimedia -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGLESv2 -lpthread
obj/moc_leptonvariation.o: file not recognized: File truncated
collect2: error: ld returned 1 exit status
Makefile:259: recipe for target 'release/GetThermal' failed
make: *** [release/GetThermal] Error 1

I am running stretch:

PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

Any insight on how to get this working would be greatly appreciated.

@kekiefer
Copy link
Member

It looks like the moc compiler failed to properly generate the file that's giving you trouble. You might try cleaning out your build directory and trying again.

You mentioned trying pylepton, but that software is only for the breakout board and not the purethermal boards. You may have a look at the examples here: https://github.com/groupgets/purethermal1-uvc-capture

@marcusdostie
Copy link
Author

marcusdostie commented Feb 26, 2021

Thank You, that did seem to do the trick. I did get a lot of warnings like the one below, but no errors. Should I be concerned about the errors?

In file included from ../boson_sdk/libusb_binary_protocol.c:4:0:
../boson_sdk/flirChannels.h:19:18: warning: ‘channel_list’ defined but not used [-Wunused-variable]
static CHANNEL_T channel_list[NUM_CHANNELS];

Update: I restarted the my RPi and GetThermal fired up without any issues. Thanks for the help.

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

2 participants