jvde-github / AIS-catcher

AIS receiver for RTL SDR dongles, Airspy R2, Airspy Mini, Airspy HF+, HackRF, SDRplay and SoapySDR
https://aiscatcher.org
GNU General Public License v3.0
468 stars 76 forks source link

OpenSSL errors when running Cmake #170

Closed otm64 closed 11 months ago

otm64 commented 11 months ago

I attempted to update to the latest build today, but am receiving the following errors when running cmake. Both openssl and libssl3 packages are installed on my system and the latest version.

-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR) -- OPENSSL: not found - OPENSSL_INCLUDE_DIR-NOTFOUND, -- Checking for module 'libcurl' -- Package 'libcurl', required by 'virtual:world', not found -- CURL: not found - CURL_INCLUDE_DIR-NOTFOUND, CURL_LIBRARY-NOTFOUND -- ZLIB: found - /usr/include, /usr/lib/x86_64-linux-gnu/libz.so -- Checking for module 'libpq' -- Package 'libpq', required by 'virtual:world', not found -- PQ: not found - PQ_INCLUDE_DIR-NOTFOUND, PQ_LIBRARY-NOTFOUND -- Checking for module 'soxr' -- Found soxr, version 0.1.3 -- SOXR: found - /usr/include, /usr/lib/x86_64-linux-gnu/libsoxr.so -- Checking for module 'samplerate' -- Found samplerate, version 0.2.2 -- libsamplerate: found - /usr/include, /usr/lib/x86_64-linux-gnu/libsamplerate.so -- RTLSDR: found - /usr/local/include, /usr/local/lib/librtlsdr.so -- RTLSDR: bias-tee support included. -- RTLSDR: tuner badwidth support included. -- SDRPLAY: not found. -- Checking for module 'libairspy' -- Package 'libairspy', required by 'virtual:world', not found -- AIRSPY: not found. -- AIRSPYHF: found - /usr/local/include/libairspyhf, /usr/local/lib/libairspyhf.so -- Checking for module 'libhackrf' -- Package 'libhackrf', required by 'virtual:world', not found -- HACKRF: not found. -- Checking for module 'libzmq' -- Package 'libzmq', required by 'virtual:world', not found -- ZMQ: not found. -- Configuring done CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: OPENSSL_CRYPTO_LIBRARY (ADVANCED) linked by target "AIS-catcher" in directory /home/mike/AIS-catcher OPENSSL_SSL_LIBRARY (ADVANCED) linked by target "AIS-catcher" in directory /home/mike/AIS-catcher

-- Generating done

Taxom commented 11 months ago

I have not tried, but Google finds it: https://stackoverflow.com/questions/15476123/missing-cmake-variable-when-compiling-with-openssl

jvde-github commented 11 months ago

Can you try again? I changed the cmake file so that it hopefully does not stop the build process if it cannot find this optional library.

Please check if this resolves it.

If it works and you do want SSL support you need to install the development libraries sudo apt install libss-dev as per Taxom's link. The SSL support is only useful if you want to send AIS messages over a secure HTTP connection. Which is rare.

otm64 commented 11 months ago

Yes, I have no need for SSL just wanted the build to execute without stopping. I recompiled and all works as usual now. Thanks for the quick fix!

jvde-github commented 11 months ago

Thanks for flagging! Not sure why it stops building on some systems but glad it is resolved!