Problem with static cross compilation.

Luciano Montanaro mikelima at cirulla.net
Sat Oct 23 14:53:51 CEST 2004


On Friday 22 October 2004 11:02, Jean-Philippe Francois wrote:
> I am trying to compile the cvs version, with kdelibs KDE_3_1_5_RELEASE.
>
> If I use
> HOSTCC=gcc CC=arm-linux-gcc CXX=arm-linux-uclibc-g++ ./configure
> --host=i686-linux --target=arm-linux --prefix=/usr/local
> --enable-static  --disable-debug  --enable-qt-embedded --enable-embedded
> --disable-javascript --disable-pcre --without-ssl --disable-bookmarks
> --disable-printing --disable-ftp --disable-sortdir
>
> The compilation ends successfully, but the final binary is not
> statically linked.
>
> But if I add --disable-shared configure options, the build fails at link
> stage with the following message.
>
> /bin/sh ../../libtool --silent --mode=link --tag=CXX
> arm-linux-uclibc-g++  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi
> -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion
> -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG
> -DNO_DEBUG -O2 -Wformat-security -Wmissing-format-attribute
> -fno-exceptions -fno-check-new -fno-common -fno-rtti
> -DQT_NO_ASCII_CAST    -o konqueror  -L/usr/local/lib
> -L/usr/src/ARM/qt-embedded-free-3.3.3/lib  -export-dynamic main.o
> mainwindowbase.o mainwindebug.o htmlview.o popuphandler.o view.o run.o
> browseriface.o bookmarks.o preferences.o preferencesimpl.o
> mainwindow_qpe.o mainwindow_x11.o mainwindow_kiosk.o mainwindow_tv.o
> xmltree.o bookmarkeditor.o bookmarkeditorimpl.o bookmarkedit.o
> bookmarkeditimpl.o  ./../dropin/kio/libkiodropin.la
> ../../konq-embed/kdesrc/khtml/ecma/libkjs_html_i.la
> ../../konq-embed/kdesrc/kjs/libkjs.la  ../lib/libkonqe.la
> ./../kdesrc/kparts/libkparts.la ./../dropin/libdropin.la
> ./../dropin/kparts/libkpartsdropin.la
> ../../konq-embed/kdesrc/khtml/libkhtml_i.la
> ../dropin/kssl/libkssldropin.la ../kdesrc/kssl/libkssl.la
>
> ../../konq-embed/kdesrc/khtml/.libs/libkhtml_i.a(khtml_part.o)
(.text+0x11c14): In function `KHTMLPart::overURL(QString const&, QString 
const&, bool)':
> : undefined reference to `KMimeType::defaultMimeType()'
>
> ../../konq-embed/kdesrc/khtml/.libs/libkhtml_i.a(khtml_part.o)
(.text+0x1d5bc): In function `KHTMLPart::createPart(QWidget*, char const*, 
QObject*, char const*, QString const&, QString&, QStringList&, QStringList 
const&)':
> : undefined reference to `KTrader::self()'
>
> ../../konq-embed/kdesrc/khtml/.libs/libkhtml_i.a(khtml_part.o)
(.text+0x1d5f8): In function `KHTMLPart::createPart(QWidget*, char const*, 
QObject*, char const*, QString const&, QString&, QStringList&, QStringList 
const&)':
> : undefined reference to `KTrader::query(QString const&, QString const&,
>
> QString const&, QString const&)'
>
> ../../konq-embed/kdesrc/khtml/.libs/libkhtml_i.a(html_formimpl.o)
(.text+0x199c): In function `DOM::HTMLFormElementImpl::formData(bool&)':
> : undefined reference to `KMimeType::defaultMimeType()'
>
> ../../konq-embed/kdesrc/khtml/.libs/libkhtml_i.a(render_frames.o)
(.text+0x3208): In function 
`khtml::RenderPartObject::slotPartLoadingErrorNotify()':
> : undefined reference to `KMimeType::defaultMimeType()'
>
> collect2: ld returned 1 exit status
>
> How can I build konqeror embedded as a static app ?

As you verified yourself, building a static version of konqueror-embedded does 
not currently work. I might try to see what needs to be done to fix it, but 
is not really a priority for me to make it work. I'd be glad to accept 
patches to restore the --enable-static functionality though.

Luciano


-- 
Luciano Montanaro //
                \X/ mikelima at virgilio.it
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/konq-e/attachments/20041023/ffbd60e4/attachment.pgp


More information about the konq-e mailing list