Hardware platform: Jetson Nano
Jetpack version: 4.6.1
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:
sudo mkdir build
sudo cmake ..
cmake creates the appropriate
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
Has anyone also experienced this?
Has anyone found a solution to fix this problem?
could you please also share the complete logs while running
$ cmake ..?
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.
$ 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.
CMakeError.log (3.1 KB)
you may try running
$ cmake .. again, and catching the console logs for quick checking.
Your suggestion rectified the error condition; many thanks!
just for confirmation, is it the same workaround to resolve the failure?
Yes, commenting out the “droid” lines solved the problem.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.