Skip to content

Issue with cross compiling for arm #784

@glisa-techno

Description

@glisa-techno

Hi @mpromonet, I am trying to cross-compile the WebRTC Streamer for the ARM architecture. With CMake, I am not getting any errors, but when compiling using the make command, I am encountering the following error: "No such file."
webrtc-streamer/../webrtc/src/third_party/boringssl/src/include/openssl/span.h:27:23: fatal error: string_view: No such file or directory #include <string_view> ^ compilation terminated. make[2]: *** [live555helper/CMakeFiles/liblive555helper.dir/build.make:271: live555helper/CMakeFiles/liblive555helper.dir/__/live/liveMedia/AC3AudioFileServerMediaSubsession.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:263: live555helper/CMakeFiles/liblive555helper.dir/all] Error 2 make: *** [Makefile:152: all] Error 2

But the file string_view is present in the WebRTC SDK. Can help me to solve this issue while cross compiling?
I have followed the steps in this file [(https://github.com/mpromonet/webrtc-streamer/blob/master/Dockerfile.arm64)] to cross-compile for ARM.
cmake -DCMAKE_SYSTEM_PROCESSOR=arm -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_C_COMPILER=arm-ca9-linux-gnueabihf-gcc -DCMAKE_CXX_COMPILER=arm-ca9-linux-gnueabihf-g++ -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY -DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=ONLY -DWEBRTCDESKTOPCAPTURE=OFF . && make

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions