[GWork] CMake Error Could NOT find SDL2_image
이전 Could NOT find SDL2_ttf 에러에 이어 마지막 CMake관련 에러입니다. SDL2로 개발하면 필수 동반 lib인 SDL2_IMAGE 관련 에러입니다.
Project version: 0.2.0 Dev
Including tests
Including sample
<FindSDL2.cmake>
</FindSDL2.cmake>
Found SDL2_ttf: F:/Project/Origin/branch/DarkEdenR/SDL2/SDL2_ttf-2.0.14/lib/x86/SDL2_ttf.lib (found version "..")
CMake Error at C:/Program Files/CMake/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find SDL2_image (missing: SDL2_IMAGE_LIBRARIES
SDL2_IMAGE_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_image.cmake:89 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
cmake/Config.cmake:123 (find_package)
CMakeLists.txt:29 (include)
역시나 CMake gui의 Entry를 아래와 같이 설정해줍니다.
이제 Configure와 Generate를 눌러보면 이상없이 아래 메세지를 볼 수 있습니다.
Configuring done
Generating done
Project version: 0.2.0 Dev
Including tests
Including sample
<FindSDL2.cmake>
</FindSDL2.cmake>
Found SDL2_ttf: F:/Project/Origin/branch/DarkEdenR/SDL2/SDL2_ttf-2.0.14/lib/x86/SDL2_ttf.lib (found version "..")
CMake Error at C:/Program Files/CMake/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find SDL2_image (missing: SDL2_IMAGE_LIBRARIES
SDL2_IMAGE_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_image.cmake:89 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
cmake/Config.cmake:123 (find_package)
CMakeLists.txt:29 (include)
역시나 CMake gui의 Entry를 아래와 같이 설정해줍니다.
- SDL2_IMAGE_INCLUDE_DIR : SDL2_IMAGE lib의 include 디렉토리로 설정
- SDL2_IMAGE_LIBRARY : SDL2_image.lib의 실제 파일로 설정
이제 Configure와 Generate를 눌러보면 이상없이 아래 메세지를 볼 수 있습니다.
Configuring done
Generating done
댓글
댓글 쓰기