Hi Larry I finally have the time to sit down and try to get your recipe for building / debugging QGIS under QtCreator a try, but I cant seem to find your notes on this. I have two screenies showing some of the settings but not quite enough info to get it working. Currently I am getting this (see [2] below) output when trying to run cmake in QtCreator. I am building using options in [1].
I also made this dirty hack so that some python libs could be found [3]. Can you point me in the right direction of any notes etc you have? Regards Tim [1] -DCMAKE_INSTALL_PREFIX="/Users/timlinux/Applications/" -DCMAKE_BUILD_TYPE="RelWithDebInfo" -DWITH_ASTYLE=FALSE -DENABLE_TESTS=TRUE -DWITH_INTERNAL_SPATIALITE=FALSE -DWITH_PYSPATIALITE=FALSE -DSPATIALINDEX_INCLUDE_DIR=/usr/local/include/spatialindex -DSPATIALINDEX_LIBRARY=/usr/local/Cellar/libspatialite/4.1.1/libspatialindex.dylib -DQWT_LIBRARY=/usr/local/Cellar/qwt/6.1.0/lib/qwt.framework/Versions/Current/qwt -DQWT_INCLUDE_DIR=/usr/local/Cellar/qwt/6.1.0/lib/qwt.framework/Versions/Current/Headers/ -DBISON_EXECUTABLE=/usr/local/Cellar/bison/3.0.2/bin/bison -DWITH_MAPSERVER=TRUE -DWITH_APIDOC=FALSE -DQGIS_MACAPP_BUNDLE=2 -DSIP_BINARY_PATH=/usr/local/bin -DPYTHON_LIBRARIES=/Library/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib -DWITH_MAPSERVER=False [2] CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: QWTPOLAR_INCLUDE_DIR used as include directory in directory /Users/timlinux/dev/cpp/QGIS/src/app used as include directory in directory /Users/timlinux/dev/cpp/QGIS/src/app used as include directory in directory /Users/timlinux/dev/cpp/QGIS/src/app QWTPOLAR_LIBRARY linked by target "QGIS" in directory /Users/timlinux/dev/cpp/QGIS/src/app linked by target "qgis_app" in directory /Users/timlinux/dev/cpp/QGIS/src/app linked by target "qgis_qgisappclipboard" in directory /Users/timlinux/dev/cpp/QGIS/tests/src/app /usr/bin/python: can't open file '_find_qsci_py-NOTFOUND': [Errno 2] No such file or directory /usr/bin/python: can't open file '_find_pyqt_py-NOTFOUND': [Errno 2] No such file or directory -- QGIS version: 2.3.0 Master (20300) -- Could not find GRASS -- Found Proj: /usr/local/lib/libproj.dylib -- Found GEOS: /usr/local/Cellar/geos/3.4.2/lib/libgeos_c.dylib -- Found GDAL: /usr/local/Cellar/gdal/1.10.1/lib/libgdal.dylib (1.10.1) -- Found Expat: /usr/local/lib/libexpat.dylib -- Found Spatialindex: /usr/local/Cellar/libspatialite/4.1.1/libspatialindex.dylib -- Found Qwt: /usr/local/Cellar/qwt/6.1.0/lib/qwt.framework/Versions/Current/qwt (6.1.0) -- Found Sqlite3: /usr/lib/libsqlite3.dylib -- Found PostgreSQL: /usr/local/Cellar/postgresql/9.3.2/lib/libpq.dylib -- Found SpatiaLite: /usr/local/lib/libspatialite.dylib -- Found Qt version: 4.8.6 -- Touch support disabled -- Found QScintilla2: /usr/local/lib/libqscintilla2.dylib (2.8) -- Pedantic compiler settings enabled -- Debug output enabled -- Found Python executable: /usr/bin/python -- Found Python version: 2.7.5 -- Found Python library: -framework Python -- Found SIP version: 4.15.4 -- Found GSL: -L/usr/local/Cellar/gsl/1.16/lib -lgsl -lgslcblas -- txt2tags not found - disabled -- Ctest Binary Directory set to: /Users/timlinux/dev/cpp/QGIS/build-osx/output/bin -- Configuring incomplete, errors occurred! See also "/Users/timlinux/dev/cpp/QGIS/build-osx/CMakeFiles/CMakeOutput.log". See also "/Users/timlinux/dev/cpp/QGIS/build-osx/CMakeFiles/CMakeError.log". [3] Tims-MacBook-Pro:QGIS timlinux$ git diff diff --git a/cmake/FindPyQt.py b/cmake/FindPyQt.py index 256c4a6..b658cde 100644 --- a/cmake/FindPyQt.py +++ b/cmake/FindPyQt.py @@ -29,6 +29,7 @@ # Copyright (c) 2007, Simon Edwards <[email protected]> # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. +import sys import PyQt4.pyqtconfig diff --git a/cmake/FindSIP.py b/cmake/FindSIP.py index e291baa..7eb8d68 100644 --- a/cmake/FindSIP.py +++ b/cmake/FindSIP.py @@ -31,6 +31,8 @@ # For details see the accompanying COPYING-CMAKE-SCRIPTS file. import sys +sys.path.append('/usr/local/lib/python2.7/site-packages/') +print sys.path import sipconfig sipcfg = sipconfig.Configuration() -- Tim Sutton - QGIS Project Steering Committee Member ============================================== Please do not email me off-list with technical support questions. Using the lists will gain more exposure for your issues and the knowledge surrounding your issue will be shared with all. Irc: timlinux on #qgis at freenode.net ==============================================
_______________________________________________ Qgis-developer mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-developer
