Re: Problems building Konq/e with Qtopia Core

Stefan Eilers <[email protected]> Thu, 24 Jan 2008 15:58:20 +0100
Newsgroups gmane.comp.kde.devel.konq-e
Message-ID <[email protected]>
--===============0976163934==
Content-Type: multipart/alternative; boundary=Apple-Mail-41--458798899


--Apple-Mail-41--458798899
Content-Type: text/plain;
	charset=US-ASCII;
	format=flowed;
	delsp=yes
Content-Transfer-Encoding: 7bit

Hi Piero!
Am 23.01.2008 um 11:00 schrieb Piero Pezzin:

> Hi Stefan.
> Thank you very much for your help, but it's still not working. I  
> tried cleaning everything manually and also starting from a just  
> unpacked snapshot, but the linking problems still remain.
>
There must be any problem with your buildsystem or the patches.
If I grep my sources, I see just one occurence of  
"KNotifyClient::beep(..)" is defined in "dropin/knotifyclient.h". Can  
you confirm this? If this is true, you should check whether the  
compiler links the object file for "knotifyclient" multiple times and  
check why he does it.


> For the configuration, I intentionally disabled pcre and qpe and  
> intentionally selected a x11 gui (the class mainwindow_road.cc  
> causes compilation errors...); in the actual configure I have -- 
> enable-rtti-embedded.

You need "pcre" to get a working javascript engine.
My last compilation used "--with-gui=road" and worked quite well  
without X11. I think there aren't many people using the X11 path  
anymore. Most of them will compile for QWS.
>
> Quite frustrating situation....

I really understand your frustration! Don't give up! :)

>
>
> 2008/1/23 Stefan Eilers <[email protected]>:
> Hi Piero!
>
> What happens here:
> Konqueror is based on KDELibs. To compile on the embedded platform,  
> some parts of KDELibs have to be replaced with dropins.
> The multiple definitions are related to the fact that some classes  
> are compiled with the original KDELibs classes and some with the  
> dropins. Thus, the linker complains about it.
>
> This problem may be caused by two possible reasons:
>
> 1. The configure script applies various patches to replace the  
> original classes with the dropins. Are you sure that all patches  
> applied without problems? Did you really rebuild from a clean start?  
> Never trust a cleanup machanism (make clean) ... ;)
>
> 2. Your configure line is not correct. If I compare yours with mine,  
> there are the following entries missing:
> --enable-pcre
> --enable-qpe
> --with-gui=road
> --enable-rtti-embedded
>
> Hope that helps!
>
> Am 22.01.2008 um 16:26 schrieb Piero Pezzin:
>
>> 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.
>>
>
> Mfg., Dr. Stefan Eilers
> --  
>
> Dr.-Ing. Stefan Eilers
> Projekt Manager
>
> basysKom GmbH
> Robert-Bosch-Str. 7 | 64293 Darmstadt | Germany
> Tel: +49 6151  3968753 | Fax: -736 | Mobile: +49 170 4213459
> [email protected] | www.basyskom.de
>
> Handelsregister: Darmstadt HRB 9352
> Geschaeftsfuehrung: Eva Brucherseifer
>
>
>
> _______________________________________________
> konq-e mailing list
> [email protected]
> https://mail.kde.org/mailman/listinfo/konq-e
>
>
> _______________________________________________
> konq-e mailing list
> [email protected]
> https://mail.kde.org/mailman/listinfo/konq-e

Mfg., Dr. Stefan Eilers
--  

Dr.-Ing. Stefan Eilers
Projekt Manager

basysKom GmbH
Robert-Bosch-Str. 7 | 64293 Darmstadt | Germany
Tel: +49 6151 3968753 | Fax: -736 | Mobile: +49 170 4213459
[email protected] | www.basyskom.de

Handelsregister: Darmstadt HRB 9352
Geschaeftsfuehrung: Eva Brucherseifer



--Apple-Mail-41--458798899
Content-Type: text/html;
	charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

<html><body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; =
-webkit-line-break: after-white-space; ">Hi Piero!<br><div><div>Am =
23.01.2008 um 11:00 schrieb Piero Pezzin:</div><br =
class=3D"Apple-interchange-newline"><blockquote type=3D"cite">Hi Stefan. =
<br>Thank you very much for your help, but it's still not working. I =
tried cleaning everything manually and also starting from a just =
unpacked snapshot, but the linking problems still =
remain.</blockquote><blockquote type=3D"cite"><br></blockquote><div>There =
must be any problem with your buildsystem or the patches.</div><div>If I =
grep my sources, I see just one occurence of "KNotifyClient::beep(..)" =
is defined in "dropin/knotifyclient.h". Can you confirm this? If this is =
true, you should check whether the compiler links the object file for =
"knotifyclient" multiple times and check why he does =
it.</div><div><br></div><div><br =
class=3D"webkit-block-placeholder"></div><blockquote type=3D"cite">For =
the configuration, I intentionally disabled pcre and qpe and =
intentionally selected a x11 gui (the class mainwindow_road.cc causes =
compilation errors...); in the actual configure I have =
--enable-rtti-embedded. </blockquote><div><br></div><div>You need "pcre" =
to get a working javascript engine.&nbsp;</div><div>My last compilation =
used "--with-gui=3Droad" and worked quite well without X11. I think =
there aren't many people using the X11 path anymore. Most of them will =
compile for QWS.</div><blockquote type=3D"cite"><br>Quite frustrating =
situation....</blockquote><div><br =
class=3D"webkit-block-placeholder"></div><div>I really understand your =
frustration! Don't give up! :)</div><br><blockquote =
type=3D"cite"><br><br><div class=3D"gmail_quote">2008/1/23 Stefan Eilers =
&lt;<a =
href=3D"mailto:[email protected]">[email protected]</a>&gt=
;:<br><blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid =
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div =
style=3D"">Hi Piero!<div><br></div><div>What happens =
here:</div><div>Konqueror is based on KDELibs. To compile on the =
embedded platform, some parts of KDELibs have to be replaced with =
dropins.</div><div>The multiple definitions are related to the fact that =
some classes are compiled with the original KDELibs classes and some =
with the dropins. Thus, the linker complains about it.&nbsp; =
</div><div><br></div><div>This problem may be caused by two possible =
reasons:</div><div><br></div><div>1. The configure script applies =
various patches to replace the original classes with the dropins. Are =
you sure that all patches applied without problems? Did you really =
rebuild from a clean start? Never trust a cleanup machanism (make clean) =
... ;)&nbsp; </div><div><br></div><div>2. Your configure line is not =
correct. If I compare yours with mine, there are the following entries =
missing:</div><div><div style=3D"margin: =
0px;">--enable-pcre&nbsp;</div><div style=3D"margin: =
0px;">--enable-qpe&nbsp; </div><div style=3D"margin: =
0px;">--with-gui=3Droad&nbsp;</div><div style=3D"margin: =
0px;">--enable-rtti-embedded&nbsp;</div></div><div><br></div><div>Hope =
that helps!</div><div><br></div><div><div><div>Am 22.01.2008 um 16:26 =
schrieb Piero Pezzin: </div><div class=3D"Ih2E3d"><br><blockquote =
type=3D"cite"><span style=3D"border-collapse: separate; color: rgb(0, 0, =
0); font-family: Helvetica; font-size: 15px; font-style: normal; =
font-variant: normal; font-weight: normal; letter-spacing: normal; =
line-height: normal; text-indent: 0px; text-transform: none; =
white-space: normal; word-spacing: 0px;"> Hello =
again.<span>&nbsp;</span><br>It works forcing the define QT_NO_DOM in =
the qconfig.h contained in $QTDIR/includes. No need to recompile =
qt-embedded.<br>But, now I have other problems during linking (multiple =
definitions of KNotifyClient::beep and KStdAccel::findNext()): =
<span>&nbsp;</span><br><br>/bin/sh ../../libtool --silent --tag=3DCXX =
--mode=3Dlink arm-linux-g++&nbsp; -Wno-long-long -Wundef -ansi =
-D_XOPEN_SOURCE=3D500 -D_BSD_SOURCE -Wcast-align =
-Wconversion<span>&nbsp;</span><br>-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 <span>&nbsp;</span><br>-DQT_CLEAN_NAMESPACE =
-DQT_NO_COMPAT =
-DQT_NO_ASCII_CAST&nbsp;&nbsp;&nbsp;<span>&nbsp;</span><br>-o =
konqueror&nbsp; -L/home/piero/konq-embedded/lib =
-L/home/piero/work/qt-2.3.10/lib&nbsp;&nbsp; -export-dynamic =
konqueror.all_cc.o konqueror.all_cpp.o &nbsp;&nbsp; =
../../konq-embed/dropin/kio/libkiodropin.la =
../../konq-embed/kdesrc/khtml/ecma/libkjs_html_i.la =
../../konq-embed/kdesrc/kjs/libkjs.la&nbsp; ../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 =
<span>&nbsp;</span><br><br>../../konq-embed/kdesrc/khtml/.libs/libkhtml_i.=
a(libkhtml_i_la.all_cpp.o)(.text+0x8d0):<br>../../../konq-embed/dropin/kno=
tifyclient.h:30: multiple definition of `KNotifyClient::beep(QString =
const&amp;)' =
<br>../lib/.libs/libkonqe.a(libdropin_la.all_cpp.o)(.text+0x245c):/home/pi=
ero/work/kdenox/konq-embed/dropin/knotifyclient.h:30: first defined =
here<span>&nbsp;</span><br><br>../../konq-embed/kdesrc/khtml/.libs/libkhtm=
l_i.a(libkhtml_i_la.all_cpp.o)(.text+0x8e8): =
<br>../../../konq-embed/dropin/kstdaccel.h:30: multiple definition of =
`KStdAccel::findNext()'<br>../lib/.libs/libkonqe.a(libdropin_la.all_cpp.o)=
(.text+0xede4):/home/piero/work/kdenox/konq-embed/dropin/kstdaccel.h:30: =
first defined here <span>&nbsp;</span><br><br>Could somebody help me? =
I'm really at just one step to giving =
up....</span></blockquote></div></div><div><blockquote type=3D"cite"><span=
 style=3D"border-collapse: separate; color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 15px; font-style: normal; font-variant: normal; =
font-weight: normal; letter-spacing: normal; line-height: normal; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px;"> <br>Thanks in =
advance.<br><br></span></blockquote></div><br><div> <span =
style=3D"border-collapse: separate; border-spacing: 0px; color: rgb(0, =
0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; =
font-variant: normal; font-weight: normal; letter-spacing: normal; =
line-height: normal; text-indent: 0px; text-transform: none; =
white-space: normal; word-spacing: 0px;"> <div style=3D""><div =
class=3D"Ih2E3d"><span style=3D"border-collapse: separate; =
border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; =
font-size: 14px; font-style: normal; font-variant: normal; font-weight: =
normal; letter-spacing: normal; line-height: normal; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px;"> <div =
style=3D"margin: 0px; font-size: 12px;"><span style=3D"font-size: =
12px;"><span style=3D"font-size: 12px;">Mfg., Dr. Stefan =
Eilers</span></span></div><div style=3D"margin: 0px; font-size: =
12px;"><span style=3D"font-size: 12px;"> <span style=3D"font-size: =
12px;">--&nbsp;&nbsp;</span></span></div><div style=3D"margin: 0px; =
font-size: 12px;"><br></div><div style=3D"margin: 0px; font-size: =
12px;"><span style=3D"font-size: 12px;"><span style=3D"font-size: =
12px;">Dr.-Ing. Stefan Eilers </span></span></div><div style=3D"margin: =
0px; font-size: 12px;"><span style=3D"font-size: 12px;"><span =
style=3D"font-size: 12px;">Projekt Manager</span></span></div><div =
style=3D"margin: 0px; min-height: 14px; font-size: 12px;"> <br =
style=3D"font-size: 12px;"></div><div style=3D"margin: 0px; font-size: =
12px;"><span style=3D"font-size: 12px;"><span style=3D"font-size: =
12px;">basysKom GmbH</span></span></div><div style=3D"margin: 0px; =
font-size: 12px;"><span style=3D"font-size: 12px;"> <span =
style=3D"font-size: 12px;">Robert-Bosch-Str. 7 | 64293 Darmstadt | =
Germany</span></span></div><div style=3D"margin: 0px; font-size: =
12px;"><span style=3D"font-size: 12px;"><span style=3D"font-size: =
12px;">Tel: +49 6151&nbsp;</span> </span><span style=3D"font-size: =
12px;"><span style=3D"font-size: 12px;">3968753 | Fax: -736 | Mobile: =
+49 170 4213459&nbsp;</span></span></div><div style=3D"margin: 0px; =
font-size: 12px;"><span style=3D"font-size: 12px;"><span =
style=3D"font-size: 12px;"> <a href=3D"mailto:[email protected]" =
target=3D"_blank">[email protected]</a> | <a =
href=3D"http://www.basyskom.de" =
target=3D"_blank">www.basyskom.de</a></span></span></div><div =
style=3D"font-size: 12px;"><br style=3D"font-size: 12px;"> </div><div =
style=3D"font-size: 12px;"><span style=3D"font-size: 12px;"><span =
style=3D"font-size: 12px;">Handelsregister: Darmstadt HRB =
9352</span></span></div><div style=3D"font-size: 12px;"><span =
style=3D"font-size: 12px;"><span style=3D"font-size: 12px;"> =
Geschaeftsfuehrung: Eva =
Brucherseifer</span></span></div><br></span></div></div></span> =
</div><br></div></div><br>_______________________________________________<=
br>konq-e mailing list<br><a href=3D"mailto:[email protected]">[email protected]=
 </a><br><a href=3D"https://mail.kde.org/mailman/listinfo/konq-e" =
target=3D"_blank">https://mail.kde.org/mailman/listinfo/konq-e</a><br><br>=
</blockquote></div><br> =
_______________________________________________<br>konq-e mailing =
list<br><a href=3D"mailto:[email protected]">[email protected]</a><br><a =
href=3D"https://mail.kde.org/mailman/listinfo/konq-e">https://mail.kde.org=
/mailman/listinfo/konq-e</a><br></blockquote></div><br><div =
apple-content-edited=3D"true"> <span class=3D"Apple-style-span" =
style=3D"border-collapse: separate; border-spacing: 0px 0px; color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: =
normal; font-variant: normal; font-weight: normal; letter-spacing: =
normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><div =
style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; =
-khtml-line-break: after-white-space; "><span class=3D"Apple-style-span" =
style=3D"border-collapse: separate; border-spacing: 0px 0px; color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: =
normal; font-variant: normal; font-weight: normal; letter-spacing: =
normal; line-height: normal; text-align: auto; =
-khtml-text-decorations-in-effect: none; text-indent: 0px; =
-apple-text-size-adjust: auto; text-transform: none; orphans: 2; =
white-space: normal; widows: 2; word-spacing: 0px; "><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ; font-size: 12px; "><span class=3D"Apple-style-span" =
style=3D"font-size: 12px; "><span class=3D"Apple-style-span" =
style=3D"font-size: 12px; ">Mfg., Dr. Stefan =
Eilers</span></span></div><div style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; ; font-size: 12px; "><span =
class=3D"Apple-style-span" style=3D"font-size: 12px; "><span =
class=3D"Apple-style-span" style=3D"font-size: 12px; =
">--&nbsp;&nbsp;</span></span></div><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ; font-size: =
12px; "><br class=3D"khtml-block-placeholder"></div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ; font-size: 12px; "><span class=3D"Apple-style-span" =
style=3D"font-size: 12px; "><span class=3D"Apple-style-span" =
style=3D"font-size: 12px; ">Dr.-Ing. Stefan =
Eilers</span></span></div><div style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; ; font-size: 12px; "><span =
class=3D"Apple-style-span" style=3D"font-size: 12px; "><span =
class=3D"Apple-style-span" style=3D"font-size: 12px; ">Projekt =
Manager</span></span></div><div style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; ; =
font-size: 12px; "><br style=3D"font-size: 12px; "></div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ; font-size: 12px; "><span class=3D"Apple-style-span" =
style=3D"font-size: 12px; "><span class=3D"Apple-style-span" =
style=3D"font-size: 12px; ">basysKom GmbH</span></span></div><div =
style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; =
margin-left: 0px; ; font-size: 12px; "><span class=3D"Apple-style-span" =
style=3D"font-size: 12px; "><span class=3D"Apple-style-span" =
style=3D"font-size: 12px; ">Robert-Bosch-Str. 7 | 64293 Darmstadt | =
Germany</span></span></div><div style=3D"margin-top: 0px; margin-right: =
0px; margin-bottom: 0px; margin-left: 0px; ; font-size: 12px; "><span =
class=3D"Apple-style-span" style=3D"font-size: 12px; "><span =
class=3D"Apple-style-span" style=3D"font-size: 12px; ">Tel: +49 =
6151&nbsp;</span></span><span class=3D"Apple-style-span" =
style=3D"font-size: 12px; "><span class=3D"Apple-style-span" =
style=3D"font-size: 12px; ">3968753 | Fax: -736 | Mobile: +49 170 =
4213459&nbsp;</span></span></div><div style=3D"margin-top: 0px; =
margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ; font-size: =
12px; "><span class=3D"Apple-style-span" style=3D"font-size: 12px; =
"><span class=3D"Apple-style-span" style=3D"font-size: 12px; "><a =
href=3D"mailto:[email protected]">[email protected]</a> =
| <a =
href=3D"http://www.basyskom.de">www.basyskom.de</a></span></span></div><di=
v style=3D"font-size: 12px; "><br style=3D"font-size: 12px; "></div><div =
style=3D"font-size: 12px; "><span class=3D"Apple-style-span" =
style=3D"font-size: 12px; "><span class=3D"Apple-style-span" =
style=3D"font-size: 12px; ">Handelsregister: Darmstadt HRB =
9352</span></span></div><div style=3D"font-size: 12px; "><span =
class=3D"Apple-style-span" style=3D"font-size: 12px; "><span =
class=3D"Apple-style-span" style=3D"font-size: 12px; =
">Geschaeftsfuehrung: Eva Brucherseifer</span></span></div><br =
class=3D"Apple-interchange-newline"></span></div></span> =
</div><br></body></html>=

--Apple-Mail-41--458798899--

--===============0976163934==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
konq-e mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/konq-e

--===============0976163934==--