Skip to content

Commit

Permalink
fix some missing lib paths, install instructions cleanup
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12787 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
kyngchaos committed Jan 17, 2010
1 parent 83c903c commit 2405eb8
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 8 deletions.
15 changes: 13 additions & 2 deletions INSTALL
Expand Up @@ -525,8 +525,7 @@ add symlinks to /usr/local:

These should then be found automatically on Leopard and above. Earlier systems
may need some help by adding '-L/usr/local/lib' to CMAKE_SHARED_LINKER_FLAGS,
CMAKE_MODULE_LINKER_FLAGS and CMAKE_EXE_LINKER_FLAGS in the cmake build, or
adding '/usr/local/lib' to LIBRARY_SEARCH_PATHS in the Xcode build.
CMAKE_MODULE_LINKER_FLAGS and CMAKE_EXE_LINKER_FLAGS in the cmake build.


4.3. Install development frameworks for QGIS dependencies
Expand Down Expand Up @@ -678,6 +677,17 @@ and (this installs by default into the Python framework, and is appropriate only
export QTDIR=/Developer/Applications/Qt
python configure.py
yes


There is a problem with the configuration that needs to be fixed now (it affect PyQwt compilation later). Edit pyqtconfig.py and change the qt_dir line to:


'qt_dir': '/usr',


Then continue with compilation and installation:


make
sudo make install

Expand Down Expand Up @@ -749,6 +759,7 @@ minor.point version, and it may be an SVN version). Remember this for QGIS and
Now for PyQwt. Still in the Terminal:


cd ../configure
python configure.py --extra-include-dirs=/usr/local/qwt-5.2.1-svn/include \
--extra-lib-dirs=/usr/local/qwt-5.2.1-svn/lib --extra-libs=qwt
make
Expand Down
15 changes: 13 additions & 2 deletions doc/INSTALL.t2t
Expand Up @@ -417,8 +417,7 @@ sudo ln -s /usr/lib/libQtCLucene.dylib /usr/local/lib/

These should then be found automatically on Leopard and above. Earlier systems
may need some help by adding '-L/usr/local/lib' to CMAKE_SHARED_LINKER_FLAGS,
CMAKE_MODULE_LINKER_FLAGS and CMAKE_EXE_LINKER_FLAGS in the cmake build, or
adding '/usr/local/lib' to LIBRARY_SEARCH_PATHS in the Xcode build.
CMAKE_MODULE_LINKER_FLAGS and CMAKE_EXE_LINKER_FLAGS in the cmake build.


== Install development frameworks for QGIS dependencies ==
Expand Down Expand Up @@ -562,6 +561,17 @@ and (this installs by default into the Python framework, and is appropriate only
export QTDIR=/Developer/Applications/Qt
python configure.py
yes
```

There is a problem with the configuration that needs to be fixed now (it affect PyQwt compilation later). Edit pyqtconfig.py and change the qt_dir line to:

```
'qt_dir': '/usr',
```

Then continue with compilation and installation:

```
make
sudo make install
```
Expand Down Expand Up @@ -632,6 +642,7 @@ minor.point version, and it may be an SVN version). Remember this for QGIS and
Now for PyQwt. Still in the Terminal:

```
cd ../configure
python configure.py --extra-include-dirs=/usr/local/qwt-5.2.1-svn/include \
--extra-lib-dirs=/usr/local/qwt-5.2.1-svn/lib --extra-libs=qwt
make
Expand Down
12 changes: 8 additions & 4 deletions mac/xcode/qgis_settings.xcconfig
@@ -1,6 +1,6 @@
// QGIS Xcode project common build settings

CURRENT_PROJECT_VERSION = 2.5.0
CURRENT_PROJECT_VERSION = 2.5.1

// SDKSYS must be set to valid value
SDKSYS = leo // tig (Tiger), leo (Leopard), snow (Snow Leopard)
Expand Down Expand Up @@ -32,6 +32,11 @@ QT_VER_MAJOR = 4 // the install_name/major version
QT_VER_MINOR = 5 // minor version
QT_FWVER = $(QT_VER_MAJOR) // the Versions/ folder name, normally same as Qt ver

QT_DIR = /usr
// this is to enable Qt libs in /usr/lib (QtUiTools, QtCLucene) to work in SDKs
// -> create symlinks to these libs in /usr/local/lib
QT_DIR_SDK = /usr/local

QT_PLUGINS_DIR = /Developer/Applications/Qt/plugins
QTBIN = /Developer/Tools/Qt
QTMOC = $(QTBIN)/moc
Expand Down Expand Up @@ -176,7 +181,6 @@ QGIS_LIB_SUBDIR = lib // qgispython lib MUST be in MacOS/lib
QGIS_DATA_SUBDIR = ../Resources
QGIS_PLUGIN_SUBDIR = ../PlugIns/qgis
HEADER_SEARCH_PATHS = $(SYMROOT)/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)/include
//LIBRARY_SEARCH_PATHS = $(PROJECT_TARGET_APP_DIR)/../Frameworks
ALWAYS_SEARCH_USER_PATHS = NO
USE_HEADERMAP = NO // else headers with same name cause confusion

Expand Down Expand Up @@ -217,7 +221,7 @@ DEFS_EXPORT = CORE_EXPORT= GUI_EXPORT= PYTHON_EXPORT= ANALYSIS_EXPORT=
// use full flags instead of Xcode includes and defs,
// since these are needed in scripts also
QT_CXXFLAGS = -DQT_DLL -DQT_SVG_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_SQL_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NO_CAST_TO_ASCII $(QTDEFS_$(CONFIGURATION)) -I/Library/Frameworks/QtCore.framework/Headers -I/Library/Frameworks/QtGui.framework/Headers -I/Library/Frameworks/QtNetwork.framework/Headers -I/Library/Frameworks/QtSql.framework/Headers -I/Library/Frameworks/QtSvg.framework/Headers -I/Library/Frameworks/QtXml.framework/Headers -I/Library/Frameworks/QtWebKit.framework/Headers
QT_INC_UITOOLS = /usr/include/QtUiTools
QT_INC_UITOOLS = $(QT_DIR)/include/QtUiTools
QTDEFS_Debug = -DQT_DEBUG
QTDEFS_Release = -DQT_NO_DEBUG
QT_CXXFLAGS_APP = $(PGSQL_HAVE)
Expand All @@ -230,7 +234,7 @@ QT_LIB_SQL = -framework QtSql
QT_LIB_WEBKIT = -framework QtWebKit
QT_LIB_DBUS = -framework QtDBus
QT_LIB_PHONON = -framework phonon
QT_LIB_UITOOLS = -lQtUiTools
QT_LIB_UITOOLS = -L$(QT_DIR_SDK)/lib -lQtUiTools
// convenience for all Qt:
QT_LIB = $(QT_LIB_CORE) $(QT_LIB_GUI) $(QT_LIB_NET) $(QT_LIB_XML) $(QT_LIB_SVG) $(QT_LIB_SQL)
// list of Qt frameworks used
Expand Down
5 changes: 5 additions & 0 deletions mac/xcode/qgis_user-template.xcconfig
Expand Up @@ -25,6 +25,11 @@
//QT_VER_MINOR = 5 // minor version, currently unused
//QT_FWVER = $(QT_VER_MAJOR) // the Versions/ folder name, normally same as Qt ver

//QT_DIR = /usr
// this is to enable Qt libs in /usr/lib (QtUiTools, QtCLucene) to work in SDKs
// -> create symlinks to these libs in /usr/local/lib
//QT_DIR_SDK = /usr/local

//QT_PLUGINS_DIR = /Developer/Applications/Qt/plugins
//QTBIN = /Developer/Tools/Qt // bin dir
//SIP_INC = /usr/local/include
Expand Down

0 comments on commit 2405eb8

Please sign in to comment.