amazon-kinesis-video-streams-producer-sdk-cpp: Build Error on Mac
when I execute cmake .. in the build folder, this is the error I got
[ 55%] Performing configure step for 'project_log4cplus'
checking build system type... x86_64-apple-darwin18.7.0
checking host system type... x86_64-apple-darwin18.7.0
checking target system type... x86_64-apple-darwin18.7.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking whether make supports the include directive... yes (GNU style)
checking for gcc... /Library/Developer/CommandLineTools/usr/bin/cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... configure: error: in `/PATH-TO-MY-FOLDER/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'.
See `config.log' for more details
make[2]: *** [build/src/project_log4cplus-stamp/project_log4cplus-configure] Error 1
make[1]: *** [CMakeFiles/project_log4cplus.dir/all] Error 2
make: *** [all] Error 2
CMake Error at CMake/Utilities.cmake:99 (message):
CMake step for liblog4cplus failed: 2
Call Stack (most recent call first):
CMakeLists.txt:76 (build_dependency)
Has anyone encountered this issue and resolved it?
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (5 by maintainers)
@grantpowell I actually built the dependency first and then build the Kinesis producer
MAC M1 arm64 with BigSur would not build from source and failed each time when building libopenssl. It seemed to still think it was i386 architecture. I installed the 10+ packages view brew (+ bison) and downloaded the latest Xcode but it still failed. After many hours I look at this issue and did what M-Davies suggested and it finally worked.
@roeniss we are welcoming any contribution of the repository. If you think of changes, please push a PR and it will be much appreciated 👍
Meanwhile, we are not yet officially supporting macOS Catalina. We have seen some build failures due to the system file protection. Could you please try to disable it and retry?
@TaihuaLi I noticed that you configured kvs with
cmake ... By default, we won’t generate gstreamer kvssink plugin. You need to configure withcmake .. -DBUILD_GSTREAMER_PLUGIN=ON. Then, you need to compile the project withmake.At the end, you should check if there’s a binary called
kvssinkin the build directory.