Open SOORYADEV-K opened 11 months ago
Hi,
From your error log, it seems include is missing:
gmake[1]: Entering directory '/home/sidhartha/train/phase2/ec10/v4l2rtspserver/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_f1a79.dir/CheckIncludeFile.c.o
/opt/fslc-framebuffer/4.0/sysroots/x86_64-fslcsdk-linux/usr/bin/arm-fslc-linux-gnueabi/arm-fslc-linux-gnueabi-gcc --sysroot=/opt/fslc-framebuffer/4.0/sysroots/cortexa9t2hf-neon-fslc-linux-gnueabi -O2 -pipe -g -feliminate-unused-debug-types -o CMakeFiles/cmTC_f1a79.dir/CheckIncludeFile.c.o -c /home/sidhartha/train/phase2/ec10/v4l2rtspserver/CMakeFiles/CMakeTmp/CheckIncludeFile.c
In file included from /opt/fslc-framebuffer/4.0/sysroots/cortexa9t2hf-neon-fslc-linux-gnueabi/usr/include/gnu/stubs.h:23,
from /opt/fslc-framebuffer/4.0/sysroots/cortexa9t2hf-neon-fslc-linux-gnueabi/usr/include/features.h:514,
from /opt/fslc-framebuffer/4.0/sysroots/x86_64-fslcsdk-linux/usr/lib/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/11.3.0/include-fixed/pthread.h:30,
from /home/sidhartha/train/phase2/ec10/v4l2rtspserver/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:
/opt/fslc-framebuffer/4.0/sysroots/cortexa9t2hf-neon-fslc-linux-gnueabi/usr/include/gnu/stubs-32.h:7:11: fatal error: gnu/stubs-soft.h: No such file or directory
7 | # include <gnu/stubs-soft.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[1]: *** [CMakeFiles/cmTC_f1a79.dir/build.make:78: CMakeFiles/cmTC_f1a79.dir/CheckIncludeFile.c.o] Error 1
gmake[1]: Leaving directory '/home/sidhartha/train/phase2/ec10/v4l2rtspserver/CMakeFiles/CMakeTmp'
gmake: *** [Makefile:127: cmTC_f1a79/fast] Error 2
Best Regards, Michel.
hi, I was trying to compile the v4l2rstp server using my arm toolchain. but it failed with the following errors.
I'm using the following bin for the CC and CXX.
Then I added these lines before the project(v4l2rtpserver) in the CMakeLists.txt
set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY")
Then the above errors were solved and. I got this new error.
But my toolchain have the FindThreads.cmake under the toolchain.
<path-to-toolchain>/x86_64-fslcsdk-linux/usr/share/cmake-3.22/Modules/FindThreads.cmake
Why this error is happening? how to solve this issue?
I've attached the log files here. CMakeError.log CMakeOutput.log