Cross-compiling with OpenSSL

Alexey Romanov alexey.v.romanov@REDACTED
Thu Sep 16 16:49:44 CEST 2010


It turned out I need the crypto application in my embedded Erlang
system. So I've cross-compiled OpenSSL 1.0.0a using this approach:
http://stuff.thatblogs.com/content/cross-compiling-openssl-how-cross-compile-openssl,
copied apps/openssl, include/openssl/*, lib/libcrypto.a, and
lib/libssl.a (is anything else needed, by the way?) to
~/sbctools/arm-2007q3/openssl/1.0.0a and issued this command:

./otp_build configure --host=arm-none-linux-gnueabi
--build=i686-pc-linux-gnu --prefix=/opt/erlang
erl_xcomp_sysroot=~/sbctools/arm-2007q3 --disable-smp
--disable-megaco-flex-scanner-lineno
--disable-megaco-reentrant-flex-scanner --without-termcap
--without-javac --with-ssl=~/sbctools/arm-2007q3/openssl/1.0.0a

Surprisingly, this gives

configure: error: Invalid path to option --with-ssl=PATH (not a
subdirectory to cross system root)

Certainly ~/sbctools/arm-2007q3/openssl/1.0.0a is a subdirectory of
~/sbctools/arm-2007q3. I've tried to supply the path from the cross
system root instead (i.e. --with-ssl=openssl/1.0.0a), but this doesn't
work either. How can I fix this?

Yours, Alexey Romanov


More information about the erlang-questions mailing list