Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

'No rule to make target' after upgrading Qt on mac



  • I just upgraded the version of Qt I have on my mac and am now no longer able to compile a project that I used to be able to compile and run. I get the error No rule to make target 'Colibri'. Stop. This is the name of the project itself, so I'm not sure what it is failing to find.

    How would I get my project running again?

    #-------------------------------------------------
    #
    # Project created by QtCreator 2018-10-26T15:25:57
    #
    #-------------------------------------------------
    
    QT += core gui xml qml
    
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    
    TARGET = Colibri
    TEMPLATE = app
    
    INCLUDEPATH += ../thirdParty/ffmpeg/include
    
    
    macx {
    #MacOs specific stuff
    LIBS += -L$$PWD/../thirdParty/ffmpeg/macos/bin
    LIBS += -lavcodec.58 -lavformat.58 -lavutil.56 -lswscale.5 -lswresample.3
    }
    
    
    DEFINES += QT_DEPRECATED_WARNINGS
    
    CONFIG += c++17
    
    QMAKE_CXXFLAGS += -Wno-unused-parameter -Wswitch -Wno-reorder
    
    
    SOURCES += \
        components/CompColor.cpp \
        components/CompMaterial.cpp \
     ...
    
    HEADERS += \
        components/CompColor.h \
        components/CompMaterial.h \
     ...
    
    FORMS += \
        mainwindow.ui \
        ui/AnimationEditor.ui \
     ...
    
    
    # Default rules for deployment.
    qnx: target.path = /tmp/$${TARGET}/bin
    else: unix:!android: target.path = /opt/$${TARGET}/bin
    !isEmpty(target.path): INSTALLS += target
    
    RESOURCES += \
        resources/mainresources.qrc
    
    DISTFILES += \
        resources/settings.xml \
        resources/config.js
    
    TRANSLATIONS = myApp_de.ts \
                   myApp_fr.ts \
                   myApp_en.ts
    
    

  • Moderators

    @kitfox delete the whole Build directory by hand and than rebuild the project

    Simply calling clean and rebuild is not enough after an xcode/osx update


  • Moderators

    @kitfox delete the whole Build directory by hand and than rebuild the project

    Simply calling clean and rebuild is not enough after an xcode/osx update


Log in to reply