configure: error: mbed TLS libraries not found.
Please answer these questions before submitting your issue. Thanks!
(Please mention that if the issue you filed is solved, you may wish to close it by yourself. Thanks again.)
(PS, you can remove 3 lines above, including this one, before post your issue.)
What version of shadowsocks-libev are you using?
v3.3.5
What operating system are you using?
Cross compile with arm-hisiv600-linux-gcc
What did you do?
after cross compile and install mbedtls,i configure ss-libev i use command with:
./configure --target=arm-hisiv600-linux --host=arm-hisiv600-linux --prefix=$PWD/build --disable-documentation --with-pcre=./pcre-8.44/build --with-mbedtls=./mbedtls/build --with-sodium=./libsodium/build --with-cares=./c-ares/build --with-ev=./libev/build
-
i make sure mbedtls have cross compile ok
-
./mbedtls/build path is ok
What did you expect to see?
configure ok
What did you see instead?
tell me result: mbed TLS libraries not found.
What is your config in detail (with all sensitive info masked)?
checking checking for pcre includes in ./pcre-8.44/build... checking for pcre headers in ./pcre-8.44/build/include... ok configure: adding ./pcre-8.44/build/lib to RPATH checking for library containing pcre_exec... -lpcre checking pcre.h usability... yes checking pcre.h presence... no configure: WARNING: pcre.h: accepted by the compiler, rejected by the preprocessor! configure: WARNING: pcre.h: proceeding with the compiler's result checking for pcre.h... yes checking pcre/pcre.h usability... no checking pcre/pcre.h presence... no checking for pcre/pcre.h... no checking for arm-hisiv600-linux-gcc... (cached) arm-hisiv600-linux-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether arm-hisiv600-linux-gcc accepts -g... (cached) yes checking for arm-hisiv600-linux-gcc option to accept ISO C89... (cached) none needed checking whether arm-hisiv600-linux-gcc understands -c and -o together... (cached) yes checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking for thread local storage (TLS) class... __thread checking for mbedtls_cipher_setup in -lmbedcrypto... no configure: error: mbed TLS libraries not found.
i change method to configure, such as
./configure --target=arm-hisiv600-linux --host=arm-hisiv600-linux --prefix=$PWD/build --with-pcre=./pcre-8.44/build --with-mbedtls-include=./mbedtls/build/include/ --with-mbedtls-lib=./mbedtls/build/lib/ --with-sodium=./libsodium/build --with-cares=./c-ares/build --with-ev=./libev/build
but get the same result.
mbedtls version : v2.7.17
try this statically cross-compile scripts, https://gist.github.com/0neday/20b95dc30157af177cb10c38f936d3ef or use like
LDFLAGS="-Wl, -L./mbedtls/build/lib -L ... " \
CFLAGS="-I./mbedtls/build/includ ..." \
./configure ...