groupgets / GetThermal

Cross-platform USB thermal camera viewer
MIT License
228 stars 90 forks source link

CMake Warning ...JPEG not found #31

Open 3keepmovingforward3 opened 3 years ago

3keepmovingforward3 commented 3 years ago

Error

cmake ..
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- No build type selected, default to Release
-- No target type selected, default to shared library
CMake Warning at CMakeLists.txt:58 (message):
  JPEG not found.  libuvc will not support JPEG decoding.

-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/GetThermal/libuvc/build

Problem

if(JPEG_FOUND)
  message(STATUS "Building libuvc with JPEG support.")
  include_directories(${JPEG_INCLUDE_DIR})
  SET(LIBUVC_HAS_JPEG TRUE)
  SET(SOURCES ${SOURCES} src/frame-mjpeg.c)
else()
  message(WARNING "JPEG not found. libuvc will not support JPEG decoding.")
endif()

Proof of libjpeg* install

pi@raspberrypi:~/GetThermal/libuvc/build $ sudo apt policy libjpeg*
libjpeg-dev:
  Installed: 1:1.5.2-2
  Candidate: 1:1.5.2-2
  Version table:
 *** 1:1.5.2-2 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
libjpeg62-turbo-dev:
  Installed: 1:1.5.2-2+b1
  Candidate: 1:1.5.2-2+b1
  Version table:
 *** 1:1.5.2-2+b1 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
libjpeg8:
  Installed: 8d1-2
  Candidate: 8d1-2
  Version table:
 *** 8d1-2 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
libjpeg62-turbo:
  Installed: 1:1.5.2-2+b1
  Candidate: 1:1.5.2-2+b1
  Version table:
 *** 1:1.5.2-2+b1 500
        500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
        100 /var/lib/dpkg/status
dasrocky commented 3 years ago

Same issue bro. Did u find any solution to this???

PC OS: Ubuntu 20.04

kekiefer commented 3 years ago

This doesn't matter, the message is informational only. The PureThermal camera does not produce jpeg images.

dasrocky commented 3 years ago

Appreciate ur immediate reply. Well initially i thought the same and tried using running the project using QTCreator, but then I faced some issues such as shown in the pic. So, trying to build libuvc... and obviously, it failed in build. problem

dasrocky commented 3 years ago

After going through several digging and installing QT & other dependencies, left out 3 issues. Unfortunately, I don't have the expertise to solve this issue. image

To solve the build issue libuvc, I tried this GitHub issue page [https://github.com/libuvc/libuvc/issues/109]. Seems that this guy fixed the issue using libuvc official. I see that qt warning is somewhat related to not using getthermal repository libuvc.

Reason for trying out GroupGet's GetThermal app coz I am trying to use Flirpy package and it says unable to detect camera weirdly, although I have tried it in windows using FLIR software.

FLIR Device: FLIR Lepton 3.5 I/O hardware: PureThermal 2 PC OS: Ubuntu 20.04.1