linux - Openssl header not found -- error -


i need compile libwebsocket library for arm target requires openssl functioning. getting following error when build latest libwebsocket @ time of, cmake ...

but openssl installed here

whereis openssl openssl: /usr/bin/openssl /usr/bin/x11/openssl /usr/share/man/man1/openssl.1ssl.gz 

=================================== error ================

-- looking 4 include files stdlib.h, ..., float.h - found -- found zlib: /usr/lib/arm-linux-gnueabihf/libz.so (found version "1.2.7")  zlib include dirs: /usr/include zlib libraries: /usr/lib/arm-linux-gnueabihf/libz.so compiling ssl support cmake error @ /usr/local/share/cmake-2.8/modules/findpackagehandlestandardargs.cmake:97 (message):   not find openssl, try set path openssl root folder in   system variable openssl_root_dir (missing: openssl_libraries   openssl_include_dir) call stack (most recent call first):   /usr/local/share/cmake-2.8/modules/findpackagehandlestandardargs.cmake:291 (_fphsa_failure_message)   /usr/local/share/cmake-2.8/modules/findopenssl.cmake:313 (find_package_handle_standard_args)   cmakelists.txt:436 (find_package)   -- configuring incomplete, errors occurred! 

======================================= openssl here ========================

ignite@ignite:~/sbox2/rootfs/rfs-raspbian_2/home/pi/libwebsockets/build$  whereis openssl openssl: /usr/bin/openssl /usr/bin/x11/openssl /usr/share/man/man1/openssl.1ssl.gz 

actually have, source tarball here. have configure script make & make install http://www.openssl.org/source/
openssl-1.0.1e.tar.gz

so (openssl-1.0.1e.tar.gz) right package --> openssl-dev or openssl-devel --- can resolve error ?

so (openssl-1.0.1e.tar.gz) right package --> openssl-dev or openssl-devel --- can resolve error ?

the openssl-dev packages development on host machine (which x86 or x64 family). need cross compiled library target (and not host). openssl-dev not solve problem.

are targeting generic arm processor, ios, or android? if former, need arm cross-toolchain paths set appropriately. i'm not aware of tutorial on cross compiling library (and i've suffered in past).

there prebuilt configurations generic cross compiling. open configure , config, , @ of triples. (openssl not use automake , friends).

if ios or android, openssl wiki has examples of cross compiling platforms. see, example, fips library , android. setenv-android.sh script important because set paths, sysroot , toolchains. once paths , toolschains set, rest easy.

if targeting generic arm, use android setenv-android.sh starting point generic build. once complete build, point openssl_root_dir install directory arm.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -