Problems building Konq/e with Qtopia Core

Piero Pezzin piero.pezzin at gmail.com
Tue Jan 22 16:26:31 CET 2008


Hello again.
It works forcing the define QT_NO_DOM in the qconfig.h contained in
$QTDIR/includes. No need to recompile qt-embedded.
But, now I have other problems during linking (multiple definitions of
KNotifyClient::beep and KStdAccel::findNext()):

/bin/sh ../../libtool --silent --tag=CXX --mode=link arm-linux-g++
-Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align
-Wconversion
-Wchar-subscripts -Wall -W -Wpointer-arith -fno-builtin -g3 -fno-inline
-Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor
-fno-exceptions -fno-check-new -fno-common
-DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST
-o konqueror  -L/home/piero/konq-embedded/lib
-L/home/piero/work/qt-2.3.10/lib
-export-dynamic konqueror.all_cc.o konqueror.all_cpp.o
../../konq-embed/dropin/kio/libkiodropin.la
../../konq-embed/kdesrc/khtml/ecma/libkjs_html_i.la
../../konq-embed/kdesrc/kjs/libkjs.la  ../lib/libkonqe.la
../../konq-embed/kdesrc/kparts/libkparts.la
../../konq-embed/dropin/libdropin.la
../../konq-embed/dropin/kparts/libkpartsdropin.la
../../konq-embed/kdesrc/khtml/libkhtml_i.la
../../konq-embed/dropin/kssl/libkssldropin.la
../../konq-embed/kdesrc/kssl/libkssl.la

../../konq-embed/kdesrc/khtml/.libs/libkhtml_i.a(libkhtml_i_la.all_cpp.o)(.text+0x8d0):
../../../konq-embed/dropin/knotifyclient.h:30: multiple definition of
`KNotifyClient::beep(QString const&)'
../lib/.libs/libkonqe.a(libdropin_la.all_cpp.o)(.text+0x245c):/home/piero/work/kdenox/konq-embed/dropin/knotifyclient.h:30:
first defined here

../../konq-embed/kdesrc/khtml/.libs/libkhtml_i.a(libkhtml_i_la.all_cpp.o)(.text+0x8e8):
../../../konq-embed/dropin/kstdaccel.h:30: multiple definition of
`KStdAccel::findNext()'
../lib/.libs/libkonqe.a(libdropin_la.all_cpp.o)(.text+0xede4):/home/piero/work/kdenox/konq-embed/dropin/kstdaccel.h:30:
first defined here

Could somebody help me? I'm really at just one step to giving up....

Thanks in advance.


On Jan 22, 2008 12:04 PM, Piero Pezzin <piero.pezzin at gmail.com> wrote:

> Hello everyone.
> I saw that the http.cc file has lines like this:
>
> #if !defined(QT_NO_DOM)
>
> before the sections that cause problems.
>
> Do you think I have to recompile qt-embedded forcing the QT_NO_DOM define
> in qconfig.h? Or is it enough configure Konq/e to use a qconfig.h which
> defines QT_NO_DOM, even if the qt-embedded library is compiled with dom
> support? If the second is the right solution, how can I make Konq/e point to
> a different qconfig.h?
>
> Thanks in advance.
>
>
> On Jan 21, 2008 12:45 PM, Piero Pezzin <piero.pezzin at gmail.com> wrote:
>
> > Of course!
> > Here you are (look for lines 904, 1489, 1520, 1647):
> >
> > If /bin/sh ../../../../libtool --silent --tag=CXX --mode=compile
> > arm-linux-g++ -DHAVE_CONFIG_H -I. -I. -I../../../..
> > -I../../../../konq-embed/kdesrc/kdecore -I../../../../konq-embed/kdesrc/kjs
> > -I../../../../konq-embed/kdesrc/kssl -I../../../../konq-embed/dropin
> > -I../../../../konq-embed/kdesrc/kdecore
> > -I../../../../konq-embed/kdesrc/kdecore/network
> > -I../../../../konq-embed/kdesrc/kssl
> > -I../../../../konq-embed/kdesrc/interfaces
> > -I../../../../konq-embed/dropin/kio -I./../.. -I./../
> > -I/home/piero/konq-embedded/include -I/home/piero/work/qt- 2.3.10/include
> > -I/home/piero/work/qtopia-free-2.2.0/qtopia/include/qtopia
> > -DQT_THREAD_SUPPORT -DQWS -D_REENTRANT -DMAX_CACHE_AGE=300 -Wno-long-long
> > -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion
> > -Wchar-subscripts -Wall -W -Wpointer-arith -fno-builtin -g3 -fno-inline
> > -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor
> > -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE
> > -DQT_NO_COMPAT -DQT_NO_ASCII_CAST  -MT libkiohttp_la.all_cc.lo -MD -MP -MF
> > ".deps/libkiohttp_la.all_cc.Tpo" -c -o libkiohttp_la.all_cc.lo
> > libkiohttp_la.all_cc.cc; \
> > then mv -f ".deps/libkiohttp_la.all_cc.Tpo"
> > ".deps/libkiohttp_la.all_cc.Plo"; else rm -f
> > ".deps/libkiohttp_la.all_cc.Tpo"; exit 1; fi
> > In file included from libkiohttp_la.all_cc.cc:2:
> > http.cc: In constructor `HTTPProtocol::HTTPProtocol(const QCString&,
> > const
> >    QCString&, const QCString&)':
> > http.cc:215: warning: assignment of negative value `-1' to `filesize_t'
> > http.cc :215: warning: argument of negative value `-1' to `long long
> > unsigned
> >    int'
> > http.cc: In member function `void
> > HTTPProtocol::resetResponseSettings()':
> > http.cc:270: warning: assignment of negative value `-1' to `filesize_t'
> > http.cc:270: warning: argument of negative value `-1' to `long long
> > unsigned
> >    int'
> > http.cc: In member function `void HTTPProtocol::davParsePropstats(const
> >    QDomNodeList&, KIO::UDSEntry&)':
> > http.cc:904: error: `namespaceURI' undeclared (first use this function)
> > http.cc:904: error: (Each undeclared identifier is reported only once
> > for each
> >    function it appears in.)
> > http.cc: In member function `void HTTPProtocol::davLock(const KURL&,
> > const
> >    QString&, const QString&, const QString&)':
> > http.cc:1489: error: `createElementNS' undeclared (first use this
> > function)
> > http.cc:1520: error: no matching function for call to
> > `QDomDocument::setContent
> >    (QByteArray&, bool)'
> > /home/piero/work/qt- 2.3.10/include/qdom.h:278: error: candidates are:
> > bool
> >    QDomDocument::setContent(const QCString&)
> > /home/piero/work/qt-2.3.10/include/qdom.h:279: error:
> > bool
> >    QDomDocument::setContent(const QByteArray&)
> > /home/piero/work/qt-2.3.10/include/qdom.h:280: error:
> > bool
> >    QDomDocument::setContent(const QString&)
> > /home/piero/work/qt-2.3.10/include/qdom.h:281: error:
> > bool
> >    QDomDocument::setContent(QIODevice*)
> > http.cc: In member function `QString HTTPProtocol::davError(int,
> > QString)':
> > http.cc:1647: error: no matching function for call to
> > `QDomDocument::setContent
> >    (QByteArray&, bool)'
> > /home/piero/work/qt- 2.3.10/include/qdom.h:278: error: candidates are:
> > bool
> >    QDomDocument::setContent(const QCString&)
> > /home/piero/work/qt-2.3.10/include/qdom.h:279: error:
> > bool
> >    QDomDocument::setContent(const QByteArray&)
> > /home/piero/work/qt-2.3.10/include/qdom.h:280: error:
> > bool
> >    QDomDocument::setContent(const QString&)
> > /home/piero/work/qt-2.3.10/include/qdom.h:281: error:
> > bool
> >    QDomDocument::setContent(QIODevice*)
> > http.cc: In member function `bool HTTPProtocol::readHeader()':
> > http.cc:3578: warning: comparison between signed and unsigned integer
> >    expressions
> > http.cc: In member function `void HTTPProtocol::addEncoding(QString,
> >    QStringList&)':
> > http.cc:3875: warning: assignment of negative value `-1' to `filesize_t'
> > http.cc:3875: warning: argument of negative value `-1' to `long long
> > unsigned
> >    int'
> > http.cc : In member function `int HTTPProtocol::readChunked()':
> > http.cc:4114: warning: comparison between signed and unsigned integer
> >    expressions
> > http.cc:4172: warning: assignment of negative value `-1' to `filesize_t'
> >
> > http.cc:4172: warning: argument of negative value `-1' to `long long
> > unsigned
> >    int'
> > http.cc: In member function `void HTTPProtocol::slotData(const
> > QByteArray&)':
> > http.cc:4228: warning: comparison between signed and unsigned integer
> >    expressions
> > http.cc:4233: warning: assignment of negative value `-1' to `filesize_t'
> > http.cc:4233: warning: argument of negative value `-1' to `long long
> > unsigned
> >    int'
> > http.cc:4249: warning: comparison between signed and unsigned integer
> >    expressions
> > http.cc: In member function `bool HTTPProtocol::readBody(bool)':
> > http.cc:4348: warning: comparison between signed and unsigned integer
> >    expressions
> > http.cc:4368: warning: assignment of negative value `-1' to `filesize_t'
> >
> > http.cc:4368: warning: argument of negative value `-1' to `long long
> > unsigned
> >    int'
> > http.cc:4395: warning: comparison between signed and unsigned integer
> >    expressions
> > http.cc:4398: warning: assignment of negative value `-1' to `filesize_t'
> >
> > http.cc:4398: warning: argument of negative value `-1' to `long long
> > unsigned
> >    int'
> > http.cc:4403: warning: assignment of negative value `-1' to `filesize_t'
> > http.cc:4403: warning: argument of negative value `-1' to `long long
> > unsigned
> >    int'
> > http.cc:4469: warning: comparison between signed and unsigned integer
> >    expressions
> >
> > I hope it helps.
> > Thanks in advance.
> >
> >
> > 2008/1/21 Max Andruschenko < maximus at softerra.com>:
> >
> > >  Could you send me log messages about an error?
> > >
> > > ----- Original Message -----
> > >  *From:* Piero Pezzin <piero.pezzin at gmail.com>
> > > *To:* For discussion of Konqueror/Embedded <konq-e at kde.org>
> > > *Sent:* Monday, January 21, 2008 1:01 PM
> > > *Subject:* Re: Problems building Konq/e with Qtopia Core
> > >
> > > Hello Max, thank you very much for your help.
> > > It worked!
> > >
> > > ...but now I have problems with the class http.cc.
> > >
> > > First of all, the line
> > >
> > > #include <qdom.h>
> > >
> > > was commented and there were problems with finding QDomElement and
> > > QDomDocument classes. So I uncommented that line, but now the problem is
> > > that we have calls to the function setContent with a bool parameter passed
> > > (line 746)
> > >
> > > multiResponse.setContent( m_bufWebDavData, true );
> > >
> > > but qdom.h defines
> > >
> > > bool setContent( const QByteArray& text );
> > >
> > > Another problem is that at line 902 there is a call to
> > > QDomElement::namespaceURI(), which is not defined in qdom.h.
> > >
> > > I recall that I'm using qt-2.3.10. Am I missing something?
> > >
> > > Thanks in advance and kind regards.
> > >
> > >
> > > 2008/1/21 Max Andruschenko < maximus at softerra.com>:
> > >
> > > >  Hello friend!
> > > >
> > > > The solution for your problem is:
> > > >
> > > > open kextsock.h
> > > > comment the lines
> > > > #ifdef Q_OS_UNIX
> > > > and it's #endif
> > > >
> > > > That's all.
> > > >
> > > > Have a nice day!
> > > >
> > > >   ----- Original Message -----
> > > >  *From:* Piero Pezzin <piero.pezzin at gmail.com>
> > > > *To:* For discussion of Konqueror/Embedded <konq-e at kde.org>
> > > > *Sent:* Friday, January 18, 2008 7:18 PM
> > > > *Subject:* Re: Problems building Konq/e with Qtopia Core
> > > >
> > > > Hello everyone.
> > > > After unnumbered attempts, I got some results: configure works fine
> > > > and make starts correctly. But it blocks at a certain point, complaining
> > > > about the file ftp.h, as you can see from the messages below:
> > > >
> > > > If /bin/sh ../../../libtool --silent --tag=CXX --mode=compile
> > > > arm-linux-g++
> > > > -DHAVE_CONFIG_H -I. -I. -I../../..
> > > > -I../../../konq-embed/kdesrc/kdecore
> > > > -I../../../konq-embed/kdesrc/kjs -I../../../konq-embed/kdesrc/kssl
> > > > -I../../../konq-embed/dropin -I../../../konq-embed/dropin/kio
> > > > -I../../../konq-embed/dropin/kssl -I../../../konq-embed/kdesrc
> > > > -I../../../konq-embed/kdesrc/kdecore
> > > > -I../../../konq-embed/kdesrc/kdecore/network
> > > > -I../../../konq-embed/kdesrc/kssl
> > > > -I../../../konq-embed/kdesrc/kssl
> > > > -I/home/piero/konq-embedded/include
> > > > -I/home/piero/work/qt-2.3.10/include
> > > > -I/home/piero/work/qtopia-free-2.2.0/qtopia/include/qtopia
> > > > -DQT_THREAD_SUPPORT -DQWS -D_REENTRANT  -Wno-long-long -Wundef -ansi
> > > >
> > > > -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion
> > > > -Wchar-subscripts
> > > > -Wall -W -Wpointer-arith -fno-builtin -g3 -fno-inline
> > > > -Wformat-security
> > > > -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-exceptions
> > > > -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT
> > > > -DQT_NO_ASCII_CAST  -MT ftp.lo -MD -MP -MF ".deps/ftp.Tpo" -c -o
> > > > ftp.lo
> > > > ftp.cc; \
> > > > then mv -f ".deps/ftp.Tpo" ".deps/ftp.Plo"; else rm -f
> > > > ".deps/ftp.Tpo"; exit
> > > > 1; fi
> > > > In file included from ftp.cc:26:
> > > > ftp.h:141: error: parse error before `{' token
> > > > ftp.h:154: error: ISO C++ forbids declaration of `m_server' with no
> > > > type
> > > > ftp.h:155: error: parse error before `}' token
> > > > ftp.h:157: error: destructors must be member functions
> > > > ftp.h: In function `void FtpSocket()':
> > > > ftp.h:157: error: `closeSocket' undeclared (first use this function)
> > > > ftp.h:157: error: (Each undeclared identifier is reported only once
> > > > for each
> > > >    function it appears in.)
> > > > ftp.h: At global scope:
> > > > ftp.h:162: error: `void closeSocket()' used prior to declaration
> > > > ftp.h:169: error: non-member function `int server()' cannot have
> > > > `const'
> > > > method
> > > >    qualifier
> > > > ftp.h:179: error: non-member function `int sock()' cannot have
> > > > `const' method
> > > >    qualifier
> > > > ftp.h: In function `int sock()':
> > > > ftp.h:179: error: `fd' undeclared (first use this function)
> > > > ftp.h: At global scope:
> > > > ftp.h:184: error: non-member function `void debugMessage(const
> > > > char*)' cannot
> > > >    have `const' method qualifier
> > > > ftp.h:189: error: non-member function `int errorMessage(int, const
> > > > char*)'
> > > >    cannot have `const' method qualifier
> > > > ftp.h:199: error: non-member function `bool setSocketOption(int,
> > > > char*,
> > > >    unsigned int)' cannot have `const' method qualifier
> > > > ftp.h: In function `int textRead()':
> > > > ftp.h:222: error: invalid use of `this' in non-member function
> > > > ftp.h: At global scope:
> > > > ftp.h:225: error: parse error before `private'
> > > > ftp.h:227: error: redefinition of `int m_server'
> > > > ftp.h:154: error: `int m_server' previously defined here
> > > > ftp.h:228: error: parse error before `}' token
> > > > ftp.h:590: error: syntax error before `*' token
> > > > ftp.h:595: error: syntax error before `*' token
> > > > ftp.cc:170: error: `pSock' was not declared in this scope
> > > > ftp.cc:171: error: `int FtpTextReader::textRead' is not a static
> > > > member of `
> > > >    class FtpTextReader'
> > > >
> > > > To me the file seems correct, but I can be wrong. I'm using
> > > > kdenox_snapshot_qt2_20070531, with qt-embedded 2.3.10 and qtopia
> > > > 2.2.0.
> > > >
> > > > Any clue?
> > > >
> > > > Thanks in advance and kind regards.
> > > >
> > > >
> > > > On Jan 15, 2008 2:48 PM, Piero Pezzin <piero.pezzin at gmail.com >
> > > > wrote:
> > > >
> > > > > Ok, thanks. If I'll fail with the building of Konq/e, I will wait
> > > > > for the next version of Qtopia.
> > > > >
> > > > >
> > > > > On Jan 15, 2008 2:12 PM, Luciano Montanaro <mikelima at cirulla.net >
> > > > > wrote:
> > > > >
> > > > > > Il Tuesday 15 January 2008 14:00:08 Piero Pezzin ha scritto:
> > > > > > > Thank you very much.
> > > > > > > So I can forget about qt and concentrate on qt/embedded and
> > > > > > qtopia. That's
> > > > > > > what I wanted to hear. There is a lot of confusion about this
> > > > > > topic..
> > > > > > >
> > > > > > > Ok, I'm going to try. I suppose it won't be a pleasant work...
> > > > > >
> > > > > >
> > > > > > Well, not exactly. Qt3 (at least Qt3.3) *used* to work
> > > > > > correctly. I think
> > > > > > there are a few issues with Qt3 and current SVN, but those
> > > > > > should be easy
> > > > > > enough to fix. What is not going to work is using Qtopia (Or Qt
> > > > > > 4, for that
> > > > > > matter). But Qt4.4 should ship with Webkit, so if you can wait
> > > > > > (it is
> > > > > > expected in Q1 2008, so within a few months now) that could
> > > > > > provide you with
> > > > > > a good browser component to start off.
> > > > > >
> > > > > > Luciano
> > > > > >
> > > > > > >
> > > > > > > 2008/1/15 Max Andruschenko <maximus at softerra.com>:
> > > > > > > >  Hi dear friend.
> > > > > > > >
> > > > > > > > I can say you a definitly wrong.
> > > > > > > > You can compile Konqueror embedded only for qtopia version
> > > > > > 2.2.0 or
> > > > > > > > 2.2.2. So, first you should to do is to get qt embedded
> > > > > > version 2.3.10 or
> > > > > > > > 2.3.12. Compile it with your cross compiler, at the end you
> > > > > > should get
> > > > > > > > qte-mt multithread library. And you should compile it with
> > > > > > rtti support,
> > > > > > > > by default it compiles without rtti.
> > > > > > > > Then compile qtopia version 2.2.0 with library qte-mt. If
> > > > > > during the
> > > > > > > > building you get qte library, remove it from the folder.
> > > > > > Also you should
> > > > > > > > compile qtopia with rtti support.
> > > > > > > > Then compile konqueror.
> > > > > > > >
> > > > > > > > Good luck!
> > > > > >
> > > > > >
> > > > > > _______________________________________________
> > > > > > konq-e mailing list
> > > > > > konq-e at kde.org
> > > > > > https://mail.kde.org/mailman/listinfo/konq-e
> > > > > >
> > > > >
> > > > >
> > > >  ------------------------------
> > > >
> > > > _______________________________________________
> > > > konq-e mailing list
> > > > konq-e at kde.org
> > > > https://mail.kde.org/mailman/listinfo/konq-e
> > > >
> > > >
> > > > _______________________________________________
> > > > konq-e mailing list
> > > > konq-e at kde.org
> > > > https://mail.kde.org/mailman/listinfo/konq-e
> > > >
> > > >
> > >  ------------------------------
> > >
> > > _______________________________________________
> > > konq-e mailing list
> > > konq-e at kde.org
> > > https://mail.kde.org/mailman/listinfo/konq-e
> > >
> > >
> > > _______________________________________________
> > > konq-e mailing list
> > > konq-e at kde.org
> > > https://mail.kde.org/mailman/listinfo/konq-e
> > >
> > >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/konq-e/attachments/20080122/48037aec/attachment-0001.html 


More information about the konq-e mailing list