Skip to content

cmake fails when cross compiling with mbedtls #1919

Answered by kevinduk
kevinduk asked this question in Q&A
Discussion options

You must be logged in to vote

PR #1923 has added cross compile examples.

To cross compile on x86_64 host for arm32 target using mbedtls static libraries:

sudo apt-get -y install gcc-arm-linux-gnueabi g++-arm-linux-gnueabi binutils-arm-linux-gnueabi
export CC=arm-linux-gnueabi-gcc
export CXX=arm-linux-gnueabi-gc++
cmake .. -DBUILD_STATIC_LIBS=ON -DUSE_OPENSSL=OFF -DUSE_MBEDTLS=ON -DBUILD_LIBSRTP_HOST_PLATFORM=x86_64-unknown-linux-gnu -DBUILD_LIBSRTP_DESTINATION_PLATFORM=arm-unknown-linux-uclibcgnueabi
make

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
6 replies
@niyatim23
Comment options

@kevinduk
Comment options

@niyatim23
Comment options

@kevinduk
Comment options

@niyatim23
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mehmetcy84
Comment options

Answer selected by kevinduk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants