PDA

View Full Version : making qt libs as static problem under Linux(ubuntu)



addu
2nd November 2009, 12:22
Hi All

I tried to make my qt libs as static



i had run following command at Qt directory

./configure -static -prefix /home/ongobiz/qtsdk-2009.04/qt

but it showing error message


.obj/release-static/main.o: In function `global constructors keyed to _Z27updateLastPagesOnUnregisterR15QHelpEngineCoreR K7QString':
main.cpp:(.text+0x9): undefined reference to `qt_plugin_instance_qsqlite()'
collect2: ld returned 1 exit status
make[4]: *** [../../../../bin/assistant] Error 1
make[4]: Leaving directory `/home/ongobiz/qtsdk-2009.04/qt/tools/assistant/tools/assistant'
make[3]: *** [sub-assistant-install_subtargets-ordered] Error 2
make[3]: Leaving directory `/home/ongobiz/qtsdk-2009.04/qt/tools/assistant/tools'
make[2]: *** [sub-tools-install_subtargets-ordered] Error 2
make[2]: Leaving directory `/home/ongobiz/qtsdk-2009.04/qt/tools/assistant'
make[1]: *** [sub-assistant-install_subtargets-ordered] Error 2
make[1]: Leaving directory `/home/ongobiz/qtsdk-2009.04/qt/tools'
make: *** [sub-tools-install_subtargets-ordered] Error 2


please help me

Thanks

Yuvaraj R

alpeb
1st February 2010, 23:55
Hi there,

I'm having exactly the same problem, but on the "make" step. Did you find any solution? I'd appreciate your help.

Cheers,
Alejandro

ketest
16th February 2010, 22:35
I ran into a similar problem using gmake.
For my applications I did not need sqlite so I added to my configure line "-no-sql-sqlite -no-sql-sqlite2 -no-sql-sqlite_symbian".
Note you will need to run gmake confclean then your ./configure ......... then gmake then gmake install. I believe this should be the same using make.

You can also try to add sqlite using add/remove software or however you do this for your distro. Add any items that have sqlite development packages. Not sure which one relates to this problem. Remember to run through the entire process from the beginning stating with gmake confclean.

Kevin

alpeb
18th February 2010, 16:43
cool thanks, it's working like a charm now :)