Forums / Install & configuration / Building ezlupdate on RHEL4

Building ezlupdate on RHEL4

Author Message

Massimo Sanna

Tuesday 06 December 2005 2:37:36 am

Hi there, I installed everything I supposed it was needed (qt, qt-devel), but if I try to build ezlupdate i get lots of errors.
I ensured that $QTDIR actually points to my qt library.

Pasted below you can see the output I get. Do you have any ideas? I cannot find documentation on this... and I'm pretty new to qt.
Thank you in advance,
Max

[root@dev lupdate-ezpublish3]# qmake ezlupdate.pro

Project MESSAGE: Single-threaded Qt not found
Project MESSAGE: Configuring for multi-threaded Qt...

[root@dev lupdate-ezpublish3]# make

g++ -c -pipe -Wall -W -O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -D_REENTRANT  -DQT_NO_DEBUG -DQT_THREAD_SUPPORT -I/usr/lib/qt-3.3/mkspecs/default -I. -I. -I/include -Imoc/ -o obj/fetchtr_php.o fetchtr_php.cpp
In file included from fetchtr_php.cpp:31:
./metatranslator.h:20:18: qmap.h: No such file or directory
./metatranslator.h:21:21: qstring.h: No such file or directory
./metatranslator.h:22:25: qtranslator.h: No such file or directory
./metatranslator.h:23:24: qvaluelist.h: No such file or directory
In file included from fetchtr_php.cpp:31:
./metatranslator.h:28: error: expected class-name before '{' token
./metatranslator.h:35: error: expected `,' or `...' before '&' token
./metatranslator.h:36: error: ISO C++ forbids declaration of `QString' with no type
./metatranslator.h:69: error: expected `,' or `...' before '&' token
./metatranslator.h:69: error: ISO C++ forbids declaration of `QString' with no type
./metatranslator.h:70: error: expected `,' or `...' before '&' token
./metatranslator.h:70: error: ISO C++ forbids declaration of `QString' with no type
./metatranslator.h:71: error: expected `,' or `...' before '&' token
./metatranslator.h:71: error: ISO C++ forbids declaration of `QString' with no type
./metatranslator.h:81: error: `QString' does not name a type
./metatranslator.h:83: error: ISO C++ forbids declaration of `QValueList' with no type
./metatranslator.h:83: error: expected `;' before '<' token
./metatranslator.h:84: error: ISO C++ forbids declaration of `QValueList' with no type
./metatranslator.h:84: error: expected `;' before '<' token
./metatranslator.h:87: error: ISO C++ forbids declaration of `QMap' with no type
./metatranslator.h:87: error: expected `;' before '<' token
./metatranslator.h:88: error: ISO C++ forbids declaration of `QMap' with no type
./metatranslator.h:88: error: expected `;' before '<' token
./metatranslator.h:90: error: `TMM' does not name a type
./metatranslator.h:91: error: `QCString' does not name a type
fetchtr_php.cpp:36:19: qfile.h: No such file or directory
fetchtr_php.cpp:37:23: qfileinfo.h: No such file or directory
fetchtr_php.cpp:38:21: qregexp.h: No such file or directory
fetchtr_php.cpp:40:25: qtextstream.h: No such file or directory
fetchtr_php.cpp:75: error: `QCString' does not name a type
fetchtr_php.cpp:89: error: expected init-declarator before '*' token
fetchtr_php.cpp:89: error: expected `,' or `;' before '*' token
fetchtr_php.cpp:92: error: `QString' does not name a type
fetchtr_php.cpp: In function `int getCharFromFile()':
fetchtr_php.cpp:99: error: `yyInFile' undeclared (first use this function)
fetchtr_php.cpp:99: error: (Each undeclared identifier is reported only once for each function it appears in.)
fetchtr_php.cpp:99: error: `getc' undeclared (first use this function)
fetchtr_php.cpp: In function `void startTokenizer(const char*, int (*)())':
fetchtr_php.cpp:110: error: `yyFileName' undeclared (first use this function)
fetchtr_php.cpp: In function `int getToken()':
fetchtr_php.cpp:121: error: `uint' undeclared (first use this function)
fetchtr_php.cpp:121: error: expected `;' before "n"
fetchtr_php.cpp:127: error: `EOF' undeclared (first use this function)
fetchtr_php.cpp:140: error: `strcmp' undeclared (first use this function)
fetchtr_php.cpp:156: error: `FALSE' undeclared (first use this function)
fetchtr_php.cpp:163: error: `yyFileName' undeclared (first use this function)
fetchtr_php.cpp:164: error: `qWarning' undeclared (first use this function)
fetchtr_php.cpp:172: error: `TRUE' undeclared (first use this function)
fetchtr_php.cpp:192: error: `QCString' undeclared (first use this function)
fetchtr_php.cpp:192: error: expected `;' before "hex"
fetchtr_php.cpp:196: error: `hex' undeclared (first use this function)
fetchtr_php.cpp:199: error: `n' undeclared (first use this function)
fetchtr_php.cpp:199: error: `sscanf' undeclared (first use this function)
fetchtr_php.cpp:203: error: expected `;' before "oct"
fetchtr_php.cpp:206: error: `oct' undeclared (first use this function)
fetchtr_php.cpp:213: error: `strchr' undeclared (first use this function)
fetchtr_php.cpp:246: error: expected `;' before "hex"
fetchtr_php.cpp:257: error: expected `;' before "oct"
fetchtr_php.cpp: At global scope:
fetchtr_php.cpp:349: error: `QCString' was not declared in this scope
fetchtr_php.cpp:349: error: `s' was not declared in this scope
fetchtr_php.cpp:350: error: expected `,' or `;' before '{' token
fetchtr_php.cpp:360: error: `QCString' was not declared in this scope
fetchtr_php.cpp:360: error: `s' was not declared in this scope
fetchtr_php.cpp:361: error: expected `,' or `;' before '{' token
fetchtr_php.cpp: In function `void parse(MetaTranslator*, const char*, const char*)':
fetchtr_php.cpp:374: error: `QMap' undeclared (first use this function)
fetchtr_php.cpp:374: error: `QCString' undeclared (first use this function)
fetchtr_php.cpp:374: error: `qualifiedContexts' undeclared (first use this function)
fetchtr_php.cpp:375: error: `QStringList' undeclared (first use this function)
fetchtr_php.cpp:375: error: expected `;' before "namespaces"
fetchtr_php.cpp:376: error: expected `;' before "context"
fetchtr_php.cpp:377: error: expected `;' before "ext"
fetchtr_php.cpp:378: error: expected `;' before "text"
fetchtr_php.cpp:379: error: expected `;' before "comment"
fetchtr_php.cpp:380: error: expected `;' before "functionContext"
fetchtr_php.cpp:381: error: expected `;' before "prefix"
fetchtr_php.cpp:382: error: `FALSE' undeclared (first use this function)
fetchtr_php.cpp:391: error: `context' undeclared (first use this function)
fetchtr_php.cpp:391: error: `matchString' cannot be used as a function
fetchtr_php.cpp:391: error: `matchSString' cannot be used as a function
fetchtr_php.cpp:393: error: `text' undeclared (first use this function)
fetchtr_php.cpp:393: error: `matchString' cannot be used as a function
fetchtr_php.cpp:393: error: `matchSString' cannot be used as a function
fetchtr_php.cpp:396: error: `comment' undeclared (first use this function)
fetchtr_php.cpp:396: error: `matchString' cannot be used as a function
fetchtr_php.cpp:396: error: `matchSString' cannot be used as a function
fetchtr_php.cpp:401: error: `QString' has not been declared
fetchtr_php.cpp:401: error: `null' undeclared (first use this function)
fetchtr_php.cpp:410: error: `ext' undeclared (first use this function)
fetchtr_php.cpp:410: error: `matchString' cannot be used as a function
fetchtr_php.cpp:410: error: `matchSString' cannot be used as a function
fetchtr_php.cpp:412: error: `matchString' cannot be used as a function
fetchtr_php.cpp:412: error: `matchSString' cannot be used as a function
fetchtr_php.cpp:414: error: `matchString' cannot be used as a function
fetchtr_php.cpp:414: error: `matchSString' cannot be used as a function
fetchtr_php.cpp:417: error: `matchString' cannot be used as a function
fetchtr_php.cpp:417: error: `matchSString' cannot be used as a function
fetchtr_php.cpp:422: error: `QString' has not been declared
fetchtr_php.cpp:428: error: `prefix' undeclared (first use this function)
fetchtr_php.cpp:442: error: `namespaces' undeclared (first use this function)
fetchtr_php.cpp:443: error: `functionContext' undeclared (first use this function)
fetchtr_php.cpp: At global scope:
fetchtr_php.cpp:467: error: variable or field `fetchtr_php' declared void
fetchtr_php.cpp:467: error: `QFileInfo' was not declared in this scope
fetchtr_php.cpp:467: error: `fi' was not declared in this scope
fetchtr_php.cpp:467: error: expected primary-expression before '*' token
fetchtr_php.cpp:467: error: `tor' was not declared in this scope
fetchtr_php.cpp:467: error: expected primary-expression before "bool"
fetchtr_php.cpp:468: error: initializer expression list treated as compound expression
fetchtr_php.cpp:468: error: expected `,' or `;' before '{' token
fetchtr_php.cpp:98: warning: 'int getCharFromFile()' defined but not used
fetchtr_php.cpp:106: warning: 'void startTokenizer(const char*, int (*)())' defined but not used
fetchtr_php.cpp:373: warning: 'void parse(MetaTranslator*, const char*, const char*)' defined but not used
make: *** [obj/fetchtr_php.o] Error 1

Gunnstein Lye

Wednesday 07 December 2005 12:26:36 am

Hi!

First, make sure you have Qt3 installed (Qt4 is out now, so that might not be the case).

Second, if you have Qt3, it seems your Qt include files can not be found. Do you have the Qt3 devel package installed? You need that for compiling Qt programs.

If you have that, try adding your Qt include directory (usually something like /usr/lib/qt3/include) to the environment variable CPP_INCLUDE_PATH. That should help.

regards

Massimo Sanna

Wednesday 07 December 2005 1:29:07 am

Hi Gunnstein! Your suggestion was great.
I simply entered CPP_INCLUDE_PATH=/usr/lib/qt-3.3/include, then qmake ezlupdate.pro, then make and everything worked smoothly. It didn't find its includes hehe.

Thank you again,
Max

Softriva .com

Friday 16 June 2006 10:26:58 am

I am running Ubuntu and my qt headers are in /usr/include/qt3.

I tried:

CPP_INCLUDE_PATH=/usr/include/qt3/

still no help. Any suggestions