Skip to content

Conversation

bm296672810
Copy link

…ross compiling

  1. change the CMakeLists.txt for CURL if cross compiling on Linux set the libcurl path example cmake cmd:
    cmake -Barmbuild -H. -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCURL_DIR=/home/bm/third_libs/aarch64/curl/lib/cmake/CURL -DCURL_INCLUDE_DIRS=/home/bm/third_libs/aarch64/curl/include -DCURL_LIBRARIES=/home/bm/third_libs/aarch64/curl/lib/libcurl.so

…ross compiling

2. change the CMakeLists.txt for CURL if cross compiling on Linux set the libcurl path example cmake cmd:
cmake -Barmbuild -H. -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=aarch64 -DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ -DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc -DCURL_DIR=/home/bm/third_libs/aarch64/curl/lib/cmake/CURL -DCURL_INCLUDE_DIRS=/home/bm/third_libs/aarch64/curl/include -DCURL_LIBRARIES=/home/bm/third_libs/aarch64/curl/lib/libcurl.so
@CLAassistant
Copy link

CLAassistant commented Feb 17, 2022

CLA assistant check
All committers have signed the CLA.

@bm296672810
Copy link
Author

When I cross-compiled under Ubuntu, I found that it couldn't compile, so I modified CmakeLists.txt and it compiled normally, and attached my cmake command to the commit information

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

Successfully merging this pull request may close these issues.

2 participants