samp-discord-connector: Compiling problems, can't find log-core

Hi, I try to compile discord-connector plugin on my own, but got stuck at log-core plugin. I tried everything, downloading it as root, as normal user, include it into samp-discord-connector directory, setting CMAKE_PREFIX_PATH but no progress.

I try to build it with command cmake -DCMAKE_PREFIX_PATH=/home/samp/samp-log-core ..

-- The C compiler identification is GNU 4.9.2
-- The CXX compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenSSL: /usr/lib/i386-linux-gnu/libcrypto.so (found version "1.0.1t") 
-- Version: 5.3.0
-- Build type:
-- CXX_STANDARD: 11
-- Performing Test has_std_11_flag
-- Performing Test has_std_11_flag - Success
-- Performing Test has_std_0x_flag
-- Performing Test has_std_0x_flag - Success
-- Performing Test SUPPORTS_VARIADIC_TEMPLATES
-- Performing Test SUPPORTS_VARIADIC_TEMPLATES - Success
-- Performing Test SUPPORTS_INITIALIZER_LIST
-- Performing Test SUPPORTS_INITIALIZER_LIST - Success
-- Performing Test SUPPORTS_ENUM_BASE
-- Performing Test SUPPORTS_ENUM_BASE - Success
-- Performing Test SUPPORTS_TYPE_TRAITS
-- Performing Test SUPPORTS_TYPE_TRAITS - Success
-- Performing Test SUPPORTS_USER_DEFINED_LITERALS
-- Performing Test SUPPORTS_USER_DEFINED_LITERALS - Success
-- Looking for open
-- Looking for open - found
CMake Error at CMakeLists.txt:39 (find_package):
  Could not find a package configuration file provided by "log-core" with any
  of the following names:

    log-coreConfig.cmake
    log-core-config.cmake

Add the installation prefix of "log-core" to CMAKE_PREFIX_PATH or set "log-core_DIR" to a directory containing one of the above files. If "log-core" provides a separate development package or SDK, be sure it has been installed.

log-core directory is at /home/samp/samp-log-core

I am really new to plugin compilation, what I am doing wrong? System is Debian 8.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 18 (9 by maintainers)

Most upvoted comments

Visual Studio Code 2019

CMake Error at CMakeLists.txt:54 (find_package): Could not find a package configuration file provided by “log-core” with any of the following names:

log-coreConfig.cmake
log-core-config.cmake

Add the installation prefix of “log-core” to CMAKE_PREFIX_PATH or set “log-core_DIR” to a directory containing one of the above files. If “log-core” provides a separate development package or SDK, be sure it has been installed.