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

eZ debug

Timing: Jan 19 2025 04:36:18
Script start
Timing: Jan 19 2025 04:36:18
Module start 'content'
Timing: Jan 19 2025 04:36:19
Module end 'content'
Timing: Jan 19 2025 04:36:19
Script end

Main resources:

Total runtime0.9781 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 589.0703180.8281
Module start 'content' 0.00640.8384 769.8984596.9453
Module end 'content' 0.84490.1331 1,366.8438345.3828
Script end 0.9779  1,712.2266 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4218210.0002
Check MTime0.00160.1636210.0001
Mysql Total
Database connection0.00100.104210.0010
Mysqli_queries0.905592.58151990.0046
Looping result0.00210.20961970.0000
Template Total0.949697.120.4748
Template load0.00230.232320.0011
Template processing0.947396.859120.4737
Template load and register function0.00010.013610.0001
states
state_id_array0.00110.112110.0011
state_identifier_array0.00130.135320.0007
Override
Cache load0.00190.1991280.0001
Sytem overhead
Fetch class attribute can translate value0.00140.140740.0003
Fetch class attribute name0.00200.207060.0003
XML
Image XML parsing0.00130.130340.0003
class_abstraction
Instantiating content class attribute0.00000.004270.0000
General
dbfile0.00240.2475330.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs