Compiling question - CCTV-VIEWER. <SOLVED>

a very small Live CD shaped to look and act like Puppy Linux.

Moderator: fredx181

Post Reply
dcung
Posts: 369
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 40 times
Been thanked: 51 times

Compiling question - CCTV-VIEWER. <SOLVED>

Post by dcung »

I have googled a little. My guts feeling is - this is a compiling/compiler question.

I posted here since I use DDOGs to test/use it and intend to to use it with my latest mklive builds.

Pls feel free to move it or delete if not appropriate.

I have compiled CCTV-VIEWER successfully last in 09/2023 according to my notes.
I tested/compiled with Bullseye, Daedalus, Bookworm - DDOG builds - all works.
So, it was with k-5.10.0-25-amd64, k-6.1.0-13-amd64 kernels at the time.
I followed this - and with 'dumb' luck it was smooth sailing.
https://github.com/iEvgeny/cctv-viewer/issues/48

I refreshed my builds often.

There's one PC that's using the latest build (to address a different issue) that I need to run CCTV-VIEWER too.
k-5.10.0-28-amd64, hence I need to re-compile it to get it to work.

Code: Select all

root@live:/mnt/live/mnt/sda4/CCTV/cctv-viewer# cmake .
CMake Error at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
  Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR
  GTEST_MAIN_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.18/Modules/FindGTest.cmake:205 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  src/qmlav/src/tests/CMakeLists.txt:5 (find_package)


-- Configuring incomplete, errors occurred!
See also "/mnt/live/mnt/sda4/CCTV/cctv-viewer/CMakeFiles/CMakeOutput.log".
root@live:/mnt/live/mnt/sda4/CCTV/cctv-viewer# 

My googling - depending on what OS (Windows, Ubuntu, etc) - people suggested different things. So, I thought to ask here.

Am I missing a package/library to install? (Tried 'apt install GTest' - no such thing)

Last edited by dcung on Wed May 01, 2024 4:59 am, edited 1 time in total.
User avatar
rockedge
Site Admin
Posts: 5730
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2003 times
Been thanked: 2103 times
Contact:

Re: Compiling question - CCTV-VIEWER.

Post by rockedge »

@dcung
It might be you need the libgtest-dev package installed :geek:

dcung
Posts: 369
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 40 times
Been thanked: 51 times

Re: Compiling question - CCTV-VIEWER.

Post by dcung »

rockedge wrote: Wed May 01, 2024 12:50 am

@dcung
It might be you need the libgtest-dev package installed :geek:

That's it @rockedge :thumbup:
cmake is successful now.
I got passed that error now.

Off to troubleshoot next error now. Grrrr...
Why can't this rookie have the 'dumb' luck again... :lol:
At least, it's progressing...

Code: Select all

[ 59%] Building CXX object CMakeFiles/cctv-viewer.dir/src/qmlav/src/qmlavframe.cpp.o
[ 60%] Building CXX object CMakeFiles/cctv-viewer.dir/src/qmlav/src/qmlavvideobuffer.cpp.o
[ 61%] Building CXX object CMakeFiles/cctv-viewer.dir/src/qmlav/src/qmlavhwoutput.cpp.o
/mnt/live/mnt/sda4/CCTV/cctv-viewer/src/qmlav/src/qmlavhwoutput.cpp:4:10: fatal error: va/va_x11.h: No such file or directory
    4 | #include <va/va_x11.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/cctv-viewer.dir/build.make:644: CMakeFiles/cctv-viewer.dir/src/qmlav/src/qmlavhwoutput.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/cctv-viewer.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
root@live:/mnt/live/mnt/sda4/CCTV/cctv-viewer# 
dcung
Posts: 369
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 40 times
Been thanked: 51 times

Re: Compiling question - CCTV-VIEWER.

Post by dcung »

Some people suggested to remove the

Code: Select all

#include <va/va_x11.h>

I removed it from line 4...
It appears at another place..? :?

User avatar
rcrsn51
Posts: 1227
Joined: Sun Aug 23, 2020 4:26 pm
Been thanked: 282 times

Re: Compiling question - CCTV-VIEWER.

Post by rcrsn51 »

Get the package libva-dev.

dcung
Posts: 369
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 40 times
Been thanked: 51 times

Re: Compiling question - CCTV-VIEWER. <SOLVED>

Post by dcung »

rcrsn51 wrote: Wed May 01, 2024 4:09 am

Get the package libva-dev.

Thank you...thank you @rcrsn51

I tried on Bullseye...it seems the repo is temporarily unreachable.
So I switched to Bookworm...and....
:thumbup: :thumbup2: :thumbup2: :thumbup:

I'm confident it will work in Bullseye too when I try again later.

Again thank you Bill !

Code: Select all

11/14 Test #11: QmlAVThread.QmlAVTask_GenericFunction .............   Passed    0.12 sec
      Start 12: QmlAVThread.QmlAVTask_ClassMember
12/14 Test #12: QmlAVThread.QmlAVTask_ClassMember .................   Passed    0.15 sec
      Start 13: QmlAVThread.QmlAVTask_Functor
13/14 Test #13: QmlAVThread.QmlAVTask_Functor .....................   Passed    0.11 sec
      Start 14: QmlAVThread.QmlAVTask_DemuxerDecoderThreadModel
14/14 Test #14: QmlAVThread.QmlAVTask_DemuxerDecoderThreadModel ...   Passed    0.18 sec

100% tests passed, 0 tests failed out of 14

Total Test time (real) =   1.97 sec
[100%] Built target run_unit_tests
root@live:/mnt/live/mnt/sda4/CCTV/cctv-viewer# 
Post Reply

Return to “DebianDogs”