Adding support for Boost on Ubuntu via CLion Flatpak install.
I am having all kinds of version mismatch ruin my experience with CLion and Boost integration.
I am able to compile and run my basic cpp file using boost property_tree with some minor warnings on the system terminal. But have no luck in CLion application installed via Flatpak.
I would appreciate a clear set of instructions on how to resolve the issues, as so far the only resolution is to just not use the Flatpak distribution.
Currently the error I am getting using this CMakeLists.txt:
cmake_minimum_required(VERSION 3.30.5)
project(boostTestCPP)
set(Boost_INCLUDE_DIR "/usr/include/boost")
set(CMAKE_CXX_STANDARD 20)
# Find Boost automatically
find_package(Boost REQUIRED)
add_executable(boostTestCPP main.cpp)
====================[ Build | boostTestCPP | Debug ]============================
/app/extra/clion/bin/cmake/linux/x64/bin/cmake --build /home/robert/projects/boostTestCPP/cmake-build-debug --target boostTestCPP -j 10
[0/1] Re-running CMake...
CMake Error at CMakeLists.txt:7 (find_package):
By not providing "FindBoost.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Boost", but
CMake did not find one.
Could not find a package configuration file provided by "Boost" with any of
the following names:
BoostConfig.cmake
boost-config.cmake
Add the installation prefix of "Boost" to CMAKE_PREFIX_PATH or set
"Boost_DIR" to a directory containing one of the above files. If "Boost"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
FAILED: build.ninja
/app/extra/clion/bin/cmake/linux/x64/bin/cmake --regenerate-during-build -S/home/robert/projects/boostTestCPP -B/home/robert/projects/boostTestCPP/cmake-build-debug
ninja: error: rebuilding 'build.ninja': subcommand failed
Please sign in to leave a comment.