QtCreator can't find QtPrintSupport 6.7.1

My system just updated with Qt . When I try to continue development of my application I get the error message:

22:07:45: Running steps for project TaperFoil...
22:07:45: Starting: "/usr/bin/cmake" --build /home/jc/devel/TaperFoil/build/Desktop-Debug --target all
ninja: error: '/usr/lib64/libQt6PrintSupport.so.6.7.1', needed by 'TaperFoil', missing and no known rule to make it
22:07:45: The process "/usr/bin/cmake" exited with code 1.
Error while building/deploying project TaperFoil (kit: Desktop)
The kit Desktop has configuration issues which might be the root cause for this problem.
When executing step "Build"
22:07:45: Elapsed time: 00:00.

Is this an installation problem or do I need to do something to continue development?

@featherfoot Hi, that’s because qt6-base moved from 6.7.1 to 6.7.2… See the release snapshot information New Tumbleweed snapshot 20240624 released!

I figured that was the case. I’ve tried doing a clean and rebuild and that doesn’t fix the problem.

Can you suggest a way to make it update itself? Here is my CMakeLists.txt file:

cmake_minimum_required(VERSION 3.5)

project(TaperFoil VERSION 0.1 LANGUAGES CXX)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS Widgets)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Widgets)
find_package(QT NAMES Qt6 Qt5 REQUIRED COMPONENTS PrintSupport)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS PrintSupport)


set(PROJECT_SOURCES
        main.cpp
        Airfoil.cpp
        Airfoil.h
        AirfoilBox.cpp
        AirfoilBox.h
        AirfoilBox.ui
        CutoutListingBox.cpp
        CutoutListingBox.h
        CutoutListingBox.ui
        CutoutSpec.cpp
        CutoutSpec.h
        DrawingPage.cpp
        DrawingPage.h
        general.cpp
        general.h
        OffsetBox.cpp
        OffsetBox.h
        OffsetBox.ui
        PageSetupBox.cpp
        PageSetupBox.h
        PageSetupBox.ui
        PostscriptPage.cpp
        PostscriptPage.h
        PSgraphics.cpp
        SectCutout.cpp
        SectCutout.h
        SectionCountBox.cpp
        SectionCountBox.h
        SectionCountBox.ui
        ShapeTypeBox.cpp
        ShapeTypeBox.h
        ShapeTypeBox.ui
        TaperFoil.cpp
        TaperFoil.h
        TaperFoil.ui
)

if(${QT_VERSION_MAJOR} GREATER_EQUAL 6)
    qt_add_executable(TaperFoil
        MANUAL_FINALIZATION
        ${PROJECT_SOURCES}
        pdfGraphics.cpp
        pdfGraphics.h
        pdfGraphics.h
    )
# Define target properties for Android with Qt 6 as:
#    set_property(TARGET TaperFoil APPEND PROPERTY QT_ANDROID_PACKAGE_SOURCE_DIR
#                 ${CMAKE_CURRENT_SOURCE_DIR}/android)
# For more information, see https://doc.qt.io/qt-6/qt-add-executable.html#target-creation
else()
    if(ANDROID)
        add_library(TaperFoil SHARED
            ${PROJECT_SOURCES}
        )
# Define properties for Android with Qt 5 after find_package() calls as:
#    set(ANDROID_PACKAGE_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/android")
    else()
        add_executable(TaperFoil
            ${PROJECT_SOURCES}
        )
    endif()
endif()

target_link_libraries(TaperFoil PRIVATE Qt${QT_VERSION_MAJOR}::Widgets  )
target_link_libraries(TaperFoil PRIVATE Qt6::PrintSupport)

# Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1.
# If you are developing for iOS or macOS you should consider setting an
# explicit, fixed bundle identifier manually though.
if(${QT_VERSION} VERSION_LESS 6.1.0)
  set(BUNDLE_ID_OPTION MACOSX_BUNDLE_GUI_IDENTIFIER com.example.TaperFoil)
endif()
set_target_properties(TaperFoil PROPERTIES
    ${BUNDLE_ID_OPTION}
    MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
    MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
    MACOSX_BUNDLE TRUE
    WIN32_EXECUTABLE TRUE
)

include(GNUInstallDirs)
install(TARGETS TaperFoil
    BUNDLE DESTINATION .
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

if(QT_VERSION_MAJOR EQUAL 6)
    qt_finalize_executable(TaperFoil)
endif()

@featherfoot not a real coder :wink: is this your own project, or has the source somewhere?

It is my project. It draws the airfoils for a tapered wing.

QtCreator worked before the update and I was able to work on the project.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.