Qt-interest Archive, July 2007
qmake error
Message 1 in thread
hello,
I try to create a project "hello world" using qt and eclipse for macs.
but I have an error;
I installed Qt4.3 from the dmg, then I installed eclipse CDT; I followed
the tutorial "Qt in 10 steps": add the two external tools Qmake and
Qtassistant, create two targets all and qmake, and launch the target
qmake (after having wrote the code); but when I launch the target qmake
(from eclipse or even from the command line, I have the following message:
cannot find file: test-9.pro.
Any help available?
thank you,
lolveley.
--
[ signature omitted ]
Message 2 in thread
The issue has slighty changed: I have entered the file helloworld.cpp
(basic helloworld using Qt), its first line is
#include <QApplication>
and , like other lines, is not recognized("no such file or directory");
however in the folder "include : library/frameworks ", there is the file
QtGui.framework which contains Qapplication.h: eclipse should find this
file.
it is clear that eclipse is bad-configured.
Any help to configure eclipse would be appreciated,
lolveley.
--
[ signature omitted ]
Message 3 in thread
I submit you again my problem:
I have a mac, and Qt4 and eclipse europa installed.
I would like to make run the example "hello world", which first line is:
#include <QApplication>
but there is an error at this line (like at other lines):"no such file
or directory".
however, in eclipse's project explorer view, the folder "include"
contains a subfolder called "library/frameworks" in which there is the
file qtgui.framework which contains the file qapplication.h: I mean that
there sould not be an error at the first line, eclipse should find
qapplication.h.
I think that eclipse is bad-configured, and so I'm in search of someone
who knows how to configure eclipse, or of a tutorial (not "qt in 10
steps", which I already have).
thank you,
lolveley.
--
[ signature omitted ]
Message 4 in thread
On 28.07.07 11:44:48, lolveley wrote:
> I submit you again my problem:
>
> I have a mac, and Qt4 and eclipse europa installed.
> I would like to make run the example "hello world", which first line is:
>
> #include <QApplication>
>
> but there is an error at this line (like at other lines):"no such file or
> directory".
>
> however, in eclipse's project explorer view, the folder "include" contains a
> subfolder called "library/frameworks" in which there is the file
> qtgui.framework which contains the file qapplication.h: I mean that there sould
> not be an error at the first line, eclipse should find qapplication.h.
You've got two problems:
a) You're using include <QApplication> which is different from include
<qapplication.h>
b) you probably didn't configure your QMake project to use QtGui, which
would mean the Makefile doesn't contain the -I<Qtpath>/include/QtGui/
switch and then QApplication or qapplication.h cannot be found by the
compiler. Add gui to the .pro file in the line having QT (QT += gui).
Andreas
--
[ signature omitted ]
Message 5 in thread
hello Andreas,
I tried "#include <qapplication.h>" but it does no more work.
and I tried to modify the .pro file, appending "QT+=gui" at its end, but
without any success, after "qmake -project", "qmake", I still have a lot
of errors entering "make" ("no such file or directory").
I think that this is the include fomders which must be changed, but how?...
lolveley.
--
[ signature omitted ]
Message 6 in thread
On 28.07.07 12:19:27, lolveley wrote:
> hello Andreas,
>
> I tried "#include <qapplication.h>" but it does no more work.
> and I tried to modify the .pro file, appending "QT+=gui" at its end, but
> without any success, after "qmake -project", "qmake", I still have a lot of
> errors entering "make" ("no such file or directory").
You should start reading the QMake Manual. qmake -project will overwrite
your existing .pro file with a basic new version. You only run that
once, afterwards you only run qmake without the -project switch.
Andreas
--
[ signature omitted ]