[Solved] QT WebKit Important Problem
-
Hello everyone
I'm Crosscompiling QT embedded 4.5.3 on my ubuntu 9.04 for AVR32 Linux.
I get following error when compiling the library after several hours
@avr32-linux-g++ -fno-exceptions -Wl,-O1 -Wl,-rpath,/usr/local/Trolltech/QtEmbedded-4.5.3-avr32/lib -Wl,-rpath,/usr/local/Trolltech/QtEmbedded-4.5.3-avr32/lib -o formextractor .obj/release-shared-emb-avr32/main.o .obj/release-shared-emb-avr32/formextractor.o .obj/release-shared-emb-avr32/mainwindow.o .obj/release-shared-emb-avr32/moc_formextractor.o .obj/release-shared-emb-avr32/moc_mainwindow.o .obj/release-shared-emb-avr32/qrc_formextractor.o -L/home/avr32/Desktop/qt-embedded-linux-opensource-src-4.5.3/lib -lQtWebKit -L/home/avr32/Desktop/qt-embedded-linux-opensource-src-4.5.3/lib -lQtGui -lpng -lQtNetwork -lQtCore -lz -lm -lrt -ldl -lpthread
/home/avr32/Desktop/qt-embedded-linux-opensource-src-4.5.3/lib/libQtWebKit.so: undefined reference totrunc' collect2: ld returned 1 exit status make[3]: *** [formextractor] Error 1 make[3]: Leaving directory
/home/avr32/Desktop/qt-embedded-linux-opensource-src-4.5.3/examples/webkit/formextractor'
make[2]: *** [sub-formextractor-make_default] Error 2
make[2]: Leaving directory/home/avr32/Desktop/qt-embedded-linux-opensource-src-4.5.3/examples/webkit' make[1]: *** [sub-webkit-make_default] Error 2 make[1]: Leaving directory
/home/avr32/Desktop/qt-embedded-linux-opensource-src-4.5.3/examples'
make: *** [sub-examples-make_default-ordered] Error 2
avr32@avr32-desktop:~/Desktop/qt-embedded-linux-opensource-src-4.5.3$@
can some one HELP me fixing this issue its important for my work :(
-
It is failing in the examples, no big deal. Do you get the same error when linking your own application with QtWebKit?
The error is a bit suspicious: undefined reference to `trunc'.
Finally, why do you use Qt 4.5.x? Qt 4.6 has been there for a while, and the release candidate of Qt 4.7.0 is available as well. I am not sure Qt 4.5 is still officially supported.
-
most examples are compiled without error, binarys are in the folder,
are the examples compiled at the end? or are there any important things "make" should do to finish the installation. can i force make to go further after this error ? make -i -k don't actually work it still ends the installation after this "trunc" error
i didnt found a 4.6 embedded source ball on nokias FTP server, but i should try compiling a newer version.
-
are the examples compiled at the end?
Yep. You can do make install to install what you already have.
i didnt found a 4.6 embedded source ball on nokias FTP server, but i should try compiling a newer version.
You can always get the source from Gitorious, or just download the qt-everywhere package and compile for embedded.
-
so when examples are at the end, the library itself should work so far ? right?
but when i compile my code , that i developed under another machine with 4.6.2 or something like that, i get an error
@
ics.h:25: error: 'QDate' has not been declared
ics.cpp:9: error: no match for 'operator=' in '((ics*)this)->ics::Who = ""'
../../buildroot-avr32-v2.2.0-beta2-atstk1005/build_avr32/staging_dir/include/QtCore/qstringlist.h:64: note: candidates are: QStringList& QStringList::operator=(const QStringList&)@seems that the part in which QDate / Qstringlist is , isnt compiled right way. every other code line works well
-
[quote author="lednes" date="1284647407"]so when examples are at the end, the library itself should work so far ? right?
[/quote]
Yep.[quote author="lednes" date="1284647407"]
@
ics.h:25: error: 'QDate' has not been declared
@
[/quote]This is a compile issue, not a link issue. It seems you get wrong with your headers. Have you #included QDate? Have you installed the headers?
-
Cool, I am glad to know it is fixed. :)
Thinking about it, if you have linking error with WebKit but you don't use WebKit in your project, you can add -no-webkit to configure. That will speed-up the build, and avoid you the problems.