I’m trying to build the libargus sample applications, but the top-level cmake process is failing.
After installing the missing packages (libgtk-3-dev and libjpeg-dev), I followed this procedure:
cd /usr/src/jetson_multimedia_api/argus
sudo mkdir build
cd build
sudo cmake ..
Expected behavior: cmake creates the appropriate Makefile
Actual behavior: cmake fails with this error message:
-- Configuring incomplete, errors occurred!
See also "/usr/src/jetson_multimedia_api/argus/build/CMakeFiles/CMakeOutput.log".
See also "/usr/src/jetson_multimedia_api/argus/build/CMakeFiles/CMakeError.log".
In the error log file, we see the following:
CMakeFiles/cmTC_2540e.dir/src.c.o: In function `main':
src.c:(.text+0x48): undefined reference to `pthread_create'
src.c:(.text+0x50): undefined reference to `pthread_detach'
src.c:(.text+0x58): undefined reference to `pthread_cancel'
src.c:(.text+0x64): undefined reference to `pthread_join'
src.c:(.text+0x74): undefined reference to `pthread_atfork'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_2540e.dir/build.make:105: recipe for target 'cmTC_2540e' failed
could you please also share the complete logs while running $ cmake ..?
BTW,
is it possible for moving to the latest release? this JetPack 4.6.1/ L4T 32.7.1 is a quite old release version.
I’ve test with JP-4.6.4 release, and it needs to revise CMakeLists.txt since couple of app source files have not been copied to the public package.
$ cat /etc/nv_tegra_release
# R32 (release), REVISION: 7.4, GCID: 33514132, BOARD: t186ref, EABI: aarch64, DATE: Fri Jun 9 04:18:38 UTC 2023
To revise CMakeLists.txt, comment-out below two files.
# add_subdirectory(samples/l4t_droid)
# add_subdirectory(samples/l4tdroid_App)
$ cmake ..
-- Configuring done
-- Generating done
-- Build files have been written to: /home/nvidia/jetson_multimedia_api/argus/build
I am constrained to using the older version of Jetpack (4.6.1) for the hardware I’m using, and the video drivers I’m using for a particular video camera from FRAMOS.
Attached are the files you asked for.
I’ll modify the CMakeLists.txt file per your recommendation and let you now how that goes.