Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - luckeedev

#1
Awesome, thanks a lot for your help. It worked!
#2
Thanks for your reply, I built it myself with CMake. Where should I put the library now, in order for CMake to find it?
#3
This is the relevant code in my
CMakeLists.txtset(TGUI_BACKEND SFML_GRAPHICS)
find_package(SFML 2.5 COMPONENTS graphics REQUIRED)
find_package(TGUI 0.10 REQUIRED)

This is the output of
cmake -S . -B build
-- The C compiler identification is GNU 11.3.0
-- The CXX compiler identification is GNU 11.3.0
-- 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 SFML 2.5.1 in /usr/lib/x86_64-linux-gnu/cmake/SFML
-- Found SFML 2.5.1 in /usr/lib/x86_64-linux-gnu/cmake/SFML
CMake Error at /usr/share/cmake-3.22/Modules/CMakeFindDependencyMacro.cmake:47 (find_package):
  Could not find a package configuration file provided by "glfw3" with any of
  the following names:

    glfw3Config.cmake
    glfw3-config.cmake

  Add the installation prefix of "glfw3" to CMAKE_PREFIX_PATH or set
  "glfw3_DIR" to a directory containing one of the above files.  If "glfw3"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/TGUI/TGUIConfig.cmake:113 (find_dependency)
  CMakeLists.txt:30 (find_package)
#4
Help requests / Disable backends with CMake
27 March 2023, 14:27:28
When using TGUI with cmake, it searches for all backends (SDL, GLFW...) and this throws an error if the library is not installed on the system. Is it possible to avoid this?