Working code for New MacOS

299 views
Skip to first unread message

Bordin Astro

unread,
Oct 31, 2021, 6:08:56 PM10/31/21
to Flir Lepton
Hi,

I have been searching for code for running the PureThermal 2 and Lepton 3.5 on my Macbook Air M1 but without success.   

Kheirlb's Parabilis Thermal code works well on my Pi 3 B+, through a tweak on the installation script for the opencv package.

It would be more convenient to be able to run the PureThermal on a mac machine alone. 

Any help would be greatly appreciated.

Thank you,
--bordin

PS I would like to build get an application with a temperature bar shown, similarly to the GetThermal below.

gethermal.png

Kurt Kiefer

unread,
Oct 31, 2021, 7:14:16 PM10/31/21
to Flir Lepton
Try the code here https://github.com/groupgets/GetThermal/tree/master%2Bfix-mac-build

Note the instructions in the readme to install the latest libuvc from homebrew with the --HEAD switch.

I lost track of why I had to put this down. I was either having packaging problems or one platform or another, or maybe there was some compatibility issue with the most recent versions of Qt? But I would like to hear if it works for others.

Bordin Astro

unread,
Nov 2, 2021, 6:16:42 AM11/2/21
to Flir Lepton
Hi Kurt,

Thank you very much for your kind reply.

I tried the code you suggested but got an error when running "qmake .." as follows:

> Project MESSAGE: Qt version 5.15.2

> Project ERROR: Unsupported Mac toolchain, only 64-bit LLVM+clang is supported

I used Macbook M1.  

Best,
--bordin

Bordin Astro

unread,
Nov 2, 2021, 7:07:05 AM11/2/21
to Flir Lepton
Hi Kurt,

I forgot to mentioned.  When I  ran Qt Creator to build, there were some errors:

>> libusb-1.0 development package not found

But I did put a right config, I guess:

MacBuild: { 
*PKG_CONFIG = /usr/local/bin/pkg-config 
PKG_CONFIG = /opt/homebrew/bin/pkg-config 
}

MBA M1 installed apps under the /opt/homebrew directory.  

The libusb got installed correctly with "brew install libusb". 
It seems the pk-config didn't work as it supposed to do.

Qt Creator also gave the following errors:

>> error: implicit declaration of function 'UVC_GetAttribute' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
>> error: implicit declaration of function 'UVC_SetAttribute' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
>> error: implicit declaration of function 'UVC_RunCommand' is invalid in C99 [-Werror,-Wimplicit-function-declaration]

--bordin
Reply all
Reply to author
Forward
0 new messages