0

I get this error when run program in qt 5.8 in windows 10 64 bit. how to solve this issue.

My .pro file

00:43:14: Running steps for project untitled1...
00:43:16: Starting: "G:\IDE\Qt5.8.0\5.8\mingw53_32\bin\qmake.exe" "G:\Qt Projects\untitled1\untitled1.pro" -spec win32-g++ "CONFIG+=qml_debug"
MAKEFILE_GENERATOR variable not set as a result of parsing : untitled1.pro. Possibly qmake was not able to find files included using "include(..)" - enable qmake debugging to investigate more.
00:43:32: The process "G:\IDE\Qt5.8.0\5.8\mingw53_32\bin\qmake.exe" exited with code 3.
Error while building/deploying project untitled1 (kit: Desktop Qt 5.8.0 MinGW 32bit)
When executing step "qmake"
00:43:32: Elapsed time: 00:18.

Header File

#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H

main.cpp file

#include "mainwindow.h"
#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    w.show();

    return a.exec();
}

mainwindow.cpp file

#include "mainwindow.h"
#include "ui_mainwindow.h"

MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}

mainwindow.ui file

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
 <class>MainWindow</class>
 <widget class="QMainWindow" name="MainWindow">
  <property name="geometry">
   <rect>
    <x>0</x>
    <y>0</y>
    <width>800</width>
    <height>480</height>
   </rect>
  </property>
  <property name="windowTitle">
   <string>MainWindow</string>
  </property>
  <widget class="QWidget" name="centralWidget"/>
 </widget>
 <layoutdefault spacing="6" margin="11"/>
 <resources/>
 <connections/>
</ui>

please help me to fix this issue. Thanks

  • 1
    What's in your .pro file? – peppe Feb 20 '17 at 12:49
  • Your image of text [isn't very helpful](//meta.unix.stackexchange.com/q/4086). It can't be read aloud or copied into an editor, and it doesn't index very well, meaning that other users with the same problem are less likely to find the answer here. Please [edit] your post to incorporate the relevant text directly (preferably using copy+paste to avoid transcription errors). – Toby Speight Feb 21 '17 at 11:51
  • I have edited and post original code. Please help me to fix this issue. Thanks –  Feb 27 '17 at 12:18

0 Answers0