Making Makefile: "The system cannot find the path specified."



  • I created a new project and added the necessary include headers and required libraries to the Qt's .pro file. I made no changes to the default main.cpp, mainwindow.h, and mainwindow.cpp. When I try to build it (with jom or nmake), it says, "The system cannot find the path specified." Can anyone tell me how to resolve this? Thank you in advance for any suggested answers. Appreciated.

    untitled5.pro:

    @
    #-------------------------------------------------

    Project created by QtCreator 2013-10-31T11:08:37

    #-------------------------------------------------

    QT += core gui

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    TARGET = untitled5
    TEMPLATE = app
    CONFIG += staticlib

    QMAKE_CFLAGS_RELEASE += /MT
    QMAKE_CXXFLAGS_RELEASE += /MT
    QMAKE_CFLAGS_DEBUG += /MTd
    QMAKE_CXXFLAGS_DEBUG += /MTd

    SOURCES += main.cpp
    mainwindow.cpp

    HEADERS += mainwindow.h
    FORMS += mainwindow.ui

    win32:CONFIG(release, debug|release): LIBS += -L/Users/simon/Downloads/opencv/build/x86/vc10/staticlib/ -lIlmImf
    else:win32:CONFIG(debug, debug|release): LIBS += -L/Users/simon/Downloads/opencv/build/x86/vc10/staticlib/ -lIlmImfd
    win32:CONFIG(release, debug|release): LIBS += -L/Users/simon/Downloads/opencv/build/x86/vc10/staticlib/ -llibjasper
    else:win32:CONFIG(debug, debug|release): LIBS += -L/Users/simon/Downloads/opencv/build/x86/vc10/staticlib/ -llibjasperd
    win32:CONFIG(release, debug|release): LIBS += -L/Users/simon/Downloads/opencv/build/x86/vc10/staticlib/ -llibjpeg
    else:win32:CONFIG(debug, debug|release): LIBS += -L/Users/simon/Downloads/opencv/build/x86/vc10/staticlib/ -llibjpegd
    win32:CONFIG(release, debug|release): LIBS += -L/Users/simon/Downloads/opencv/build/x86/vc10/staticlib/ -llibpng
    else:win32:CONFIG(debug, debug|release): LIBS += -L/Users/simon/Downloads/opencv/build/x86/vc10/staticlib/ -llibpngd
    ...

    INCLUDEPATH += /Users/simon/Downloads/opencv/build/x86/vc10/staticlib
    DEPENDPATH += /Users/simon/Downloads/opencv/build/x86/vc10/staticlib

    win32:CONFIG(release, debug|release): PRE_TARGETDEPS += /Users/simon/Downloads/opencv/build/x86/vc10/staticlib/IlmImf.lib
    else:win32:CONFIG(debug, debug|release): PRE_TARGETDEPS += /Users/simon/Downloads/opencv/build/x86/vc10/staticlib/IlmImfd.lib
    ...
    @

    Error:
    @
    14:47:50: Running steps for project untitled5...
    14:47:50: Configuration unchanged, skipping qmake step.
    14:47:51: Starting: "C:\Qt\Qt5.1.1\Tools\QtCreator\bin\jom.exe"
    C:\Qt\Qt5.1.1\Tools\QtCreator\bin\jom.exe -f Makefile.Release
    /OUT:release\untitled5.exe @C:\Users\simon\AppData\Local\Temp\untitled5.exe.5528.0.jom
    The system cannot find the path specified.
    jom: C:\Users\simon\Documents\test\qtquick2\build-untitled5-Desktop_Qt_5_1_1_MSVC2010_32bit-Release\Makefile.Release [release\untitled5.exe] Error 1
    jom: C:\Users\simon\Documents\test\qtquick2\build-untitled5-Desktop_Qt_5_1_1_MSVC2010_32bit-Release\Makefile [release] Error 2
    14:47:51: The process "C:\Qt\Qt5.1.1\Tools\QtCreator\bin\jom.exe" exited with code 2.
    Error while building/deploying project untitled5 (kit: Desktop Qt 5.1.1 MSVC2010 32bit)
    When executing step 'Make'
    14:47:51: Elapsed time: 00:00.
    @


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    /Users/simon/Downloads/opencv/build/x86/vc10/staticlib is not a valid path on Windows C:/Users/the_rest_of_the_path would be correct.

    As a side note, since all your libs are in the same folder just add

    @LIBS += -LC:/Users/simon/Downloads/opencv/build/x86/vc10/staticlib/@

    once



  • Thanks for the suggestion and the welcoming, SGaist.

    But I am still getting the same error (after cleaning and rerunning qmake).


  • Lifetime Qt Champion

    Also remove the lib prefix for your libs, it should be e.g -ljpeg


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.