groupgets / GetThermal

Cross-platform USB thermal camera viewer
MIT License
236 stars 94 forks source link

Build failing #61

Open sandeep1404 opened 10 months ago

sandeep1404 commented 10 months ago

Hi,

I tried connecting the camera to the USB port of my Linux machine and tried steps to build, but the build failed, and I was unable to create and load the project in the QT creator and see the output image. Please, someone, help me with the detailed steps of connecting this camera and viewing output. I was not able to understand the process from the steps. Are the steps mentioned in the readme correct, or are there any further commands required to build and visualize the output?

While building in the GitHub readme, it is mentioned below: GetThermal is a QT qmake project. So, all you should have to do now is to fire up QTCreator, open the project file, and hit run.

I have installed qt creator on a Linux machine; which project file do I need to open and run? Can someone be brief about it to get the getthermal for visualizing the thermal camera data?

Can someone help me with this? Thanks in advance.

VestaCord commented 2 months ago

Hi Sandeep,

the project file used by qmake / QT Creator is GetThermal.pro. Another issue you might be facing is that the latest Qt version (6.7) is not able to compile this Qt 5.7+ Project as it is configured for 5.7+ Qt version.

VestaCord commented 2 months ago

After you have the qmake / run project, another error you might also be facing after building is: : -1 : error: cannot find -lGL: No such file or directory I found out this happens because the necessary development package for OpenGL is missing, assuming you're on Debian/Ubuntu you can just run

sudo apt-get install libgl1-mesa-dev to fix it :)

if you're still missing dev packages after that (note: dev OpenGL packages are seperate from the normal one which comes with your driver) try these

apt-get build-dep libqt5opengl5 sudo apt-get install freeglut3 sudo apt-get install freeglut3-dev sudo apt-get install binutils-gold sudo apt-get install libglew-dev sudo apt-get install mesa-common-dev sudo apt-get install libglew1.5-dev libglm-dev sudo apt-get install libgles2-mesa-dev sudo apt-get install xorg-dev