Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. CMake project configuration failed. No CMake configuration for build type "Debug" found.
Forum Updated to NodeBB v4.3 + New Features

CMake project configuration failed. No CMake configuration for build type "Debug" found.

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
3 Posts 2 Posters 116 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 8Observer88 Offline
    8Observer88 Offline
    8Observer8
    wrote last edited by 8Observer8
    #1

    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.

    e89dae7c-a1a8-4614-9d32-e2c22177fbd3-image.png

    c265166a-3d54-4bee-82cb-7e4b319f6f7a-image.png

    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.

    cristian-adamC 1 Reply Last reply
    0
    • 8Observer88 8Observer8

      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.

      e89dae7c-a1a8-4614-9d32-e2c22177fbd3-image.png

      c265166a-3d54-4bee-82cb-7e4b319f6f7a-image.png

      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.

      cristian-adamC Offline
      cristian-adamC Offline
      cristian-adam
      wrote last edited by
      #2

      @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.

      1 Reply Last reply
      1
      • 8Observer88 8Observer8 has marked this topic as solved
      • 8Observer88 Offline
        8Observer88 Offline
        8Observer8
        wrote last edited by 8Observer8
        #3

        Thanks you very much! I moved source code to src folder but I forgot to change it in the qt_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

        image.png

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved