notandy / ympd

Standalone MPD Web GUI written in C, utilizing Websockets and Bootstrap/JS
http://www.ympd.org
GNU General Public License v2.0
515 stars 143 forks source link

Dependency "libssl-dev" not mentioned #144

Closed ghost closed 6 years ago

ghost commented 7 years ago

OS: Debian 8.0, amd64 ympd-version: 1.3.0

Tried to create make-file with commands/arguments mentioned by README.md:

cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr

Output/Error:

-- Found LibMPDClient: /usr/lib/libmpdclient.so  
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
CMake Error at /usr/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:136 (message):
  Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
  system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES
  OPENSSL_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake-3.0/Modules/FindPackageHandleStandardArgs.cmake:343 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.0/Modules/FindOpenSSL.cmake:328 (find_package_handle_standard_args)
  CMakeLists.txt:33 (find_package)

-- Configuring incomplete, errors occurred!
See also "/opt/ympd/build/CMakeFiles/CMakeOutput.log".
See also "/opt/ympd/build/CMakeFiles/CMakeError.log".

The phrase Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR) pointed out, that some OpenSSL-dependency is missing and given I'm trying to build it with SSL-fucntionality it probably is a development package.

And indeed, after installing libssl-dev it works flawlessly (I installed libssl-dev from jessie-backports, but it probably works just fine installing it from jessie):

libssl-dev:
  Installed: 1.0.2j-1~bpo8+1
  Candidate: 1.0.2j-1~bpo8+1
  Version table:
 *** 1.0.2j-1~bpo8+1 0
        100 http://ftp.de.debian.org/debian/ jessie-backports/main amd64 Packages
        100 /var/lib/dpkg/status
     1.0.1t-1+deb8u5 0
        500 http://security.debian.org/ jessie/updates/main amd64 Packages
     1.0.1t-1+deb8u3 0
        500 http://ftp.de.debian.org/debian/ jessie/main amd64 Packages

Didn't really cost me any time to figure it out, but it might be worth mentioning in your README.md :)

googleson78 commented 6 years ago

Also ran into this.

notandy commented 6 years ago

You can disable ssl requirement by using -DWITH_SSL=no