Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. International
  3. Chinese
  4. 话说Qt5打包的程序也忒大了```
Forum Updated to NodeBB v4.3 + New Features

话说Qt5打包的程序也忒大了```

Scheduled Pinned Locked Moved Chinese
10 Posts 6 Posters 16.7k Views 1 Watching
  • 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.
  • P Offline
    P Offline
    pridesky
    wrote on last edited by
    #1

    刚使用Qt Creator创建了一个gui工程,使用QDialog的基类,任何东东都没添加,生成release的exe程序,结果如下图,
    exe程序加上所需的dll文件,既然有33M. *
    更让人郁闷的就是那个
    17536KB的icudt49.dll文件,debug和release版本既然一般大,比较了下2个文件,只有几个字节内容不同*,乖乖,敢情icudt49.dll也是debug版本啊?都想打消用你写东西的冲动了`````

    !http://static.oschina.net/uploads/space/2013/0405/210127_rCsq_179574.png!
    …………………………
    !http://static.oschina.net/uploads/space/2013/0405/210143_afkp_179574.png!

    1 Reply Last reply
    0
    • L Offline
      L Offline
      LJoker
      wrote on last edited by
      #2

      参看: http://qt-project.org/forums/viewthread/22565
      ICU是webkit用的,You can compile Qt5 with -no-icu flag set.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pridesky
        wrote on last edited by
        #3

        [quote author="LJoker" date="1366599057"]参看: http://qt-project.org/forums/viewthread/22565
        ICU是webkit用的,You can compile Qt5 with -no-icu flag set.[/quote]

        只有重新编译Qt5整个工程的办法吗?
        不能在某一个项目工程中添加一个宏来关闭icu吗?

        1 Reply Last reply
        0
        • O Offline
          O Offline
          open-src
          wrote on last edited by
          #4

          应该可以的,如果你没有用到Qtwebkit模块,直接去掉就行了……

          1 Reply Last reply
          0
          • T Offline
            T Offline
            timeout
            wrote on last edited by
            #5

            icudt49d.dll等是debug模式下利用的,发布时应编译为release版本,不需要发布。

            1 Reply Last reply
            0
            • P Offline
              P Offline
              pridesky
              wrote on last edited by
              #6

              [quote author="open-src" date="1366796437"]应该可以的,如果你没有用到Qtwebkit模块,直接去掉就行了……[/quote]

              icudt49.dll 是被Qt5Core.dll依赖的,没有icudt49.dll是用不了的. 你说怎么直接去掉?

              1 Reply Last reply
              0
              • P Offline
                P Offline
                pridesky
                wrote on last edited by
                #7

                正在重新编译Qt5源代码.

                1 Reply Last reply
                0
                • W Offline
                  W Offline
                  wdsjflkdsf
                  wrote on last edited by
                  #8

                  qt 5.2 什么时候出来哦

                  1 Reply Last reply
                  0
                  • O Offline
                    O Offline
                    open-src
                    wrote on last edited by
                    #9

                    我打包过QML应用,要带Qt库,需要几十M,不过大的程序也差不多,这个类似于Java虚拟机,你写个Java的Hello World,也需要jre的支持。不同的是,Qt开发得到的是原生的应用。

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      jiangcaiyang
                      wrote on last edited by
                      #10

                      学会编译Qt库也是一门技术活。学得深入些的人自然有想要学会自己编译Qt库的欲望。

                      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