c++ - Cross compiling with shared dynamic libraries -


in c++ project, i'm compiling , linking against library makes use of openssl.

i need compile project beaglebone has openssl installed default. have downloaded libssl-dev on development machine.

thus, can compile project fine if i'm compiling development machine on x86_64, not able cross compile:

/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lssl /usr/lib/gcc-cross/arm-linux-gnueabihf/4.8/../../../../arm-linux-gnueabihf/bin/ld: cannot find -lcrypto 

this indicates need have armhf binaries openssl, seems bit of waste since have them on beaglebone if can patient , wait until deploy it.

is way around cross-compiling openssl myself? need install .so files (i guess make install bad idea?)

this indicates need have armhf binaries openssl

correct.

which seems bit of waste since have them on beaglebone if can patient , wait until deploy it.

you appear think shared libraries only needed @ runtime, not case.

elf stands executable and linking format. .so needed @ static link time construct various tables in main executable, used loader @ runtime resolve references main executable .so.

if familiar win32, can think of .so combination of win32 .lib , .dll packed single file.


Comments