cross complier with mips
Posted: Thu Jul 07, 2011 4:03 pm
HI all
i want porting to embbeded mips board how to fix link error
i sucess cross complier openssl ,libevent,zlib,libcurl
but have link error
how solve the question
MY build script
i want porting to embbeded mips board how to fix link error
i sucess cross complier openssl ,libevent,zlib,libcurl
but have link error
how solve the question
Code: Select all
extras make[1]: Entering directory /home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/transmission-2.32/extras' make[1]: Nothing to be done for all'. make[1]: Leaving directory /home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/transmission-2.32/extras' Making all in third-party make[1]: Entering directory /home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/transmission-2.32/third-party' Making all in dht make[2]: Entering directory /home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/transmission-2.32/third-party/dht' make[2]: Nothing to be done for all'. make[2]: Leaving directory /home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/transmission-2.32/third-party/dht' Making all in libnatpmp make[2]: Entering directory /home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/transmission-2.32/third-party/libnatpmp' make[2]: Nothing to be done for all'. make[2]: Leaving directory /home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/transmission-2.32/third-party/libnatpmp' Making all in miniupnp make[2]: Entering directory /home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/transmission-2.32/third-party/miniupnp' make all-am make[3]: Entering directory /home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/transmission-2.32/third-party/miniupnp' make[3]: Nothing to be done for all-am'. make[3]: Leaving directory /home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/transmission-2.32/third-party/miniupnp' make[2]: Leaving directory /home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/transmission-2.32/third-party/miniupnp' Making all in libutp make[2]: Entering directory /home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/transmission-2.32/third-party/libutp' make[2]: Nothing to be done for all'. make[2]: Leaving directory /home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/transmission-2.32/third-party/libutp' make[2]: Entering directory /home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/transmission-2.32/third-party' make[2]: Nothing to be done for all-am'. make[2]: Leaving directory /home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/transmission-2.32/third-party' make[1]: Leaving directory /home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/transmission-2.32/third-party' Making all in libtransmission make[1]: Entering directory `/home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/transmission-2.32/libtransmission'
[color=#FF0000]CCLD blocklist-test
[color=#FF0000]/home/KKK/MIPS_1.7_SDK/tools-gcc-4.1/bin/../lib/gcc/mips64-linux-gnu/4.1.2/../../../../mips64-linux-[color=#FF0000]gnu/bin/ld: cannot find -lopenssl collect2: ld returned 1 exit status make[1]: * [blocklist-test] Error 1 make[color=#FF0000][1]: Leaving directory `/home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/transmission-[color=#FF0000]2.32/libtransmission' [/color]
Code: Select all
exportOPENSSL_CFLAGS="-I/home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/openssl-1.0.0d/include"
export LIBCURL_CFLAGS="-I/home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/curl-7.21.7/include"
export CC="mips64-linux-gnu-gcc" export CXX="mips64-linux-gnu-g++"
export LIBCURL_LIBS="-L/home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/curl-7.21.7/lib/.libs -lcurl"
export OPENSSL_LIBS="-L/home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/openssl-1.0.0d/build/usr/local/ssl/lib -lopenssl"
export LIBEVENT_CFLAGS="-I/home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/libevent-2.0.12-stable/include"
export LIBEVENT_LIBS="-L/home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/ibevent-2.0.12-stable/build/lib -levent" export ZLIB_LIBS="-L/home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/zlib-1.2.5/build/lib/"
export ZLIB_CFLAGS="-I/home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/zlib-1.2.5/build/include"
export LIBS="-L/home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/zlib-1.2.5/build/lib/"
export CFLAGS="-I/home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/zlib-1.2.5/build/include"
./configure --build=mips64-linux-gnu --target=mips64 \
--program-prefix=/home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/transmission-2.32/build/ \
export LD_LIBRARY_PATH="/home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/libevent-2.0.12-stable/build/lib -levent":"/home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/curl-7.21.7/lib/.libs -lcurl":"/home/KKK/MIPS_1.7_SDK/linux/embedded_rootfs/bt/openssl-1.0.0d/build/usr/local/ssl/lib -lopenssl"