Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Makefile:204: Makefile] Error 2
Forum Updated to NodeBB v4.3 + New Features

[Makefile:204: Makefile] Error 2

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 1.5k Views
  • 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.
  • W Offline
    W Offline
    Wreet
    wrote on last edited by
    #1

    Following is the output of the error -

    18:29:31: Running steps for project BCSEIII...
    18:29:31: Configuration unchanged, skipping qmake step.
    18:29:31: Starting: "C:\Qt\Tools\mingw810_64\bin\mingw32-make.exe" -j8
    C:/Qt/6.1.3/mingw81_64/bin/qmake.exe -o Makefile "../templateProgram.rar (Unzipped Files)/BCSEIII.pro" -spec win32-g++ CONFIG+=debug CONFIG+=qml_debug
    Cannot find file: ..\templateProgram.rar.
    Cannot find file: (Unzipped.
    Cannot find file: Files)\BCSEIII.pro.
    mingw32-make: *** [Makefile:204: Makefile] Error 2
    18:29:32: The process "C:\Qt\Tools\mingw810_64\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project BCSEIII (kit: Desktop Qt 6.1.3 MinGW 64-bit)
    When executing step "Make"
    18:29:32: Elapsed time: 00:01.

    Here is the code of .pro file -

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

    Project created by QtCreator 2018-07-19T19:54:40

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

    QT += core gui

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    TARGET = BCSEIII
    TEMPLATE = app

    The following define makes your compiler emit warnings if you use

    any feature of Qt which has been marked as deprecated (the exact warnings

    depend on your compiler). Please consult the documentation of the

    deprecated API in order to know how to port your code away from it.

    DEFINES += QT_DEPRECATED_WARNINGS

    You can also make your code fail to compile if you use deprecated APIs.

    In order to do so, uncomment the following line.

    You can also select to disable deprecated APIs only up to a certain version of Qt.

    #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0

    SOURCES +=
    main.cpp
    mainwindow.cpp
    my_label.cpp

    HEADERS +=
    mainwindow.h
    my_label.h

    FORMS +=
    mainwindow.ui

    I am using qt 6 in windows 10.

    How can i fix the error?

    jsulmJ 1 Reply Last reply
    0
    • W Wreet

      Following is the output of the error -

      18:29:31: Running steps for project BCSEIII...
      18:29:31: Configuration unchanged, skipping qmake step.
      18:29:31: Starting: "C:\Qt\Tools\mingw810_64\bin\mingw32-make.exe" -j8
      C:/Qt/6.1.3/mingw81_64/bin/qmake.exe -o Makefile "../templateProgram.rar (Unzipped Files)/BCSEIII.pro" -spec win32-g++ CONFIG+=debug CONFIG+=qml_debug
      Cannot find file: ..\templateProgram.rar.
      Cannot find file: (Unzipped.
      Cannot find file: Files)\BCSEIII.pro.
      mingw32-make: *** [Makefile:204: Makefile] Error 2
      18:29:32: The process "C:\Qt\Tools\mingw810_64\bin\mingw32-make.exe" exited with code 2.
      Error while building/deploying project BCSEIII (kit: Desktop Qt 6.1.3 MinGW 64-bit)
      When executing step "Make"
      18:29:32: Elapsed time: 00:01.

      Here is the code of .pro file -

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

      Project created by QtCreator 2018-07-19T19:54:40

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

      QT += core gui

      greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

      TARGET = BCSEIII
      TEMPLATE = app

      The following define makes your compiler emit warnings if you use

      any feature of Qt which has been marked as deprecated (the exact warnings

      depend on your compiler). Please consult the documentation of the

      deprecated API in order to know how to port your code away from it.

      DEFINES += QT_DEPRECATED_WARNINGS

      You can also make your code fail to compile if you use deprecated APIs.

      In order to do so, uncomment the following line.

      You can also select to disable deprecated APIs only up to a certain version of Qt.

      #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0

      SOURCES +=
      main.cpp
      mainwindow.cpp
      my_label.cpp

      HEADERS +=
      mainwindow.h
      my_label.h

      FORMS +=
      mainwindow.ui

      I am using qt 6 in windows 10.

      How can i fix the error?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Wreet said in [Makefile:204: Makefile] Error 2:

      ../templateProgram.rar (Unzipped Files)/BCSEIII.pro"

      Put your project in a folder without spaces

      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