2013-09-21 666 views
1

我正在使用Qt 5.1創建應用程序。不幸的是,有一個dll文件(icudt51.dll)的大小超過20 MB的依賴項,並且在我的應用程序中也不需要。解決此問題的方法是使用縮小的icudt文件。以下website生成文件的縮減版本,但該文件爲dat格式。我怎樣才能得到該dll文件。如何將.dat文件轉換爲.dll文件

回答

0

從該網頁的說明:數據庫包已經被下載

後有使用新包裝兩種常用方法。

Rebuild ICU: Under this scenario, you unzip the data package into icu/source/data/in to replace the existing data package that comes with a standard source code distribution. Then you use "gmake clean install". This will clean up your previous build of ICU, and it will install the packages as specified by the configure options that you originally used to build ICU. 

我相信你需要更換產生的.dat文件到源文件夾ICU /源/數據/在後重建DLL。 .dat文件不是一個dll,而是數據。

0

有一個更好的解決方案。通過用「no-icu」重新編譯你的Qt來簡單地刪除ICU支持,然後用no-icu構建Qt重新編譯你的應用程序。

這應該讓你開始:

配置-opensource -confirm許可證-debug和釋放-static -platform的win32-G ++ -C++ 11個-make庫-qt-的libjpeg -qt-libpng的-no-openssl -no-icu -qt-zlib -qt-pcre -no-iconv -nomake示例-nomake測試-qt-style-windowsxp -qt-style-windowsvista -no-opengl -no-openvg -no- dbus

mingw32-make -j8