PDA

View Full Version : qmake -project problems



khopper
27th September 2008, 17:16
Hi, I am a newbie with Qt/Qwt,
Everything compiles perfectly if I use the .pro files that come with
the qwt or qt examples. But if I build my own .pro file with this
command "qmake -project" I get a .pro file that does not work

The problem seems to have something to do with my PATH
statement in Unix and I can not determine the problem in
WindowsXP.

What are the secrets of using qmake -project, and then qmake to
get a good Makefile?

thanks for any suggestions,
Ken - Naperville, IL USA

jacek
27th September 2008, 23:03
How exactly it doesn't work? Do you get any error messages?

khopper
28th September 2008, 14:51
Thank you Jacek for your kind reply. I believe I traced the problem to my PATH statement in WindowsXP.

the problem was that every .pro file had a line in it with both "/" and "\"
like this:
C:\Qt\4.4.2\bin/moc.exe $(DEFINES) $(INCPATH) -D__GNUC__ -DWIN32 sliders.h -o

I am sorry I can not quote the error - but it said that moc.exe was not found and the compilation failed and stopped at that point.

In this thread a kind user named "Spirit" helped me fix my path statement
<URL: http://www.qtcentre.org/forum/f-qt-programming-2/t-makefile-moc-path-corrupted-in-windowsxp-qt-442-16239.html#post82112 >

and that seems to have fixed the problem.

thank you again for taking the time to try and help a newbie. I certainly appreciate your kindness.

Ken - USA