tags:

views:

486

answers:

3

I have downloaded the source code for the embedded widget demos from nokia and tried to get it to compile--I end up with the following error:

Compiler (mingw32) message :

In file included from ../../src/basicgraph/qtbasicgraph.cpp:9: ../../src/basicgraph/qtbasicgraph.h:14:17: QtGui: No such file or directory

The offending line is

#include <QtGui>

QT creator 1.2.0, QT 2009.03

I have checked paths, etc, and all seems fine. I have checked to make sure that I have implicitly included QT += gui and that I have NOT included QT -= gui anywhere in the .pro and .pri files.

After making no changes, I used VS2005 and the appropriate commercial version of QT 4.4.3, and it compiled and ran fine

I have googled the error, and have found others asking similar questions (but not here) but no posted answers...so I would appreciate any help.

thanks

Jonathan Howland

A: 

QtGui is a meta-include file that includes all header files of the QtGui module, you should find it in the include/ folder of your Qt installation. If this isn't created, something went amiss in your install. Alternatively, you might want to check that you are using the correct qmake; qmake --version should tell you which qmake is being used.

Henrik Hartz
I am familiar with the meta-include concept. QtGui exists and is found in many other QT projects I have written myself or compiled from open source projects. And I am pretty sure I am using the correct qmake, since I am compiling within QT-creator, and many other projects build just fine in that environment.so I don't think this is an answer, although I appreciate the effort. I think this problem is going to be specific to the embedded demo configuration
jhowland
A: 

I'm having the same problem. I'm using Qt Creator 1.3.1, based on Qt 4.6.1.

I've been building apps for several months and now I want to integrate a gauge I see in the qt embedded package.

I can get to all of my include directories. All works fine when building other add-on widgets.

Has anyone found a solution?

Mike

Mike
A: 

**My Brother... If you want to solve this problem.. just edit the basicgraph.pri.. you must comment/remove the line that define the pathDependeancy in the .pri file: step1: Edit basicgraph.pri by:

DEPENDPATH += $$PWD

you may need also to comment/remove this line from the multislider.pri after removing it from the basicgraph.pri step2: in mutlislider.pri

DEPENDPATH += $$PWD

test it, and pray for me**

reda Shamasneh