Skip to content

Commit 058e811

Browse files
author
morb_au
committedSep 16, 2006
Windows build cross-compiling (from Linux) improvements:
* If postgres is not requested in the autogen/configure, do not attempt to build the geoprocessing and spit plugins (they have no meaning if postgres is not available). * Rearrange the acinclude (configure) test for the Qt version so that the Qt/Windows version is tested first. This resolves an issue when the Qt/Windows library is mounted on the linux compiler platform as smbfs, where case-insensitive matching was triggered; therefore allowing the Qt/Windows-style includes to be mis-detected as Qt/X11-style includes. git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5830 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

2 files changed

+18
-11
lines changed

2 files changed

+18
-11
lines changed
 

‎acinclude.m4

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,17 +153,21 @@ AC_MSG_RESULT([$QTDIR])
153153
# TODO: Use sed instead of perl
154154
QTDIR=`echo $QTDIR | perl -p -e 's/\\\\/\\//g'`
155155
156-
# Check for QT includedir
157-
if test -f $QTDIR/include/qt/qglobal.h; then
156+
# Check for QT includedir
157+
158+
# Test for the Windows version first because if if QTDIR is mounted via
159+
# smbfs to an actual Windows installation, the /include/Qt is found
160+
# case-insensitively
161+
if test -f $QTDIR/include/Qt/qglobal.h -a -f $QTDIR/src/corelib/global/qglobal.h; then
162+
# Windows: $QTDIR/include/Qt/qglobal.h includes $QTDIR/src/corelib/global/qglobal.h
163+
QTINC=$QTDIR/include
164+
QTVERTEST=$QTDIR/src/corelib/global/
165+
elif test -f $QTDIR/include/qt/qglobal.h; then
158166
QTINC=$QTDIR/include/qt
159167
QTVERTEST=$QTDIR/include/qt
160168
elif test -f $QTDIR/include/qt4/Qt/qglobal.h; then
161169
QTINC=$QTDIR/include/qt4
162170
QTVERTEST=$QTDIR/include/qt4/Qt
163-
elif test -f $QTDIR/include/Qt/qglobal.h -a -f $QTDIR/src/corelib/global/qglobal.h; then
164-
# Windows: $QTDIR/include/Qt/qglobal.h includes $QTDIR/src/corelib/global/qglobal.h
165-
QTINC=$QTDIR/include
166-
QTVERTEST=$QTDIR/src/corelib/global/
167171
elif test -f $QTDIR/include/Qt/qglobal.h; then
168172
QTINC=$QTDIR/include
169173
QTVERTEST=$QTDIR/include/Qt

‎src/Makefile.win

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,21 @@ WINSUBDIRS = core legend raster composer \
1717
providers/delimitedtext \
1818
plugins/north_arrow \
1919
plugins/copyright_label \
20-
plugins/geoprocessing \
2120
plugins/scale_bar \
2221
plugins/georeferencer \
2322
plugins/grid_maker \
2423
plugins/delimited_text \
25-
plugins/gps_importer \
26-
plugins/spit
27-
24+
plugins/gps_importer
25+
26+
ifneq ($(PG_LIB),)
27+
WINSUBDIRS += plugins/geoprocessing
28+
WINSUBDIRS += plugins/spit
29+
endif
30+
2831
ifneq ($(GRASS_BASE),)
2932
WINSUBDIRS += providers/grass plugins/grass
3033
endif
31-
34+
3235
ifneq ($(PG_LIB),)
3336
WINSUBDIRS += providers/postgres
3437
endif

0 commit comments

Comments
 (0)
Please sign in to comment.