PDA

View Full Version : QT tutorial 7



ranu
21st May 2007, 16:30
i tried compiling the program in tute 7 of QT. i've placed all three files namely lcdrange.cpp, lcdrange.h & main.cpp in a directory D:\Ranu's works\t7. the problem i get is that when i run qmake -project & it creates .pro file..

D:\Ranu's works\t7>qmake -project

but when i run qmake after that i get an error as

D:\Ranu's works\t7>qmake
Error processing project file: D:/Ranu's works/t7/t7.pro

plz tell me wht to do.. & what i'm doing wrong.

thanks in advance.:)

jpn
21st May 2007, 17:15
I'm not sure what went wrong but pasting the .pro file could help us to solve the problem. Anyway, the example is shipped together with the installation package. See %QTDIR%\examples\tutorial\t7.

ranu
21st May 2007, 17:39
thanks JP

i saw the original .pro file for tute 7. & its very different from the one i get after compiling.

the original .pro file is:

TEMPLATE = app
CONFIG += qt warn_on
HEADERS = lcdrange.h
SOURCES = lcdrange.cpp \
main.cpp
TARGET = t7
QTDIR_build:REQUIRES="contains(QT_CONFIG, large-config)"

# install
target.path = $$[QT_INSTALL_EXAMPLES]/tutorial/t7
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS t7.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/tutorial/t7
INSTALLS += target sources




and the one i'm getting after running qmake -project is:


################################################## ####################
# Automatically generated by qmake (2.01a) Mon May 21 22:00:28 2007
################################################## ####################

TEMPLATE = app
TARGET =
DEPENDPATH += .
INCLUDEPATH += .

# Input
HEADERS += lcdrange.h
SOURCES += lcdrange.cpp main.cpp


why this is happeing... please help.

jpn
21st May 2007, 17:50
The automatically generated .pro file looks fine to me. How did you install Qt?

ranu
22nd May 2007, 06:05
hey.. i chkd the same program on other system & it ran well. there's some problem in the qt installation on my system. i'll reinstall that
thanks JP
:)