File: msys2-qt.md

package info (click to toggle)
wxwidgets3.2 3.2.8%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 179,460 kB
  • sloc: cpp: 992,335; ansic: 102,143; makefile: 51,623; sh: 11,572; python: 5,590; perl: 1,563; php: 326; xml: 200; javascript: 181
file content (118 lines) | stat: -rw-r--r-- 4,241 bytes parent folder | download | duplicates (4)
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
Building wxQT port with Win32 MSys2 Qt5 backend {#plat_msw_msys2_qt}
------------------------------------------------

The MSys2 website is http://www.msys2.org/

These building steps are NOT the normal way to build MSys2 MinGW packages.
But, they are a way the wxWidgets developers can test that wxWidgets
can build the wxQT/Win32 libraries under MSys2 MinGW.

For the MSys2 way please see
  https://github.com/msys2/MINGW-packages and
  https://www.msys2.org/wiki/Creating-Packages/

Building steps:

A. Install the MSys2 mingw packages needed to build wxQT/Win32 using the
     configure/make build method.
   From the MSys2 MinGW prompt:

        pacman -S --needed --noconfirm make
        pacman -S --needed --noconfirm ${MINGW_PACKAGE_PREFIX}-libjpeg-turbo
        pacman -S --needed --noconfirm ${MINGW_PACKAGE_PREFIX}-libpng
        pacman -S --needed --noconfirm ${MINGW_PACKAGE_PREFIX}-libtiff
        pacman -S --needed --noconfirm ${MINGW_PACKAGE_PREFIX}-gcc
        pacman -S --needed --noconfirm ${MINGW_PACKAGE_PREFIX}-pkg-config
        pacman -S --needed --noconfirm ${MINGW_PACKAGE_PREFIX}-qt5


    Packages that are needed but are normally installed already.

        pacman -S --needed --noconfirm ${MINGW_PACKAGE_PREFIX}-gcc-libs
        pacman -S --needed --noconfirm ${MINGW_PACKAGE_PREFIX}-expat
        pacman -S --needed --noconfirm ${MINGW_PACKAGE_PREFIX}-xz
        pacman -S --needed --noconfirm ${MINGW_PACKAGE_PREFIX}-zlib
        pacman -S --needed --noconfirm ${MINGW_PACKAGE_PREFIX}-gdk-pixbuf2


B. Build the wxQT/Win32 static library
    1. Open MSys2 MinGW Prompt
       (These steps were tested on MinGW64; but, should work under MinGW32)
    2. Use the cd command to change directory to the wxWidgets top folder.

    3. Create the "build-${MSYSTEM_CARCH}-qt-static" folder to build the static libraries

            mkdir -p build-${MSYSTEM_CARCH}-qt-static

    4. Configure wxWidgets
       Option "--disable-precomp-headers" is NOT needed.
       It is being used to test for compile issues.

       Remove configure option "--disable-wxdib" to set wxUSE_WXDIB to 1.
       At the time these directions where written wxUSE_WXDIB set to 1
         resulted in build error in dnd sample and run-time errors in
         other samples.

            cd build-${MSYSTEM_CARCH}-qt-static && \
            ../configure --with-qt \
                --disable-wxdib \
                --disable-shared \
                --disable-precomp-headers \
            && cd ..

    5. clean the wxQT static libraries

            cd build-${MSYSTEM_CARCH}-qt-static && make clean && cd ..

    6. make the wxQT static libraries

            cd build-${MSYSTEM_CARCH}-qt-static && make && cd ..


C.  Build and run the minimal static sample
    1. Clean the minimal sample

            cd build-${MSYSTEM_CARCH}-qt-static/samples/minimal && make clean && cd ../../..

    2. Build the minimal sample

            cd build-${MSYSTEM_CARCH}-qt-static/samples/minimal && make && cd ../../..

    3. Run the minimal sample

            ./build-${MSYSTEM_CARCH}-qt-static/samples/minimal/minimal.exe


D. Build most of the static samples
    1. Clean most of the static samples

            cd build-${MSYSTEM_CARCH}-qt-static/samples && make clean && cd ../..

    2. Build most of the static samples

            cd build-${MSYSTEM_CARCH}-qt-static/samples && make && cd ../..


E.  Run the drawing static sample

        cd samples/drawing && ../../build-${MSYSTEM_CARCH}-qt-static/samples/drawing/drawing.exe && cd ../..

F.  Run the splash static sample

        cd samples/splash && ../../build-${MSYSTEM_CARCH}-qt-static/samples/splash/splash.exe && cd ../..

G.  Run the widgets static sample

        cd samples/widgets && ../../build-${MSYSTEM_CARCH}-qt-static/samples/widgets/widgets.exe && cd ../..

H.  Run the toolbar static sample

        cd samples/toolbar && ../../build-${MSYSTEM_CARCH}-qt-static/samples/toolbar/toolbar.exe && cd ../..

I.  Run the image static sample

        cd samples/image && ../../build-${MSYSTEM_CARCH}-qt-static/samples/image/image.exe && cd ../..

J.  Run the dnd static sample

        cd samples/dnd && ../../build-${MSYSTEM_CARCH}-qt-static/samples/dnd/dnd.exe && cd ../..