You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried build SDL_FontCache with CMake, but it not build:
nikita ~/c++/hagen/src/SDL_FontCache $ cmake .
-- The C compiler identification is GNU 10.2.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
CMake Error at CMakeLists.txt:12 (message):
SDL2 include dir not found
-- Configuring incomplete, errors occurred!
See also "/home/nikita/c++/hagen/src/SDL_FontCache/CMakeFiles/CMakeOutput.log".
The SDL2 libraries installed. How to build it?
The text was updated successfully, but these errors were encountered:
I tried build SDL_FontCache with CMake, but it not build:
nikita ~/c++/hagen/src/SDL_FontCache $ cmake .
-- The C compiler identification is GNU 10.2.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
CMake Error at CMakeLists.txt:12 (message):
SDL2 include dir not found
-- Configuring incomplete, errors occurred!
See also "/home/nikita/c++/hagen/src/SDL_FontCache/CMakeFiles/CMakeOutput.log".
The SDL2 libraries installed. How to build it?
Seems like an issue with your Cmake file rather than with SDL_FontCache. Do you specify where to find your SDL2 dependencies? You'd need a line like: include_directories(${SDL2_INCLUDE_DIRS} ${SDL2_IMAGE_INCLUDE_DIRS} ${SDL2_TTF_INCLUDE_DIRS} ${SDL2_MIXER_INCLUDE_DIRS})
You can also look here for additional files that you may need to add in order for CMake to find the dependencies: https://github.com/aminosbh/sdl2-cmake-modules
I tried build SDL_FontCache with CMake, but it not build:
The SDL2 libraries installed. How to build it?
The text was updated successfully, but these errors were encountered: