Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross-compile failed for Arm toolchain. #321

Open
SOORYADEV-K opened this issue Dec 21, 2023 · 1 comment
Open

Cross-compile failed for Arm toolchain. #321

SOORYADEV-K opened this issue Dec 21, 2023 · 1 comment

Comments

@SOORYADEV-K
Copy link

hi, I was trying to compile the v4l2rstp server using my arm toolchain. but it failed with the following errors.

 cmake .
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /opt/fslc-framebuffer/4.0/sysroots/x86_64-fslcsdk-linux/usr/bin/arm-fslc-linux-gnueabi/arm-fslc-linux-gnueabi-gcc
-- Check for working C compiler: /opt/fslc-framebuffer/4.0/sysroots/x86_64-fslcsdk-linux/usr/bin/arm-fslc-linux-gnueabi/arm-fslc-linux-gnueabi-gcc - broken
CMake Error at /opt/fslc-framebuffer/4.0/sysroots/x86_64-fslcsdk-linux/usr/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake:69 (message):
  The C compiler

    "/opt/fslc-framebuffer/4.0/sysroots/x86_64-fslcsdk-linux/usr/bin/arm-fslc-linux-gnueabi/arm-fslc-linux-gnueabi-gcc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/sidhartha/train/phase2/ec10/v4l2rtspserver/CMakeFiles/CMakeTmp
    
    Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_31971/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_31971.dir/build.make CMakeFiles/cmTC_31971.dir/build
    gmake[1]: Entering directory '/home/sidhartha/train/phase2/ec10/v4l2rtspserver/CMakeFiles/CMakeTmp'
    Building C object CMakeFiles/cmTC_31971.dir/testCCompiler.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_31971.dir/testCCompiler.c.o -c /home/sidhartha/train/phase2/ec10/v4l2rtspserver/CMakeFiles/CMakeTmp/testCCompiler.c
    Linking C executable cmTC_31971
    /opt/fslc-framebuffer/4.0/sysroots/x86_64-fslcsdk-linux/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_31971.dir/link.txt --verbose=1
    /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   -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed  -Wl,-z,relro,-z,now  -rdynamic CMakeFiles/cmTC_31971.dir/testCCompiler.c.o -o cmTC_31971 
    /opt/fslc-framebuffer/4.0/sysroots/x86_64-fslcsdk-linux/usr/libexec/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/11.3.0/ld: error: cmTC_31971 uses VFP register arguments, CMakeFiles/cmTC_31971.dir/testCCompiler.c.o does not
    /opt/fslc-framebuffer/4.0/sysroots/x86_64-fslcsdk-linux/usr/libexec/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/11.3.0/ld: failed to merge target specific data of file CMakeFiles/cmTC_31971.dir/testCCompiler.c.o
    collect2: error: ld returned 1 exit status
    gmake[1]: *** [CMakeFiles/cmTC_31971.dir/build.make:99: cmTC_31971] Error 1
    gmake[1]: Leaving directory '/home/sidhartha/train/phase2/ec10/v4l2rtspserver/CMakeFiles/CMakeTmp'
    gmake: *** [Makefile:127: cmTC_31971/fast] Error 2
    
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:3 (project)


-- Configuring incomplete, errors occurred!
See also "/home/sidhartha/train/phase2/ec10/v4l2rtspserver/CMakeFiles/CMakeOutput.log".
See also "/home/sidhartha/train/phase2/ec10/v4l2rtspserver/CMakeFiles/CMakeError.log".

I'm using the following bin for the CC and CXX.

echo $CC
arm-fslc-linux-gnueabi-gcc -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/fslc-framebuffer/4.0/sysroots/cortexa9t2hf-neon-fslc-linux-gnueabi

echo $CXX
arm-fslc-linux-gnueabi-g++ -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/fslc-framebuffer/4.0/sysroots/cortexa9t2hf-neon-fslc-linux-gnueabi

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.

$ cmake .
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/fslc-framebuffer/4.0/sysroots/x86_64-fslcsdk-linux/usr/bin/arm-fslc-linux-gnueabi/arm-fslc-linux-gnueabi-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /opt/fslc-framebuffer/4.0/sysroots/x86_64-fslcsdk-linux/usr/bin/arm-fslc-linux-gnueabi/arm-fslc-linux-gnueabi-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.34.1") 
-- CMAKE_TOOLCHAIN_FILE=/opt/fslc-framebuffer/4.0/sysroots/x86_64-fslcsdk-linux/usr/share/cmake/OEToolchainConfig.cmake
-- CMAKE_C_COMPILER=/opt/fslc-framebuffer/4.0/sysroots/x86_64-fslcsdk-linux/usr/bin/arm-fslc-linux-gnueabi/arm-fslc-linux-gnueabi-gcc
-- CMAKE_CXX_COMPILER=/opt/fslc-framebuffer/4.0/sysroots/x86_64-fslcsdk-linux/usr/bin/arm-fslc-linux-gnueabi/arm-fslc-linux-gnueabi-g++
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Could NOT find Threads (missing: Threads_FOUND) 
OpenSSL_FOUND = TRUE
-- Could NOT find libliveMedia (missing: LIBLIVEMEDIA_LIBRARY LIBLIVEMEDIA_INCLUDE_DIR) 
-- Could NOT find libUsageEnvironment (missing: LIBUSAGEENVIRONMENT_LIBRARY LIBUSAGEENVIRONMENT_INCLUDE_DIR) 
-- Could NOT find libBasicUsageEnvironment (missing: LIBBASICUSAGEENVIRONMENT_LIBRARY LIBBASICUSAGEENVIRONMENT_INCLUDE_DIR) 
-- Could NOT find libgroupsock (missing: LIBGROUPSOCK_LIBRARY LIBGROUPSOCK_INCLUDE_DIR) 
x live/
x live/liveMedia/
x live/groupsock/
x live/UsageEnvironment/
x live/BasicUsageEnvironment/
x live/testProgs/
x live/mediaServer/
x live/proxyServer/
x live/hlsProxy/
x live/WindowsAudioInputDevice/
x live/configure
x live/config.armeb-uclibc
x live/config.armlinux
x live/config.avr32-linux
x live/config.bfin-linux-uclibc
x live/config.bfin-uclinux
x live/config.bsplinux
x live/config.cris-axis-linux-gnu
x live/config.cygwin
x live/config.freebsd
x live/config.cygwin-for-vlc
x live/config.freebsd-no-openssl
x live/config.iphone-simulator
x live/config.iphoneos
x live/config.linux
x live/config.linux-64bit
x live/config.linux-gdb
x live/config.linux-gdb-sanitize
x live/config.linux-no-openssl
x live/config.linux-with-shared-libraries
x live/config.macosx-bigsur
x live/config.macosx-catalina
x live/config.macosx-no-openssl
x live/config.mingw
x live/config.openbsd
x live/config.qnx4
x live/config.uClinux
x live/config.solaris-32bit
x live/config.solaris-64bit
x live/genMakefiles
x live/COPYING
x live/COPYING.LESSER
x live/README
x live/Makefile.head
x live/Makefile.tail
x live/fix-makefile
x live/win32config
x live/win32config.Borland
x live/genWindowsMakefiles
x live/genWindowsMakefiles.cmd
x live/WindowsAudioInputDevice/showAudioInputPorts.cpp
x live/WindowsAudioInputDevice/WindowsAudioInputDevice.mak
x live/WindowsAudioInputDevice/WindowsAudioInputDevice_common.cpp
x live/WindowsAudioInputDevice/WindowsAudioInputDevice_common.hh
x live/WindowsAudioInputDevice/WindowsAudioInputDevice_mixer.cpp
x live/WindowsAudioInputDevice/WindowsAudioInputDevice_mixer.hh
x live/WindowsAudioInputDevice/WindowsAudioInputDevice_noMixer.cpp
x live/WindowsAudioInputDevice/WindowsAudioInputDevice_noMixer.hh
x live/hlsProxy/COPYING
x live/hlsProxy/COPYING.LESSER
x live/hlsProxy/Makefile.head
x live/hlsProxy/Makefile.tail
x live/hlsProxy/live555HLSProxy.cpp
x live/proxyServer/COPYING
x live/proxyServer/live555ProxyServer.cpp
x live/proxyServer/Makefile.head
x live/proxyServer/Makefile.tail
x live/proxyServer/COPYING.LESSER
x live/mediaServer/COPYING
x live/mediaServer/DynamicRTSPServer.cpp
x live/mediaServer/DynamicRTSPServer.hh
x live/mediaServer/live555MediaServer.cpp
x live/mediaServer/Makefile.head
x live/mediaServer/Makefile.tail
x live/mediaServer/version.hh
x live/mediaServer/COPYING.LESSER
x live/testProgs/COPYING
x live/testProgs/Makefile.head
x live/testProgs/Makefile.tail
x live/testProgs/MPEG2TransportStreamIndexer.cpp
x live/testProgs/openRTSP.cpp
x live/testProgs/playCommon.hh
x live/testProgs/playSIP.cpp
x live/testProgs/registerRTSPStream.cpp
x live/testProgs/sapWatch.cpp
x live/testProgs/testAMRAudioStreamer.cpp
x live/testProgs/testDVVideoStreamer.cpp
x live/testProgs/testGSMStreamer.cpp
x live/testProgs/testH264VideoStreamer.cpp
x live/testProgs/testH264VideoToTransportStream.cpp
x live/testProgs/COPYING.LESSER
x live/testProgs/testMKVStreamer.cpp
x live/testProgs/announceURL.cpp
x live/testProgs/testH265VideoToTransportStream.cpp
x live/testProgs/testOggStreamer.cpp
x live/testProgs/testMP3-using-ADUs.sdp
x live/testProgs/testMP3.sdp
x live/testProgs/testMP3Receiver.cpp
x live/testProgs/testMP3Streamer.cpp
x live/testProgs/testMPEG1or2AudioVideo.sdp
x live/testProgs/testMPEG1or2AudioVideoStreamer.cpp
x live/testProgs/testMPEG1or2ProgramToTransportStream.cpp
x live/testProgs/testMPEG1or2Splitter.cpp
x live/testProgs/testMPEG1or2Video.sdp
x live/testProgs/testMPEG1or2VideoReceiver.cpp
x live/testProgs/testMPEG1or2VideoStreamer.cpp
x live/testProgs/testMPEG2Transport.sdp
x live/testProgs/testMPEG2TransportReceiver.cpp
x live/testProgs/testMPEG2TransportStreamer.cpp
x live/testProgs/testMPEG2TransportStreamTrickPlay.cpp
x live/testProgs/testMPEG4VideoStreamer.cpp
x live/testProgs/announceURL.hh
x live/testProgs/testRelay.cpp
x live/testProgs/testReplicator.cpp
x live/testProgs/testRTSPClient.cpp
x live/testProgs/testWAVAudioStreamer.cpp
x live/testProgs/vobStreamer.cpp
x live/testProgs/testH265VideoStreamer.cpp
x live/testProgs/testMKVSplitter.cpp
x live/testProgs/playCommon.cpp
x live/testProgs/mikeyParse.cpp
x live/testProgs/testH264VideoToHLSSegments.cpp
x live/testProgs/testMPEG2TransportStreamSplitter.cpp
x live/testProgs/testOnDemandRTSPServer.cpp
x live/BasicUsageEnvironment/BasicHashTable.cpp
x live/BasicUsageEnvironment/BasicTaskScheduler.cpp
x live/BasicUsageEnvironment/BasicTaskScheduler0.cpp
x live/BasicUsageEnvironment/BasicUsageEnvironment.cpp
x live/BasicUsageEnvironment/BasicUsageEnvironment0.cpp
x live/BasicUsageEnvironment/COPYING
x live/BasicUsageEnvironment/DelayQueue.cpp
x live/BasicUsageEnvironment/include/
x live/BasicUsageEnvironment/Makefile.head
x live/BasicUsageEnvironment/Makefile.tail
x live/BasicUsageEnvironment/COPYING.LESSER
x live/BasicUsageEnvironment/include/BasicHashTable.hh
x live/BasicUsageEnvironment/include/BasicUsageEnvironment.hh
x live/BasicUsageEnvironment/include/BasicUsageEnvironment0.hh
x live/BasicUsageEnvironment/include/BasicUsageEnvironment_version.hh
x live/BasicUsageEnvironment/include/DelayQueue.hh
x live/BasicUsageEnvironment/include/HandlerSet.hh
x live/UsageEnvironment/COPYING
x live/UsageEnvironment/HashTable.cpp
x live/UsageEnvironment/include/
x live/UsageEnvironment/Makefile.head
x live/UsageEnvironment/Makefile.tail
x live/UsageEnvironment/strDup.cpp
x live/UsageEnvironment/UsageEnvironment.cpp
x live/UsageEnvironment/COPYING.LESSER
x live/UsageEnvironment/include/Boolean.hh
x live/UsageEnvironment/include/HashTable.hh
x live/UsageEnvironment/include/strDup.hh
x live/UsageEnvironment/include/UsageEnvironment.hh
x live/UsageEnvironment/include/UsageEnvironment_version.hh
x live/groupsock/COPYING
x live/groupsock/GroupEId.cpp
x live/groupsock/Groupsock.cpp
x live/groupsock/GroupsockHelper.cpp
x live/groupsock/include/
x live/groupsock/inet.c
x live/groupsock/IOHandlers.cpp
x live/groupsock/Makefile.head
x live/groupsock/Makefile.tail
x live/groupsock/NetAddress.cpp
x live/groupsock/NetInterface.cpp
x live/groupsock/COPYING.LESSER
x live/groupsock/include/GroupEId.hh
x live/groupsock/include/Groupsock.hh
x live/groupsock/include/groupsock_version.hh
x live/groupsock/include/GroupsockHelper.hh
x live/groupsock/include/IOHandlers.hh
x live/groupsock/include/NetAddress.hh
x live/groupsock/include/NetCommon.h
x live/groupsock/include/NetInterface.hh
x live/liveMedia/AC3AudioFileServerMediaSubsession.cpp
x live/liveMedia/AC3AudioRTPSink.cpp
x live/liveMedia/AC3AudioRTPSource.cpp
x live/liveMedia/AC3AudioStreamFramer.cpp
x live/liveMedia/ADTSAudioFileServerMediaSubsession.cpp
x live/liveMedia/ADTSAudioFileSource.cpp
x live/liveMedia/AMRAudioFileServerMediaSubsession.cpp
x live/liveMedia/AMRAudioFileSink.cpp
x live/liveMedia/AMRAudioFileSource.cpp
x live/liveMedia/AMRAudioRTPSink.cpp
x live/liveMedia/AMRAudioRTPSource.cpp
x live/liveMedia/AMRAudioSource.cpp
x live/liveMedia/AudioInputDevice.cpp
x live/liveMedia/AudioRTPSink.cpp
x live/liveMedia/AVIFileSink.cpp
x live/liveMedia/Base64.cpp
x live/liveMedia/BasicUDPSink.cpp
x live/liveMedia/BasicUDPSource.cpp
x live/liveMedia/BitVector.cpp
x live/liveMedia/ByteStreamFileSource.cpp
x live/liveMedia/ByteStreamMemoryBufferSource.cpp
x live/liveMedia/ByteStreamMultiFileSource.cpp
x live/liveMedia/COPYING
x live/liveMedia/DeviceSource.cpp
x live/liveMedia/DigestAuthentication.cpp
x live/liveMedia/DVVideoFileServerMediaSubsession.cpp
x live/liveMedia/DVVideoRTPSink.cpp
x live/liveMedia/DVVideoRTPSource.cpp
x live/liveMedia/DVVideoStreamFramer.cpp
x live/liveMedia/include/
x live/liveMedia/COPYING.LESSER
x live/liveMedia/EBMLNumber.cpp
x live/liveMedia/FileServerMediaSubsession.cpp
x live/liveMedia/FileSink.cpp
x live/liveMedia/FramedFileSource.cpp
x live/liveMedia/FramedFilter.cpp
x live/liveMedia/FramedSource.cpp
x live/liveMedia/GSMAudioRTPSink.cpp
x live/liveMedia/H261VideoRTPSource.cpp
x live/liveMedia/H263plusVideoFileServerMediaSubsession.cpp
x live/liveMedia/H263plusVideoRTPSink.cpp
x live/liveMedia/H263plusVideoRTPSource.cpp
x live/liveMedia/H263plusVideoStreamFramer.cpp
x live/liveMedia/H263plusVideoStreamParser.cpp
x live/liveMedia/H263plusVideoStreamParser.hh
x live/liveMedia/H264or5VideoRTPSink.cpp
x live/liveMedia/H264or5VideoFileSink.cpp
x live/liveMedia/H264or5VideoStreamDiscreteFramer.cpp
x live/liveMedia/H264or5VideoStreamFramer.cpp
x live/liveMedia/H264VideoFileServerMediaSubsession.cpp
x live/liveMedia/H264VideoFileSink.cpp
x live/liveMedia/H264VideoRTPSink.cpp
x live/liveMedia/H264VideoRTPSource.cpp
x live/liveMedia/H264VideoStreamDiscreteFramer.cpp
x live/liveMedia/H264VideoStreamFramer.cpp
x live/liveMedia/H265VideoFileServerMediaSubsession.cpp
x live/liveMedia/H265VideoFileSink.cpp
x live/liveMedia/H265VideoRTPSink.cpp
x live/liveMedia/Locale.cpp
x live/liveMedia/H265VideoRTPSource.cpp
x live/liveMedia/H265VideoStreamDiscreteFramer.cpp
x live/liveMedia/H265VideoStreamFramer.cpp
x live/liveMedia/InputFile.cpp
x live/liveMedia/JPEGVideoRTPSink.cpp
x live/liveMedia/JPEGVideoRTPSource.cpp
x live/liveMedia/JPEGVideoSource.cpp
x live/liveMedia/Makefile.head
x live/liveMedia/Makefile.tail
x live/liveMedia/MatroskaDemuxedTrack.cpp
x live/liveMedia/MatroskaDemuxedTrack.hh
x live/liveMedia/MatroskaFile.cpp
x live/liveMedia/MatroskaFileParser.cpp
x live/liveMedia/MatroskaFileParser.hh
x live/liveMedia/MatroskaFileServerDemux.cpp
x live/liveMedia/Media.cpp
x live/liveMedia/MediaSink.cpp
x live/liveMedia/MediaSource.cpp
x live/liveMedia/MatroskaFileServerMediaSubsession.cpp
x live/liveMedia/MatroskaFileServerMediaSubsession.hh
x live/liveMedia/MP3ADU.cpp
x live/liveMedia/MP3ADUdescriptor.cpp
x live/liveMedia/MP3ADUdescriptor.hh
x live/liveMedia/MP3ADUinterleaving.cpp
x live/liveMedia/MP3ADURTPSink.cpp
x live/liveMedia/MP3ADURTPSource.cpp
x live/liveMedia/MP3ADUTranscoder.cpp
x live/liveMedia/MP3AudioFileServerMediaSubsession.cpp
x live/liveMedia/MP3AudioMatroskaFileServerMediaSubsession.cpp
x live/liveMedia/MP3FileSource.cpp
x live/liveMedia/ProxyServerMediaSession.cpp
x live/liveMedia/MP3Internals.hh
x live/liveMedia/RTSPServer.cpp
x live/liveMedia/MP3AudioMatroskaFileServerMediaSubsession.hh
x live/liveMedia/MP3Internals.cpp
x live/liveMedia/MP3InternalsHuffman.cpp
x live/liveMedia/MP3InternalsHuffman.hh
x live/liveMedia/MP3InternalsHuffmanTable.cpp
x live/liveMedia/MP3StreamState.cpp
x live/liveMedia/MP3StreamState.hh
x live/liveMedia/MP3Transcoder.cpp
x live/liveMedia/MPEG1or2AudioRTPSink.cpp
x live/liveMedia/MPEG1or2AudioRTPSource.cpp
x live/liveMedia/MPEG1or2AudioStreamFramer.cpp
x live/liveMedia/MPEG1or2DemuxedElementaryStream.cpp
x live/liveMedia/MPEG4ESVideoRTPSink.cpp
x live/liveMedia/MPEG1or2DemuxedServerMediaSubsession.cpp
x live/liveMedia/MPEG1or2FileServerDemux.cpp
x live/liveMedia/MPEG1or2VideoFileServerMediaSubsession.cpp
x live/liveMedia/MPEG1or2VideoRTPSink.cpp
x live/liveMedia/MPEG1or2VideoRTPSource.cpp
x live/liveMedia/MPEG1or2VideoStreamDiscreteFramer.cpp
x live/liveMedia/MPEG1or2VideoStreamFramer.cpp
x live/liveMedia/MPEG2IndexFromTransportStream.cpp
x live/liveMedia/MPEG2TransportFileServerMediaSubsession.cpp
x live/liveMedia/MPEG2TransportStreamFramer.cpp
x live/liveMedia/MPEG2TransportStreamFromESSource.cpp
x live/liveMedia/OggDemuxedTrack.cpp
x live/liveMedia/MPEG2TransportStreamFromPESSource.cpp
x live/liveMedia/MPEG2TransportStreamIndexFile.cpp
x live/liveMedia/MPEG2TransportStreamTrickModeFilter.cpp
x live/liveMedia/MPEG2TransportUDPServerMediaSubsession.cpp
x live/liveMedia/MPEG4ESVideoRTPSource.cpp
x live/liveMedia/MPEG4GenericRTPSink.cpp
x live/liveMedia/MPEG4GenericRTPSource.cpp
x live/liveMedia/MPEG4LATMAudioRTPSink.cpp
x live/liveMedia/MPEG4LATMAudioRTPSource.cpp
x live/liveMedia/MPEG4VideoFileServerMediaSubsession.cpp
x live/liveMedia/MPEG4VideoStreamDiscreteFramer.cpp
x live/liveMedia/RTSPCommon.cpp
x live/liveMedia/MIKEY.cpp
x live/liveMedia/MPEG4VideoStreamFramer.cpp
x live/liveMedia/ourMD5.cpp
x live/liveMedia/MPEGVideoStreamFramer.cpp
x live/liveMedia/MPEGVideoStreamParser.cpp
x live/liveMedia/MPEGVideoStreamParser.hh
x live/liveMedia/MultiFramedRTPSource.cpp
x live/liveMedia/OggDemuxedTrack.hh
x live/liveMedia/OggFileParser.cpp
x live/liveMedia/OggFileParser.hh
x live/liveMedia/OggFileServerMediaSubsession.cpp
x live/liveMedia/OggFileServerMediaSubsession.hh
x live/liveMedia/MediaSession.cpp
x live/liveMedia/OutputFile.cpp
x live/liveMedia/QCELPAudioRTPSource.cpp
x live/liveMedia/MPEG1or2Demux.cpp
x live/liveMedia/PassiveServerMediaSubsession.cpp
x live/liveMedia/QuickTimeFileSink.cpp
x live/liveMedia/QuickTimeGenericRTPSource.cpp
x live/liveMedia/RTCP.cpp
x live/liveMedia/rtcp_from_spec.c
x live/liveMedia/rtcp_from_spec.h
x live/liveMedia/RTPInterface.cpp
x live/liveMedia/RTPSource.cpp
x live/liveMedia/RTSPRegisterSender.cpp
x live/liveMedia/ServerMediaSession.cpp
x live/liveMedia/SimpleRTPSink.cpp
x live/liveMedia/SimpleRTPSource.cpp
x live/liveMedia/SIPClient.cpp
x live/liveMedia/RTSPClient.cpp
x live/liveMedia/HMAC_SHA1.cpp
x live/liveMedia/OggFileServerDemux.cpp
x live/liveMedia/OggFile.cpp
x live/liveMedia/StreamParser.cpp
x live/liveMedia/StreamParser.hh
x live/liveMedia/T140TextRTPSink.cpp
x live/liveMedia/StreamReplicator.cpp
x live/liveMedia/TextRTPSink.cpp
x live/liveMedia/TheoraVideoRTPSink.cpp
x live/liveMedia/TheoraVideoRTPSource.cpp
x live/liveMedia/uLawAudioFilter.cpp
x live/liveMedia/VideoRTPSink.cpp
x live/liveMedia/VorbisAudioRTPSource.cpp
x live/liveMedia/VP8VideoRTPSink.cpp
x live/liveMedia/VP8VideoRTPSource.cpp
x live/liveMedia/VP9VideoRTPSink.cpp
x live/liveMedia/VP9VideoRTPSource.cpp
x live/liveMedia/WAVAudioFileSource.cpp
x live/liveMedia/RTSPServerRegister.cpp
x live/liveMedia/GenericMediaServer.cpp
x live/liveMedia/RTPSink.cpp
x live/liveMedia/MultiFramedRTPSink.cpp
x live/liveMedia/EBMLNumber.hh
x live/liveMedia/MPEG2TransportStreamAccumulator.cpp
x live/liveMedia/WAVAudioFileServerMediaSubsession.cpp
x live/liveMedia/RawVideoRTPSource.cpp
x live/liveMedia/RawVideoRTPSink.cpp
x live/liveMedia/MPEG2TransportStreamParser.cpp
x live/liveMedia/OnDemandServerMediaSubsession.cpp
x live/liveMedia/JPEG2000VideoRTPSource.cpp
x live/liveMedia/JPEG2000VideoRTPSink.cpp
x live/liveMedia/OggFileSink.cpp
x live/liveMedia/VorbisAudioRTPSink.cpp
x live/liveMedia/TLSState.cpp
x live/liveMedia/MPEG2TransportStreamParser.hh
x live/liveMedia/MPEG2TransportStreamParser_PAT.cpp
x live/liveMedia/HLSSegmenter.cpp
x live/liveMedia/MPEG2TransportStreamParser_PMT.cpp
x live/liveMedia/ADTSAudioStreamDiscreteFramer.cpp
x live/liveMedia/MPEG2TransportStreamParser_STREAM.cpp
x live/liveMedia/MPEG2TransportStreamDemuxedTrack.cpp
x live/liveMedia/MPEG2TransportStreamDemuxedTrack.hh
x live/liveMedia/MPEG2TransportStreamDemux.cpp
x live/liveMedia/MPEG2TransportStreamMultiplexor.cpp
x live/liveMedia/SRTPCryptographicContext.cpp
x live/liveMedia/include/AC3AudioFileServerMediaSubsession.hh
x live/liveMedia/include/AC3AudioRTPSink.hh
x live/liveMedia/include/AC3AudioRTPSource.hh
x live/liveMedia/include/AC3AudioStreamFramer.hh
x live/liveMedia/include/ADTSAudioFileServerMediaSubsession.hh
x live/liveMedia/include/ADTSAudioFileSource.hh
x live/liveMedia/include/AMRAudioFileServerMediaSubsession.hh
x live/liveMedia/include/AMRAudioFileSink.hh
x live/liveMedia/include/AMRAudioFileSource.hh
x live/liveMedia/include/AMRAudioRTPSink.hh
x live/liveMedia/include/AMRAudioRTPSource.hh
x live/liveMedia/include/AMRAudioSource.hh
x live/liveMedia/include/AudioInputDevice.hh
x live/liveMedia/include/AudioRTPSink.hh
x live/liveMedia/include/Base64.hh
x live/liveMedia/include/AVIFileSink.hh
x live/liveMedia/include/BasicUDPSink.hh
x live/liveMedia/include/BasicUDPSource.hh
x live/liveMedia/include/BitVector.hh
x live/liveMedia/include/ByteStreamFileSource.hh
x live/liveMedia/include/ByteStreamMemoryBufferSource.hh
x live/liveMedia/include/ByteStreamMultiFileSource.hh
x live/liveMedia/include/DeviceSource.hh
x live/liveMedia/include/DigestAuthentication.hh
x live/liveMedia/include/DVVideoFileServerMediaSubsession.hh
x live/liveMedia/include/DVVideoRTPSink.hh
x live/liveMedia/include/DVVideoRTPSource.hh
x live/liveMedia/include/DVVideoStreamFramer.hh
x live/liveMedia/include/FileServerMediaSubsession.hh
x live/liveMedia/include/RawVideoRTPSink.hh
x live/liveMedia/include/FileSink.hh
x live/liveMedia/include/FramedFilter.hh
x live/liveMedia/include/FramedFileSource.hh
x live/liveMedia/include/FramedSource.hh
x live/liveMedia/include/GSMAudioRTPSink.hh
x live/liveMedia/include/H261VideoRTPSource.hh
x live/liveMedia/include/H263plusVideoFileServerMediaSubsession.hh
x live/liveMedia/include/H263plusVideoRTPSink.hh
x live/liveMedia/include/H263plusVideoRTPSource.hh
x live/liveMedia/include/H263plusVideoStreamFramer.hh
x live/liveMedia/include/H264or5VideoFileSink.hh
x live/liveMedia/include/H264or5VideoRTPSink.hh
x live/liveMedia/include/H264or5VideoStreamDiscreteFramer.hh
x live/liveMedia/include/H264or5VideoStreamFramer.hh
x live/liveMedia/include/H264VideoFileServerMediaSubsession.hh
x live/liveMedia/include/H264VideoFileSink.hh
x live/liveMedia/include/RTCP.hh
x live/liveMedia/include/H264VideoRTPSink.hh
x live/liveMedia/include/H264VideoRTPSource.hh
x live/liveMedia/include/H264VideoStreamDiscreteFramer.hh
x live/liveMedia/include/H264VideoStreamFramer.hh
x live/liveMedia/include/H265VideoFileServerMediaSubsession.hh
x live/liveMedia/include/H265VideoFileSink.hh
x live/liveMedia/include/H265VideoRTPSink.hh
x live/liveMedia/include/H265VideoRTPSource.hh
x live/liveMedia/include/H265VideoStreamDiscreteFramer.hh
x live/liveMedia/include/H265VideoStreamFramer.hh
x live/liveMedia/include/InputFile.hh
x live/liveMedia/include/JPEGVideoRTPSink.hh
x live/liveMedia/include/JPEGVideoRTPSource.hh
x live/liveMedia/include/JPEGVideoSource.hh
x live/liveMedia/include/liveMedia.hh
x live/liveMedia/include/liveMedia_version.hh
x live/liveMedia/include/Locale.hh
x live/liveMedia/include/MatroskaFile.hh
x live/liveMedia/include/MatroskaFileServerDemux.hh
x live/liveMedia/include/Media.hh
x live/liveMedia/include/MediaSession.hh
x live/liveMedia/include/MediaSink.hh
x live/liveMedia/include/MediaSource.hh
x live/liveMedia/include/MP3ADU.hh
x live/liveMedia/include/MP3ADUinterleaving.hh
x live/liveMedia/include/MP3ADURTPSink.hh
x live/liveMedia/include/MP3ADURTPSource.hh
x live/liveMedia/include/MP3ADUTranscoder.hh
x live/liveMedia/include/MP3AudioFileServerMediaSubsession.hh
x live/liveMedia/include/MP3FileSource.hh
x live/liveMedia/include/MP3Transcoder.hh
x live/liveMedia/include/MPEG1or2AudioRTPSink.hh
x live/liveMedia/include/MPEG1or2AudioRTPSource.hh
x live/liveMedia/include/MPEG1or2AudioStreamFramer.hh
x live/liveMedia/include/MPEG1or2Demux.hh
x live/liveMedia/include/MPEG1or2DemuxedElementaryStream.hh
x live/liveMedia/include/MPEG1or2DemuxedServerMediaSubsession.hh
x live/liveMedia/include/MPEG1or2FileServerDemux.hh
x live/liveMedia/include/MPEG1or2VideoFileServerMediaSubsession.hh
x live/liveMedia/include/MPEG1or2VideoRTPSink.hh
x live/liveMedia/include/MPEG1or2VideoRTPSource.hh
x live/liveMedia/include/MPEG1or2VideoStreamDiscreteFramer.hh
x live/liveMedia/include/MPEG1or2VideoStreamFramer.hh
x live/liveMedia/include/MPEG2IndexFromTransportStream.hh
x live/liveMedia/include/MPEG2TransportFileServerMediaSubsession.hh
x live/liveMedia/include/MPEG2TransportStreamFramer.hh
x live/liveMedia/include/MPEG2TransportStreamFromESSource.hh
x live/liveMedia/include/MPEG2TransportStreamFromPESSource.hh
x live/liveMedia/include/MPEG2TransportStreamIndexFile.hh
x live/liveMedia/include/MPEG2TransportStreamMultiplexor.hh
x live/liveMedia/include/MPEG2TransportStreamTrickModeFilter.hh
x live/liveMedia/include/MPEG2TransportUDPServerMediaSubsession.hh
x live/liveMedia/include/MPEG4ESVideoRTPSink.hh
x live/liveMedia/include/MPEG4ESVideoRTPSource.hh
x live/liveMedia/include/MPEG4GenericRTPSink.hh
x live/liveMedia/include/MPEG4GenericRTPSource.hh
x live/liveMedia/include/MPEG4LATMAudioRTPSink.hh
x live/liveMedia/include/OggFile.hh
x live/liveMedia/include/MPEG4LATMAudioRTPSource.hh
x live/liveMedia/include/MPEG4VideoFileServerMediaSubsession.hh
x live/liveMedia/include/MPEG4VideoStreamDiscreteFramer.hh
x live/liveMedia/include/MPEG4VideoStreamFramer.hh
x live/liveMedia/include/MPEGVideoStreamFramer.hh
x live/liveMedia/include/MultiFramedRTPSink.hh
x live/liveMedia/include/MultiFramedRTPSource.hh
x live/liveMedia/include/OggFileServerDemux.hh
x live/liveMedia/include/OggFileSink.hh
x live/liveMedia/include/OnDemandServerMediaSubsession.hh
x live/liveMedia/include/ourMD5.hh
x live/liveMedia/include/OutputFile.hh
x live/liveMedia/include/PassiveServerMediaSubsession.hh
x live/liveMedia/include/ProxyServerMediaSession.hh
x live/liveMedia/include/RTPInterface.hh
x live/liveMedia/include/QCELPAudioRTPSource.hh
x live/liveMedia/include/QuickTimeFileSink.hh
x live/liveMedia/include/QuickTimeGenericRTPSource.hh
x live/liveMedia/include/RTPSink.hh
x live/liveMedia/include/RTPSource.hh
x live/liveMedia/include/RTSPCommon.hh
x live/liveMedia/include/RTSPRegisterSender.hh
x live/liveMedia/include/ADTSAudioStreamDiscreteFramer.hh
x live/liveMedia/include/ServerMediaSession.hh
x live/liveMedia/include/SimpleRTPSink.hh
x live/liveMedia/include/SimpleRTPSource.hh
x live/liveMedia/include/SIPClient.hh
x live/liveMedia/include/StreamReplicator.hh
x live/liveMedia/include/T140TextRTPSink.hh
x live/liveMedia/include/MediaTranscodingTable.hh
x live/liveMedia/include/RTSPServer.hh
x live/liveMedia/include/RawVideoFrameParameters.hh
x live/liveMedia/include/TextRTPSink.hh
x live/liveMedia/include/TheoraVideoRTPSink.hh
x live/liveMedia/include/TheoraVideoRTPSource.hh
x live/liveMedia/include/uLawAudioFilter.hh
x live/liveMedia/include/VideoRTPSink.hh
x live/liveMedia/include/VorbisAudioRTPSink.hh
x live/liveMedia/include/VorbisAudioRTPSource.hh
x live/liveMedia/include/VP8VideoRTPSink.hh
x live/liveMedia/include/VP8VideoRTPSource.hh
x live/liveMedia/include/VP9VideoRTPSink.hh
x live/liveMedia/include/VP9VideoRTPSource.hh
x live/liveMedia/include/WAVAudioFileServerMediaSubsession.hh
x live/liveMedia/include/WAVAudioFileSource.hh
x live/liveMedia/include/RTSPClient.hh
x live/liveMedia/include/GenericMediaServer.hh
x live/liveMedia/include/MPEG2TransportStreamAccumulator.hh
x live/liveMedia/include/RawVideoRTPSource.hh
x live/liveMedia/include/JPEG2000VideoRTPSource.hh
x live/liveMedia/include/JPEG2000VideoRTPSink.hh
x live/liveMedia/include/MPEG2TransportStreamDemux.hh
x live/liveMedia/include/HLSSegmenter.hh
x live/liveMedia/include/TLSState.hh
x live/liveMedia/include/MIKEY.hh
x live/liveMedia/include/SRTPCryptographicContext.hh
x live/liveMedia/include/HMAC_SHA1.hh
x live/liveMedia/include/HMAC_hash.hh
ALSA_FOUND = FALSE
running git submodule update --init 2>&1
Submodule 'hls.js' (https://github.com/video-dev/hls.js) registered for path 'hls.js'
Submodule 'v4l2wrapper' (https://github.com/mpromonet/v4l2wrapper) registered for path 'libv4l2cpp'
Cloning into '/home/sidhartha/train/phase2/ec10/v4l2rtspserver/hls.js'...
Cloning into '/home/sidhartha/train/phase2/ec10/v4l2rtspserver/libv4l2cpp'...
Submodule path 'hls.js': checked out 'e90a1b999071e88af0f734ef18b9e8520c839cec'
Submodule path 'libv4l2cpp': checked out 'fac4b836b556f6befc55663f2aa1d6577fbabb8a'
-- Performing Test CXX_SUPPORTS_STATIC_LIBGCC
-- Performing Test CXX_SUPPORTS_STATIC_LIBGCC - Success
-- Performing Test CXX_SUPPORTS_STATIC_LIBSTDCPP
-- Performing Test CXX_SUPPORTS_STATIC_LIBSTDCPP - Success
-- Found PkgConfig: /opt/fslc-framebuffer/4.0/sysroots/x86_64-fslcsdk-linux/usr/bin/pkg-config (found version "0.29.2") 
-- CPACK_DEBIAN_PACKAGE_ARCHITECTURE=cortexa9t2hf-neon-fslc
-- Configuring done
CMake Error at CMakeLists.txt:34 (add_executable):
  Target "v4l2rtspserver" links to target "Threads::Threads" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?


-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

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

@mpromonet
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants