Unsolved 如何用Qt静态库编译程序
-
程序代码就是Qt Creator自身生成的,在此之前通过.configure 生成了Qt静态库,qmake指向静态库,一旦编译就会出现以下错误。
hello_plugin_import.o: In function
_GLOBAL__sub_I_hello_plugin_import.cpp': hello_plugin_import.cpp:(.text.startup+0x8): undefined reference to
qt_static_plugin_QEglFSIntegrationPlugin()'
hello_plugin_import.cpp:(.text.startup+0x1a): undefined reference toqt_static_plugin_QICOPlugin()' hello_plugin_import.cpp:(.text.startup+0x28): undefined reference to
qt_static_plugin_QEglFSKmsIntegrationPlugin()'
。。。 -
你Qt静态编译没有成功,你还要返回一下你以前静态编译的Qt,需要处理这个事情。
-
你好,这个程序是在QtCreator创建的,没有加入自己的代码。静态库的编译过程没有出错,最后也有出现.a的库文件。之前编译过动态库,也成功。这次就想使用静态库,然后就在.configure过程中加了-static。谢谢!
-
@Su-JIanbang 那么指定一下qico插件的编译试试看?