Skip to content

Building problems #125

@artiomn

Description

@artiomn

I want to build and install the framework with all libraries locally in /usr/local.
Usual way for this is to use CMake.
But some non-standard packages are finding and build failed:

$ cmake -B build -DCMAKE_INSTALL_PREFIX=/usr/local .
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is Clang 14.0.6
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Boost: /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake (found version "1.74.0") found components: context 
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "7.88.1")  
-- Found PostgreSQL: /usr/lib/x86_64-linux-gnu/libpq.so (found version "15.3")  
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.a (found version "3.0.9")  
CMake Error at CMakeLists.txt:25 (find_package):
  Could not find a package configuration file provided by
  "unofficial-libmariadb" with any of the following names:

    unofficial-libmariadbConfig.cmake
    unofficial-libmariadb-config.cmake

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


-- Configuring incomplete, errors occurred!
See also "/usr/src/gb/lithium/build/CMakeFiles/CMakeOutput.log".

I think this problem happens, because MariaDB (and SQLite) used from the PPA, but what is the problem to use official package libmariadb-dev?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions