Skip to content

Commit

Permalink
update install/build documentation & cmake updates:
Browse files Browse the repository at this point in the history
- split install document into multiple files
- reorder chapters
- update msvc part (shortend add reference to OSGeo4W dependencies)
- update CMake files to look in $ENV{LIB} and $ENV{INCLUDE}


git-svn-id: http://svn.osgeo.org/qgis/trunk@14440 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Oct 27, 2010
1 parent eeda546 commit 1fdd283
Show file tree
Hide file tree
Showing 17 changed files with 2,630 additions and 4,038 deletions.
2,591 changes: 914 additions & 1,677 deletions INSTALL

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion cmake/FindFcgi.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ FIND_PATH(FCGI_INCLUDE_DIR
/usr/include/fastcgi
#MSVC
"$ENV{LIB_DIR}/include"
$ENV{INCLUDE}
#mingw
c:/msys/local/include
)
FIND_LIBRARY(FCGI_LIBRARY NAMES fcgi PATHS
FIND_LIBRARY(FCGI_LIBRARY NAMES fcgi libfcgi PATHS
/usr/local/lib
/usr/lib
#MSVC
"$ENV{LIB_DIR}/lib"
$ENV{LIB}
#mingw
c:/msys/local/lib
)
Expand Down
8 changes: 2 additions & 6 deletions cmake/FindGDAL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,9 @@ IF(WIN32)
ENDIF (MINGW)

IF (MSVC)
SET (
GDAL_INCLUDE_DIR
"$ENV{LIB_DIR}/include/gdal"
CACHE STRING INTERNAL
)
FIND_PATH(GDAL_INCLUDE_DIR gdal.h "$ENV{LIB_DIR}/include/gdal" $ENV{INCLUDE})
FIND_LIBRARY(GDAL_LIBRARY NAMES gdal gdal_i PATHS
"$ENV{LIB_DIR}/lib" /usr/lib c:/msys/local/lib)
"$ENV{LIB_DIR}/lib" $ENV{LIB} /usr/lib c:/msys/local/lib)
IF (GDAL_LIBRARY)
SET (
GDAL_LIBRARY;odbc32;odbccp32
Expand Down
9 changes: 3 additions & 6 deletions cmake/FindGEOS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,10 @@ IF(WIN32)
ENDIF (MINGW)

IF (MSVC)
SET (
GEOS_INCLUDE_DIR
"$ENV{LIB_DIR}/include"
CACHE STRING INTERNAL
)
FIND_PATH(GEOS_INCLUDE_DIR geos_c.h $ENV{LIB_DIR}/include $ENV{INCLUDE})
FIND_LIBRARY(GEOS_LIBRARY NAMES geos geos_c_i PATHS
"$ENV{LIB_DIR}/lib"
"$ENV{LIB}/lib"
$ENV{LIB}
#mingw
c:/msys/local/lib
NO_DEFAULT_PATH
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindGRASS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ ENDMACRO (CHECK_GRASS)
# search for grass installations

# list of paths which to search - user's choice as first
SET (GRASS_PATHS ${GRASS_PREFIX} /usr/lib/grass c:/msys/local /opt/grass)
SET (GRASS_PATHS ${GRASS_PREFIX} /usr/lib/grass c:/msys/local /opt/grass $ENV{GRASS_PREFIX})

# mac-specific path
IF (APPLE)
Expand Down
5 changes: 4 additions & 1 deletion cmake/FindGSL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,19 @@ IF(WIN32)
FIND_PATH(GSL_INCLUDE_DIR gsl/gsl_blas.h
${GSL_MINGW_PREFIX}/include
${GSL_MSVC_PREFIX}/include
$ENV{INCLUDE}
)

FIND_LIBRARY(GSL_LIB gsl PATHS
${GSL_MINGW_PREFIX}/lib
${GSL_MSVC_PREFIX}/lib
$ENV{LIB}
)

FIND_LIBRARY(GSLCBLAS_LIB gslcblas cblas PATHS
${GSL_MINGW_PREFIX}/lib
${GSL_MSVC_PREFIX}/lib
$ENV{LIB}
)

SET (GSL_LIBRARIES ${GSL_LIB} ${GSLCBLAS_LIB})
Expand Down Expand Up @@ -119,7 +122,7 @@ IF(GSL_LIBRARIES)

SET(GSL_FOUND 1)

MESSAGE(STATUS "Using GSL from ${GSL_PREFIX}")
MESSAGE(STATUS "Found GSL: ${GSL_LIB}")

ENDIF(GSL_INCLUDE_DIR OR GSL_CXX_FLAGS)
ENDIF(GSL_LIBRARIES)
Expand Down
2 changes: 2 additions & 0 deletions cmake/FindIconv.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
# searching for the same item do nothing.
FIND_PATH(ICONV_INCLUDE_DIR iconv.h
"$ENV{LIB_DIR}/include"
$ENV{INCLUDE}
/usr/local/include
/usr/include
#mingw
Expand All @@ -29,6 +30,7 @@ FIND_PATH(ICONV_INCLUDE_DIR iconv.h)

FIND_LIBRARY(ICONV_LIBRARY NAMES iconv PATHS
"$ENV{LIB_DIR}/lib"
$ENV{LIB}
/usr/local/lib
/usr/lib
#mingw
Expand Down
5 changes: 4 additions & 1 deletion cmake/FindQWT.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,22 @@ FIND_PATH(QWT_INCLUDE_DIR qwt.h
/usr/include
/usr/local/include
"$ENV{LIB_DIR}/include"
"$ENV{INCLUDE}"
PATH_SUFFIXES qwt-qt4 qwt
)
FIND_LIBRARY(QWT_LIBRARY qwt PATHS
FIND_LIBRARY(QWT_LIBRARY NAMES qwt qwtn5 PATHS
/usr/lib
/usr/local/lib
"$ENV{LIB_DIR}/lib"
"$ENV{LIB}/lib"
)
IF (NOT QWT_LIBRARY)
# try using ubuntu lib naming
FIND_LIBRARY(QWT_LIBRARY qwt-qt4 PATHS
/usr/lib
/usr/local/lib
"$ENV{LIB_DIR}/lib"
"$ENV{LIB}/lib"
)
ENDIF (NOT QWT_LIBRARY)

Expand Down
Loading

0 comments on commit 1fdd283

Please sign in to comment.