You are not logged in.

#1 2012-03-25 09:45:20

njathan
Member
Registered: 2011-06-01
Posts: 18

qt compile error

I am trying to build the package 'qt' so that i can send crash reports back. I have installed abs and changed /etc/makepkg.conf as per https://wiki.archlinux.org/index.php/De … ing_Traces

However, when i try complining with 'makepkg -s' it exits with an error. The last few lines are pasted below. Now, this is one package which takes a long time to compile and it throwed me an error after more than an hour of playing with the source code. Can someone give pointers so that i can compile 'qt' successfully?

    ...........
    ...........
    compiling topicchooser.cpp
    compiling xbelsupport.cpp
    compiling ../shared/collectionconfiguration.cpp
    compiling openpagesmodel.cpp
    compiling globalactions.cpp
    compiling openpageswidget.cpp
    compiling openpagesmanager.cpp
    compiling openpagesswitcher.cpp
    compiling helpviewer_qwv.cpp
    helpviewer_qwv.cpp:168:1: error: expected class-name before ‘{’ token
    helpviewer_qwv.cpp:173:13: error: ‘QWebPage’ does not name a type
    helpviewer_qwv.cpp:174:32: error: ‘WebAction’ has not been declared
    helpviewer_qwv.cpp:176:42: error: ‘QWebFrame’ has not been declared
    helpviewer_qwv.cpp:177:41: error: ‘NavigationType’ has not been declared
    helpviewer_qwv.cpp: In constructor ‘HelpPage::HelpPage(QObject*)’:
    helpviewer_qwv.cpp:189:7: error: class ‘HelpPage’ does not have any field named ‘QWebPage’
    helpviewer_qwv.cpp: At global scope:
    helpviewer_qwv.cpp:197:1: error: ‘QWebPage’ does not name a type
    helpviewer_qwv.cpp:207:30: error: variable or field ‘triggerAction’ declared void
    helpviewer_qwv.cpp:207:30: error: ‘WebAction’ was not declared in this scope
    helpviewer_qwv.cpp:207:48: error: expected primary-expression before ‘bool’
    make[4]: *** [.obj/release-shared/helpviewer_qwv.o] Error 1
    make[4]: Leaving directory `/home/njathan/abs/qt/src/qt-everywhere-opensource-src-4.8.0/tools/assistant/tools/assistant'
    make[3]: *** [sub-assistant-make_default-ordered] Error 2
    make[3]: Leaving directory `/home/njathan/abs/qt/src/qt-everywhere-opensource-src-4.8.0/tools/assistant/tools'
    make[2]: *** [sub-tools-make_default-ordered] Error 2
    make[2]: Leaving directory `/home/njathan/abs/qt/src/qt-everywhere-opensource-src-4.8.0/tools/assistant'
    make[1]: *** [sub-assistant-make_default-ordered] Error 2
    make[1]: Leaving directory `/home/njathan/abs/qt/src/qt-everywhere-opensource-src-4.8.0/tools'
    make: *** [sub-tools-make_default-ordered] Error 2
    ==> ERROR: A failure occurred in build().
        Aborting...
    [njathan@OuchLinuX qt]$

Offline

#2 2012-03-25 12:22:57

ilpianista
Fellow developer
Registered: 2007-10-06
Posts: 568
Website

Re: qt compile error

Are you using gcc 4.7.0? I didn't try to build qt with it yet.

EDIT: I tried to build qt with gcc 4.7 and it fails. However, the error was different than yours (see http://pastebin.com/T78CcAbZ).
I updated our PKGBUILD to build with gcc 4.7; if you are using gcc 4.7 fetch the new PKGBUILD from here

Last edited by ilpianista (2012-03-25 12:46:47)

Offline

#3 2012-03-25 17:46:27

njathan
Member
Registered: 2011-06-01
Posts: 18

Re: qt compile error

bash wrote:

Are you using gcc 4.7.0? I didn't try to build qt with it yet

I am using 4.6.3-1

[njathan@OuchLinuX ~]$ pacman -Q gcc
gcc 4.6.3-1
[njathan@OuchLinuX ~]$

Offline

#4 2012-03-25 20:24:16

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: qt compile error

I get the same error message as njathan without trying to get debug symbols with gcc 4.6.3. I guess this is worth a bug report.

Offline

#5 2012-04-04 21:14:12

Si
Member
Registered: 2006-09-11
Posts: 57

Re: qt compile error

I was having the same issue, but I managed to compile it successfully after removing qtwebkit from the system. See https://bbs.archlinux.org/viewtopic.php?id=132416 for more details.

Offline

Board footer

Powered by FluxBB