Skip to content

Commit bb2d8c3

Browse files
author
homann
committed
Updated CMake 0.8 on win32
git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_8_0@6545 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 3e76a97 commit bb2d8c3

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

README_windows.txt

+15-6
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,12 @@ As a background read http://wiki.qgis.org/qgiswiki/Building_with_CMake
154154

155155
*) Make sure %QTDIR%\bin;c:\msys\local\bin;c:\msys\bin;c;\msys\mingw\bin is in your Path
156156

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.
158163

159164
*) > mkdir build
160165

@@ -169,11 +174,15 @@ As a background read http://wiki.qgis.org/qgiswiki/Building_with_CMake
169174
installation destination and/or set 'Debug'.
170175

171176

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.
173183

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...
177186

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
179188
qgis.exe binary is installed to, if not already done so.

0 commit comments

Comments
 (0)