Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building problems #125

Open
artiomn opened this issue Aug 22, 2023 · 2 comments
Open

Building problems #125

artiomn opened this issue Aug 22, 2023 · 2 comments

Comments

@artiomn
Copy link

artiomn commented Aug 22, 2023

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?

@jketema
Copy link

jketema commented Aug 22, 2023

I ran into the same problem today. Building it as follows worked for me:

git clone --recurse-submodules https://github.com/matt-42/lithium
cd lithium/
./vcpkg/bootstrap-vcpkg.sh
vcpkg/vcpkg install
cmake -DCMAKE_TOOLCHAIN_FILE=vcpkg/scripts/buildsystems/vcpkg.cmake .
cmake --build .

It would be great if that could be documented somewhere.

@artiomn
Copy link
Author

artiomn commented Sep 6, 2023

@jketema, thank you, it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants