making qt libs as static problem under Linux(ubuntu)
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
Code:
.obj/release-static/main.o: In function `global constructors keyed to _Z27updateLastPagesOnUnregisterR15QHelpEngineCoreRK7QString':
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
Re: making qt libs as static problem under Linux(ubuntu)
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
Re: making qt libs as static problem under Linux(ubuntu)
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
Re: making qt libs as static problem under Linux(ubuntu)
cool thanks, it's working like a charm now :)