@@ -154,7 +154,12 @@ As a background read http://wiki.qgis.org/qgiswiki/Building_with_CMake
154
154
155
155
*) Make sure %QTDIR%\bin;c:\msys\local\bin;c:\msys\bin;c;\msys\mingw\bin is in your Path
156
156
157
- *) Start a cmd.exe window ( Start -> Run -> cmd.exe ) if you don't have one already.
157
+ *) If you have a MinGW installation somewhere besides in
158
+ c:\msys\mingw, be sure to remove it from your Path. Safest is to
159
+ rename the MinGW installation directory. Mixing of libraries is not good.
160
+
161
+ *) Start a cmd.exe window ( Start -> Run -> cmd.exe ) if you don't have
162
+ one already.
158
163
159
164
*) > mkdir build
160
165
@@ -169,11 +174,15 @@ As a background read http://wiki.qgis.org/qgiswiki/Building_with_CMake
169
174
installation destination and/or set 'Debug'.
170
175
171
176
172
- *) > make.exe install
177
+ *) Now, start sh.exe and run 'make.exe install' from within that shell
178
+
179
+ It should now start compiling. The reason for this is that we use
180
+ the mingw compiler included in the msys tar, but that compiler is
181
+ not found from within sh.exe. (MSYS magic). So, if you delete
182
+ CMakeCache, you have to generate it from cmd.exe.
173
183
174
- It should now start compiling.
175
-
176
- ALTERNATIVE) Start sh.exe now, and write 'make install' from within sh.exe
184
+ Why not run make from cmd.exe? Because creating 'qgssvnversion.h'
185
+ requires the 'mv' command...
177
186
178
- *) (Optional) Make sure to copy all .dll:s needed to the same directory as the
187
+ *) (Make sure to copy all .dll:s needed to the same directory as the
179
188
qgis.exe binary is installed to, if not already done so.
0 commit comments