amazon-kinesis-video-streams-producer-sdk-cpp: Cross-compile to ARM aarch64 cmake failure

cmake … -DBUILD_GSTREAMER_PLUGIN=ON -DBUILD_DEPENDENCIES=ON fails with:

checking whether we are cross compiling… configure: error: in /home/gi/kvssdk_feb18/amazon-kinesis-video-streams-producer-sdk-cpp/open- source/liblog4cplus/build/src/project_log4cplus': configure: error: cannot run C compiled programs. If you meant to cross compile, use –host’.

There is no parameter in CMake to pass the --host flag. There is further no setting in CMake.txt nor CMakeCache.txt. Cross-compile, toolchain info, CXX-flags can be configured in CMakeCache.txt and are accepted by CMake, but the configure command in liblog4cplus does not get invoked with the --host parameter. Even manually changing the configure command to include the --host parameter does not help; CMake overrides the configure command and drops the --host parameter.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21 (10 by maintainers)

Most upvoted comments

An alternative approach to cross-compiling might be to checkout and build the KVS-SDK on an ARM-64 platform, like a raspberry PI-4 with Ubuntu-20-ARM64 release.