Hello,I need to install QChat app from http://www.kde-apps.org/content/show.php/QChat?content=65066 and have downloaded the source.I have some struggles with packaging it. I have to install this app on 5 office machines and need to make a simple install file.Would anyone be so kind to guide me a bit throughout the packaging process?Thank you a lot.

QMake has two modes, one mode for generating project files based onsome heuristics, and the other for generating makefiles. Normally youshouldn't need to specify a mode, as makefile generation is the defaultmode for qmake, but you may use this to test qmake on an existing project

qmake -makefile[code]if that completes without errors, then run each command in the one liner separately[code]makemkdir $PWD/PKGmake DESTDIR=$PWD/PKG installcd PKGmakeslapt --tlz <application_name>-<version>-<arch>-<release>.tlzof course, replace the <value> with the correct values for your application.

Reception:/~/inst/qchat-0.2.2receptie:$ mkdir $PWD/PKGReception:/~/inst/qchat-0.2.2receptie:$ make DESTDIR=$PWD/PKG installg++ -c -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt/mkspecs/default -I. -I/usr/lib/qt/include -o main.o main.cppmain.cpp:16:24: error: QApplication: No such file or directorymain.cpp:17:21: error: QResource: No such file or directorymain.cpp:18:23: error: QModelIndex: No such file or directorymain.cpp:19:27: error: QTextCharFormat: No such file or directorymain.cpp:20:24: error: QHostAddress: No such file or directorymain.cpp:21:32: error: QNetworkAddressEntry: No such file or directoryIn file included from main.cpp:27:qchat.h:19:19: error: QObject: No such file or directoryqchat.h:29: error: expected class-name before '{' tokenqchat.h:30: error: ISO C++ forbids declaration of 'Q_OBJECT' with no typeqchat.h:31: error: expected ';' before 'private'qchat.h:34: error: ISO C++ forbids declaration of 'QApplication' with no typeqchat.h:34: error: expected ';' before '*' tokenqchat.h:35: error: 'QString' does not name a typeqchat.h:38: error: expected `)' before '*' tokenqchat.h:41: error: 'QApplication' has not been declaredqchat.h:43: error: expected `:' before 'slots'qchat.h:44: error: expected primary-expression before 'void'qchat.h:44: error: ISO C++ forbids declaration of 'slots' with no typeqchat.h:44: error: expected ';' before 'void'qchat.h:45: error: expected ',' or '...' before '&' tokenqchat.h:45: error: ISO C++ forbids declaration of 'QString' with no typemain.cpp:29: error: variable or field 'myMessageOutput' declared voidmain.cpp:29: error: 'QtMsgType' was not declared in this scopemain.cpp:29: error: expected primary-expression before 'const'main.cpp:29: error: initializer expression list treated as compound expressionmain.cpp:30: error: expected ',' or ';' before '{' tokenmain.cpp: In function 'int main(int, char**)':main.cpp:65: error: 'qInstallMsgHandler' was not declared in this scopemain.cpp:67: error: 'QApplication' was not declared in this scopemain.cpp:67: error: expected `;' before 'app'main.cpp:69: error: 'images' was not declared in this scopemain.cpp:69: error: 'Q_INIT_RESOURCE' was not declared in this scopemain.cpp:76: error: 'qRegisterMetaType' was not declared in this scopemain.cpp:76: error: expected primary-expression before 'unsigned'main.cpp:76: error: expected `;' before 'unsigned'main.cpp:77: error: 'QHostAddress' was not declared in this scopemain.cpp:78: error: 'quint8' was not declared in this scopemain.cpp:79: error: 'quint16' was not declared in this scopemain.cpp:80: error: 'quint32' was not declared in this scopemain.cpp:81: error: 'quint64' was not declared in this scopemain.cpp:83: error: 'QModelIndex' was not declared in this scopemain.cpp:84: error: 'QTextCharFormat' was not declared in this scopemain.cpp:85: error: 'QNetworkAddressEntry' was not declared in this scopemain.cpp:89: error: 'app' was not declared in this scopemake: *** [main.o] Error 1Reception:/~/inst/qchat-0.2.2receptie:$ cd PKGReception:/~/inst/qchat-0.2.2/PKGreceptie:$ makeslapt --tlz qchat-0.2.2-i486-1vl59.tlzThanks.

Reception:/~/instreceptie:$ cd qchat-0.2.2Reception:/~/inst/qchat-0.2.2receptie:$ qmake -makefileReception:/~/inst/qchat-0.2.2receptie:$ makeg++ -c -pipe -Wall -W -O2 -DQT_NO_DEBUG -DQT_SHARED -DQT_THREAD_SUPPORT -I/usr/lib/qt/mkspecs/default -I. -I/usr/lib/qt/include -o main.o main.cppmain.cpp:16:24: error: QApplication: No such file or directorymain.cpp:17:21: error: QResource: No such file or directorymain.cpp:18:23: error: QModelIndex: No such file or directorymain.cpp:19:27: error: QTextCharFormat: No such file or directorymain.cpp:20:24: error: QHostAddress: No such file or directorymain.cpp:21:32: error: QNetworkAddressEntry: No such file or directoryIn file included from main.cpp:27:qchat.h:19:19: error: QObject: No such file or directoryqchat.h:29: error: expected class-name before '{' tokenqchat.h:30: error: ISO C++ forbids declaration of 'Q_OBJECT' with no typeqchat.h:31: error: expected ';' before 'private'qchat.h:34: error: ISO C++ forbids declaration of 'QApplication' with no typeqchat.h:34: error: expected ';' before '*' tokenqchat.h:35: error: 'QString' does not name a typeqchat.h:38: error: expected `)' before '*' tokenqchat.h:41: error: 'QApplication' has not been declaredqchat.h:43: error: expected `:' before 'slots'qchat.h:44: error: expected primary-expression before 'void'qchat.h:44: error: ISO C++ forbids declaration of 'slots' with no typeqchat.h:44: error: expected ';' before 'void'qchat.h:45: error: expected ',' or '...' before '&' tokenqchat.h:45: error: ISO C++ forbids declaration of 'QString' with no typemain.cpp:29: error: variable or field 'myMessageOutput' declared voidmain.cpp:29: error: 'QtMsgType' was not declared in this scopemain.cpp:29: error: expected primary-expression before 'const'main.cpp:29: error: initializer expression list treated as compound expressionmain.cpp:30: error: expected ',' or ';' before '{' tokenmain.cpp: In function 'int main(int, char**)':main.cpp:65: error: 'qInstallMsgHandler' was not declared in this scopemain.cpp:67: error: 'QApplication' was not declared in this scopemain.cpp:67: error: expected `;' before 'app'main.cpp:69: error: 'images' was not declared in this scopemain.cpp:69: error: 'Q_INIT_RESOURCE' was not declared in this scopemain.cpp:76: error: 'qRegisterMetaType' was not declared in this scopemain.cpp:76: error: expected primary-expression before 'unsigned'main.cpp:76: error: expected `;' before 'unsigned'main.cpp:77: error: 'QHostAddress' was not declared in this scopemain.cpp:78: error: 'quint8' was not declared in this scopemain.cpp:79: error: 'quint16' was not declared in this scopemain.cpp:80: error: 'quint32' was not declared in this scopemain.cpp:81: error: 'quint64' was not declared in this scopemain.cpp:83: error: 'QModelIndex' was not declared in this scopemain.cpp:84: error: 'QTextCharFormat' was not declared in this scopemain.cpp:85: error: 'QNetworkAddressEntry' was not declared in this scopemain.cpp:89: error: 'app' was not declared in this scopemake: *** [main.o] Error 1Reception:/~/inst/qchat-0.2.2receptie:$

I thought that i would try and emulate your efforts to see if i got the same results as you.I did. qmake made a Makefile but that was as far as i got.

so... i looked at the Makefile to see what i could see and noticed the variable QTDIR being mentioned all over the place. 'The penny dropped' as i realised that there were now 2 versions of Qt installed.