Qt World Summit: Submit your Presentation

No Rule to make target Error

  • Hello, I am moving my project over from being developed on a windows 8 computer to a windows 7 64 bit computer. When I do, I am receiving the error

    ":-1: error: No rule to make target 'C:/Qt/Qt5.4.1new/5.4/Src/qtbase/lib/libQt5Widgetsd.a', needed by 'debug\GUI.exe'. Stop.".
    (The name of the application is GUI, the entire path to the project has no spaces or unusual characters)
    I have deleted my GUI.pro.user when I moved it to the new computer.
    If you need any other files or information please let me know. Thanks.
    The GUI.pro looks like this:

    Project created by QtCreator 2015-04-11T18:13:33


    QT += core gui sql

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    TEMPLATE = app

    SOURCES += main.cpp

    HEADERS += mainwindow.h

    FORMS += mainwindow.ui

    Also, what is the correct way of putting this in a code block?

  • Hi and welcome to devnet,

    the error message says there is a missing library. Have you installed the right Qt version on the new machine??

  • @mcosta What I did was I installed the same version but I installed a static build. The application I developed was on a non static build. Would this make a difference?

  • have you built also the DEBUG version of Qt? The missing library is a libQt5**d.a

  • @mcosta I am not sure if I have but I built it with the command line "configure -static -release -opengl desktop -opensource" and after that I used "mingw32-make sub-scr"

Log in to reply