Flir 3.5 + Purethermal2 + RaspberryPi 3 - Puretherma1-uvc install

621 views
Skip to first unread message

Michael Vernon

unread,
May 11, 2021, 12:49:56 AM5/11/21
to Flir Lepton
Hey just after some help regarding the installation process to get the PureThermal recording raw data.

I have followed the instruction from: https://github.com/andrewvaughanj/purethermal1-uvc-capture

basically running 
```
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install python-opencv
sudo apt-get install libusb-1.0.0-dev
sudo apt-get install libjpeg-dev
sudo apt-get install cmake
```
I included the libusb-1.0.0-dev & libjpeg-devas per the suggestion from:https://groups.google.com/g/flir-lepton/c/igxXbhJPyEY/m/yn3Tk2OvBwAJ

originally following the process I would get an error along the lines of:
CMake Warning at CMakeLists.txt:58 (message):
  JPEG not found.  libuvc will not support JPEG decoding.


CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBUSB_INCLUDE_DIR
   used as include directory in directory /home/pi/Downloads/purethermal1-uvc-capture/python/libuvc
   used as include directory in directory /home/pi/Downloads/purethermal1-uvc-capture/python/libuvc
   used as include directory in directory /home/pi/Downloads/purethermal1-uvc-capture/python/libuvc
   used as include directory in directory /home/pi/Downloads/purethermal1-uvc-capture/python/libuvc
   used as include directory in directory /home/pi/Downloads/purethermal1-uvc-capture/python/libuvc
   used as include directory in directory /home/pi/Downloads/purethermal1-uvc-capture/python/libuvc
   used as include directory in directory /home/pi/Downloads/purethermal1-uvc-capture/python/libuvc
   used as include directory in directory /home/pi/Downloads/purethermal1-uvc-capture/python/libuvc
LIBUSB_LIBRARY_NAMES
    linked by target "uvc" in directory /home/pi/Downloads/purethermal1-uvc-capture/python/libuvc

-- Configuring incomplete, errors occurred!
See also "/home/pi/Downloads/purethermal1-uvc-capture/python/libuvc/build/CMakeFiles/CMakeOutput.log".

installing the above packages allowed me to run the make && sudo install command, however the error: CMake Warning at CMakeLists.txt:58 (message):
  JPEG not found.  libuvc will not support JPEG decoding.

At this point I clone the PureThermal 1 UVC Capture git and try to run:
./uvc-deviceinfo.py

returning the error could not find libuvc. 

unsure how to proceed at this stage and looking for tips.

cheers

nsk ksn

unread,
May 11, 2021, 12:59:48 AM5/11/21
to Flir Lepton

Very likely a path issue. Try placing the shared library in the folder where uvc....py file is located.

nsk ksn

unread,
May 11, 2021, 1:02:06 AM5/11/21
to Flir Lepton

Here's a link of the libuvc lib you need. groupgets/libuvc

Michael Vernon

unread,
May 11, 2021, 1:02:21 AM5/11/21
to Flir Lepton
I gave that a crack with no luck earlier. just wondering if I have missed a step in the set up stage...

Michael Vernon

unread,
May 11, 2021, 1:03:24 AM5/11/21
to Flir Lepton
I'll uninstall and try reinstalling again

Michael Vernon

unread,
May 11, 2021, 1:05:45 AM5/11/21
to Flir Lepton
Just thinking, do you have a suggested link to where I should be installing the prerequisite libusb?

nsk ksn

unread,
May 11, 2021, 1:09:18 AM5/11/21
to Flir Lepton
I believe it uses the standard build of libusb. So a systemwide install should be ok. If you're getting a missing libusb error, then locate the .so (in your case)
and place that path in your environment's.

Michael Vernon

unread,
May 11, 2021, 1:28:24 AM5/11/21
to Flir Lepton

Okay so I tried libusb-dev, deleted everything and started from scratch. ended up with a ivc_open error. which was fixed by running it as sudo.

Thanks for the help chief.
Reply all
Reply to author
Forward
0 new messages