CMake project configuration failed. No CMake configuration for build type "Debug" found.
-
I use Qt 6.7.0. Maybe someone solved this error:
CMake project configuration failed. No CMake configuration for build type "Debug" found.
in Qt Creator.It is interesting example because you can see how to use Box2D v3 with QPainter for Windows and Android: https://github.com/8Observer8/debug-drawer-qpainter-box2dv3-qt6-cpp
All libs are included in repo with relative paths:
if(ANDROID) # Include Box2D headers include_directories("${CMAKE_SOURCE_DIR}/libs/box2d-3.1.0-android/arm64-v8a/include") # Link static Bullet libraries target_link_libraries(app PRIVATE ${CMAKE_SOURCE_DIR}/libs/box2d-3.1.0-android/arm64-v8a/lib/libbox2d.a ) endif() if (WIN32) # Include Box2D headers include_directories("${CMAKE_SOURCE_DIR}/libs/box2d-3.1.0-mingw/include") # Link static Bullet libraries target_link_libraries(app PRIVATE ${CMAKE_SOURCE_DIR}/libs/box2d-3.1.0-mingw/lib/libbox2d.a ) endif()
You can just download and run it without compiling libs. This example worked in Qt Creator but after a name changing of the project I cannot to open it in the Qt Creator.
-
I use Qt 6.7.0. Maybe someone solved this error:
CMake project configuration failed. No CMake configuration for build type "Debug" found.
in Qt Creator.It is interesting example because you can see how to use Box2D v3 with QPainter for Windows and Android: https://github.com/8Observer8/debug-drawer-qpainter-box2dv3-qt6-cpp
All libs are included in repo with relative paths:
if(ANDROID) # Include Box2D headers include_directories("${CMAKE_SOURCE_DIR}/libs/box2d-3.1.0-android/arm64-v8a/include") # Link static Bullet libraries target_link_libraries(app PRIVATE ${CMAKE_SOURCE_DIR}/libs/box2d-3.1.0-android/arm64-v8a/lib/libbox2d.a ) endif() if (WIN32) # Include Box2D headers include_directories("${CMAKE_SOURCE_DIR}/libs/box2d-3.1.0-mingw/include") # Link static Bullet libraries target_link_libraries(app PRIVATE ${CMAKE_SOURCE_DIR}/libs/box2d-3.1.0-mingw/lib/libbox2d.a ) endif()
You can just download and run it without compiling libs. This example worked in Qt Creator but after a name changing of the project I cannot to open it in the Qt Creator.
@8Observer8 CMake project configuration failed means that CMake failed to configure the project.
You should filter the General Messages output after
[cmake]
. There you should have more information. -
8 8Observer8 has marked this topic as solved
-
Thanks you very much! I moved source code to
src
folder but I forgot to change it in theqt_add_executable
section like this:qt_add_executable(app WIN32 MACOSX_BUNDLE src/debug-drawer.h src/debug-drawer.cpp src/main.cpp src/mainwindow.cpp src/mainwindow.h )
Solved: https://github.com/8Observer8/debug-drawer-qpainter-box2dv3-qt6-cpp