Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Making Makefile: "The system cannot find the path specified."
Forum Updated to NodeBB v4.3 + New Features

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

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 5.6k 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.
  • S Offline
    S Offline
    swtdrgn
    wrote on last edited by
    #1

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

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        swtdrgn
        wrote on last edited by
        #3

        Thanks for the suggestion and the welcoming, SGaist.

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

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

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

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0

          • Login

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