user4494275
user4494275

Reputation:

Qt Installation not working

As far as I know there are trillions of questions like mine, yet I haven't found a solution yet.

So, here's my problem: I've installed Qt 5.4 downloading the 2 packages from http://download.qt.io/official_releases/.

The packages I've downloaded are:

because I'm working on a bloody Windows 8.1.

Now, the installation seemed to be working fine, and as soon as the process has ended I rushed to my Desktop folder and tried the ordinary "HelloWorld" application.

I tried to type in cmd "mingw32-make" and it outputed C:\Users\my_name\Desktop\hellllllo\main.cpp:1: error: QtWidgets: No such file or directory #include < QtWidgets>.

What strikes me is the fact that some Qt examples provided in the installation work fine, some others not. Please, give me a hint or a path to follow to set up Qt! Thanks in advance!

EDIT: I've also tried countless times to change variable PATH, but with no result.

Upvotes: 0

Views: 1038

Answers (1)

Matt
Matt

Reputation: 15196

  1. If qmake is not found, then PATH is incorrect.

  2. Regarding include's, the easiest way is to create qt.conf file. See http://doc.qt.io/qt-5/qt-conf.html

P.S. Sample qt.conf

[Paths]
Prefix=..
Headers=include/qt5

Upvotes: 1

Related Questions