This repository has been archived by the owner on Aug 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
mingw_qt_dll_setup.bat
48 lines (42 loc) · 1.75 KB
/
mingw_qt_dll_setup.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
:: Necessary Qt dlls are packaged with every release.
:: These dlls are not included in the SVN.
:: They need to be copied into the dev area from the Qt install.
:: It is important to understand that the Qt-SDK is different from the Qt-Framework
:: Qt-SDK is an integrated development environment that is shipped with the MinGW 4.4 compiler
:: Qt-Framework is simply the Qt runtime dlls built against your own MinGW
:: Both can be found at: http://qt.nokia.com/downloads
:: If you build SimC with QT-Framework, then you need to use dlls from Qt-Framework
:: If you build SimC with the Qt SDK, then you need to use dlls from Qt-SDK
:: As of this writing, the default locations from which to gather the dlls are:
:: Qt-SDK: c:\QtSDK\Desktop\Qt\4.8.0\mingw
:: Qt-Framework: C:\Qt\4.8.0
:: Update the qt_dir as necessary
set qt_dir=C:\Code\QtSDK\Desktop\Qt\4.8.1\mingw
set mingw_dir=D:\Code\MinGW
:: IMPORTANT NOTE FOR DEBUGGING
:: This script will ONLY copy the optimized Qt dlls
:: The Qt SDK simcqt.pro file will only use optimize dlls for Release
:: This script needs to be smarter if you wish to use the interactive debugger in the Qt SDK
:: The debug Qt dlls are named: Qt___d4.dll
:: Removing existing dlls
del /q imageformats
del /q phonon4.dll
del /q QtCore4.dll
del /q QtGui4.dll
del /q QtNetwork4.dll
del /q QtWebKit4.dll
del /q QtXmlPatterns4.dll
del /q mingw*.dll
del /q libgcc*.dll
del /q libstdc++*.dll
:: Copying new dlls
xcopy /I %qt_dir%\plugins\imageformats imageformats
xcopy %qt_dir%\bin\phonon4.dll
xcopy %qt_dir%\bin\QtCore4.dll
xcopy %qt_dir%\bin\QtGui4.dll
xcopy %qt_dir%\bin\QtNetwork4.dll
xcopy %qt_dir%\bin\QtWebKit4.dll
:: Copy MingW runtime DLLs
xcopy %mingw_dir%\bin\mingw*.dll .
xcopy %mingw_dir%\bin\libgcc*.dll .
xcopy %mingw_dir%\bin\libstdc++*.dll .