cross compiling problems

wim delvaux wim.delvaux at adaptiveplanet.com
Mon Jan 5 19:44:31 CET 2004


On Monday 05 January 2004 19:31, Brian Austin wrote:
> Same problem.  Here is my workaround (quick and very dirty)
> mkdir /usr/lib/jpeg
> mv /usr/lib/libjpeg* /usr/lib/jpeg
> compile.....
> Dont forget to move the libs back into place when your done (things dont
> work without them)
>
> My problem stems form .deb arm packages in my build root.  the la file
> links to /usr/lib


	Yes I think so too.  I have debian too, However I get a lot of link problems

	Here's the output of the first few error links.  Mind also the warning about 
moved jpeg libs
/bin/sh ../../libtool --silent --mode=link --tag=CXX arm-linux-g++  
-Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W -Wpointer-arith 
-Wmissing-p
rototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align 
-Wconversion -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-rtti
 -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT -DQT_NO_ASCII_CAST    -o konqueror  -L/
mnt/buro/fs.permanent/home/u19809/projects/Qt/qt-embedded-2/arm_gcc2/lib -L/
usr/
local/kde/lib  -L/usr/local/arm/2.95.3/arm-linux/lib  main.o mainwindowbase.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 
xmltree.o bookmarkeditor.o bookmarkeditorimpl.o bookmarkedit.o 
bookmarkeditimpl.o m
ainwindebug.o   ../../konq-embed/kdesrc/khtml/ecma/libkjs_html_i.la ../../
konq-embed/kdesrc/kjs/libkjs.la  ../../konq-embed/kdesrc/khtml/libkhtml_i.la
libtool: link: warning: library `/usr/local/arm/2.95.3/arm-linux/lib/
libjpeg.la' was moved.
libtool: link: warning: library `/usr/local/arm/2.95.3/arm-linux/lib/
libjpeg.la' was moved.
main.o: In function `main':
main.o(.text+0x1428): undefined reference to 
`KCookieServer::KCookieServer(void)'
main.o(.text+0x1834): undefined reference to 
`KCookieServer::~KCookieServer(void)'
../../konq-embed/kdesrc/khtml/ecma/.libs/libkjs_html_i.a(kjs_dom.o): In 
function `L14441':
kjs_dom.o(.text+0x1592c): undefined reference to 
`DOM::HTMLDocument::operator=(DOM::Node const &)'
../../konq-embed/kdesrc/khtml/ecma/.libs/libkjs_html_i.a(kjs_dom.o): In 
function `L14448':
kjs_dom.o(.text+0x159cc): undefined reference to `DOM::HTMLDocument virtual 
table'
../../konq-embed/kdesrc/khtml/ecma/.libs/libkjs_html_i.a(kjs_dom.o): In 
function `L14487':
kjs_dom.o(.text+0x15ca4): undefined reference to 
`DOM::HTMLDocument::~HTMLDocument(void)'
../../konq-embed/kdesrc/khtml/ecma/.libs/libkjs_html_i.a(kjs_dom.o): In 
function `L14510':
kjs_dom.o(.text+0x15da4): undefined reference to 
`DOM::HTMLDocument::~HTMLDocument(void)'
../../konq-embed/kdesrc/khtml/ecma/.libs/libkjs_html_i.a(kjs_window.o): In 
function `L12350':



>
> this work around compiles the browser fine.
>
> On Mon, 2004-01-05 at 12:09, wim delvaux wrote:
> > Hi all,
> >
> > compilation runs just find but linkage seems to want to pickup my
> > /usr/lib version of jpeg  and not the .../arm/ version.
> >
> > Strangely enough all the intermediate libraries that need jpeg seem to
> > pickup the proper one.
> >
> > Only the final konqueror build insists on /usr/lib.
> >
> > My configure is ..
> >
> > ./configure \
> >           --host=arm-linux \
> >           --disable-debug \
> >           --enable-embedded \
> >           --enable-qtopia \
> >           --without-ssl \
> >           --with-extra-includes=/usr/local/arm/2.95.3/arm-linux/include \
> >           --with-extra-libs=/usr/local/arm/2.95.3/arm-linux/lib \
> >           --with-qt-dir=$BASED/qt-embedded-2/arm_gcc2 \
> >           --enable-mt
> >
> > Command being executed when linking konqueror
> >
> > make[5]: Entering directory
> > `/mnt/buro/fs.permanent/home/u19809/projects/Qt/
> > konqueror/konqueror-embedded-snapshot-20030705/konq-embed/src'
> > /bin/sh ../../libtool --silent --mode=link --tag=CXX arm-linux-g++
> > -Wnon-virtual-dtor -Wno-long-long -Wundef -Wall -pedantic -W
> > -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi
> > -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -DNDEBUG
> > -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-rtti
> > -DQT_CLEAN_NAMESPACE -DQT_NO_COMPAT
> > -DQT_NO_ASCII_CAST    -o konqueror  -L/mnt/buro/fs.permanent/home/u19809/
> > projects/Qt/qt-embedded-2/arm_gcc2/lib -L/usr/local/kde/lib 
> > -L/usr/local/ arm/2.95.3/arm-linux/lib  main.o mainwindowbase.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 xmltree.o
> > bookmarkeditor.o bookmarkeditorimpl.o bookmarkedit.o bookmarkeditimpl.o
> > mainwindebug.o   ../../konq-embed/kdesrc/khtml/ecma/libkjs_html_i.la
> > ../../ konq-embed/kdesrc/kjs/libkjs.la 
> > ../../konq-embed/kdesrc/khtml/libkhtml_i.la /usr/lib/libjpeg.so: could
> > not read symbols: Invalid operation
> > collect2: ld returned 1 exit status
> > make[5]: *** [konqueror] Error 1
> > make[5]: Leaving directory
> > `/mnt/buro/fs.permanent/home/u19809/projects/Qt/
> > konqueror/konqueror-embedded-snapshot-20030705/konq-embed/src'
> > make[4]: *** [all-recursive] Error 1
> >
> > _______________________________________________
> > 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



More information about the konq-e mailing list