[GWork] CMake Error Could NOT find SDL2_ttf
GWork Could NOT find SDL2 에러에 이어 이번에는 SDL2_TTF lib 관련 에러가 발생했습니다.
Project version: 0.2.0 Dev
Including tests
Including sample
<FindSDL2.cmake>
</FindSDL2.cmake>
Found SDL2: F:/Project/Origin/branch/DarkEdenR/SDL2/SDL2-2.0.5/lib/x86/SDL2main.lib;F:/Project/Origin/branch/DarkEdenR/SDL2/SDL2-2.0.5/lib/x86/SDL2.lib
CMake Error at C:/Program Files/CMake/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find SDL2_ttf (missing: SDL2_TTF_LIBRARIES SDL2_TTF_INCLUDE_DIRS)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindSDL2_ttf.cmake:89 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
cmake/Config.cmake:122 (find_package)
CMakeLists.txt:29 (include)
아래와 같이 설정해주면 됩니다.
여기서 끝이 아닙니다. 마지막 CMake 관련 에러가 남아 있으니..
Project version: 0.2.0 Dev
Including tests
Including sample
<FindSDL2.cmake>
</FindSDL2.cmake>
Found SDL2: F:/Project/Origin/branch/DarkEdenR/SDL2/SDL2-2.0.5/lib/x86/SDL2main.lib;F:/Project/Origin/branch/DarkEdenR/SDL2/SDL2-2.0.5/lib/x86/SDL2.lib
CMake Error at C:/Program Files/CMake/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find SDL2_ttf (missing: SDL2_TTF_LIBRARIES SDL2_TTF_INCLUDE_DIRS)
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindSDL2_ttf.cmake:89 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
cmake/Config.cmake:122 (find_package)
CMakeLists.txt:29 (include)
아래와 같이 설정해주면 됩니다.
- SDL2_TTF_INCLUDE_DIR : SDL2_TTF가 설치 된 곳의 include 디렉토리 설정
- SDL2_TTF_LIBRARY : SDL2_ttf.lib 가 있는 경로 및 실제 파일을 설정
여기서 끝이 아닙니다. 마지막 CMake 관련 에러가 남아 있으니..
댓글
댓글 쓰기