Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while invoking cmake #33

Open
meiry opened this issue Aug 10, 2022 · 2 comments
Open

Error while invoking cmake #33

meiry opened this issue Aug 10, 2022 · 2 comments

Comments

@meiry
Copy link

meiry commented Aug 10, 2022

Tring to run the the project as diescribed brings some erros's

  1. There is no : "project/delta-studio.sln"
  2. Invoking simple cmake command gives error :
c:\dev\my\cpp\delta-studio>cmake  -B ./PrjVisualStudio -G "Visual Studio 17 2022" -A x64
-- Selecting Windows SDK version 10.0.20348.0 to target Windows 10.0.19043.
-- The C compiler identification is MSVC 19.30.30705.0
-- The CXX compiler identification is MSVC 19.30.30705.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx64/x64/cl.exe - 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: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.30.30705/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
CMake Error at C:/dev/my/cpp/cmake-3.22.0-rc2-windows-x86_64/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR)
Call Stack (most recent call first):
  C:/dev/my/cpp/cmake-3.22.0-rc2-windows-x86_64/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  cmake/FindSDL2.cmake:198 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:52 (find_package)

@PitchBlackNights
Copy link

install SDL2

@hackall360
Copy link

@meiry

https://github.com/libsdl-org/SDL/releases/tag/release-2.26.5

SDL2-devel-2.26.5-VC.zip

You will need this, and to either install it, or do what I did, and just extract the files somewhere, and point Cmake to the correct areas when it asks for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants