Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. 如何用Qt静态库编译程序
Forum Updated to NodeBB v4.3 + New Features

如何用Qt静态库编译程序

Scheduled Pinned Locked Moved Unsolved Chinese
4 Posts 2 Posters 4.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Su JIanbang
    wrote on last edited by
    #1

    程序代码就是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 to qt_static_plugin_QICOPlugin()' hello_plugin_import.cpp:(.text.startup+0x28): undefined reference to qt_static_plugin_QEglFSKmsIntegrationPlugin()'
    。。。

    1 Reply Last reply
    0
    • jiancaiyangJ Offline
      jiancaiyangJ Offline
      jiancaiyang
      wrote on last edited by
      #2

      你Qt静态编译没有成功,你还要返回一下你以前静态编译的Qt,需要处理这个事情。

      我们自己的论坛:http://qtdream.com
      擅长三维角色仿真动画。

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Su JIanbang
        wrote on last edited by
        #3

        你好,这个程序是在QtCreator创建的,没有加入自己的代码。静态库的编译过程没有出错,最后也有出现.a的库文件。之前编译过动态库,也成功。这次就想使用静态库,然后就在.configure过程中加了-static。谢谢!

        jiancaiyangJ 1 Reply Last reply
        0
        • S Su JIanbang

          你好,这个程序是在QtCreator创建的,没有加入自己的代码。静态库的编译过程没有出错,最后也有出现.a的库文件。之前编译过动态库,也成功。这次就想使用静态库,然后就在.configure过程中加了-static。谢谢!

          jiancaiyangJ Offline
          jiancaiyangJ Offline
          jiancaiyang
          wrote on last edited by
          #4

          @Su-JIanbang 那么指定一下qico插件的编译试试看?

          我们自己的论坛:http://qtdream.com
          擅长三维角色仿真动画。

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved