LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Trying to cross compile wvstreams, can't find openssl. (http://www.linuxquestions.org/questions/linux-software-2/trying-to-cross-compile-wvstreams-cant-find-openssl-871683/)

zhaozhou 03-29-2011 06:14 AM

Trying to cross compile wvstreams, can't find openssl.
 
I'm trying to cross compile wvdial to ARM, wvdial needs wvstreams and wvstreams need openssl and zlib. I've managed to cross compile openssl 1.0.0d;

Code:

# export CC=armv5tel-redhat-linux-gnueabi-gcc
# export RANLIB=armv5tel-redhat-linux-gnueabi-ranlib
# export AR=armv5tel-redhat-linux-gnueabi-ar
# export CXX=armv5tel-redhat-linux-gnueabi-c++
# ./Configure linux-armv4 --prefix=/opt/arm
...
Configured for linux-armv4.
# make
...
# make install
...

But, when I try to compile wvstreams, the configure script can't find openssl.

Code:

# export CFLAGS="-I /opt/arm/include/openssl -I /opt/arm/include"
# ./configure --host=arm-linux-gnu --prefix=/opt/arm
...
configure: error: Required dependencies missing: OpenSSL>=0.9.7 zlib

I figure if I can solve the openssl dependency I can solve the zlib dependency.

Thanks for any help!

jschiwal 03-29-2011 06:21 AM

Can you locate a zlib-devel package? You normally need the *-devel versions of dependencies as well, when you build from source.

zhaozhou 03-29-2011 06:42 AM

Quote:

Originally Posted by jschiwal (Post 4307354)
Can you locate a zlib-devel package? You normally need the *-devel versions of dependencies as well, when you build from source.

Well, no, I haven't found any. But I'd like to resolve the OpenSSL issue first, then go about fixing zlib, that way I know what I'm doing wrong.
But since I'm standing still here, I'll try to download zlib and cross compile that, see if that works better.

bathory 03-29-2011 06:58 AM

Hi,

Looks like you need to add "shared" in the openssl ./Configure script options, so it builds the shared openssl libraries, as they don't build by default.

HTH


All times are GMT -5. The time now is 03:51 AM.