[Qgis-user] Problems compiling QGIS under OS X 10.8.2

Sasha Cuerda sasha.cuerda at gmail.com
Sat Oct 13 13:58:48 PDT 2012


Got it working! 

Thanks for the help.

-Sasha

On Oct 13, 2012, at 2:38 PM, Etienne Tourigny <etourigny.dev at gmail.com> wrote:

> try adding
> 
> -DPYTHON_LIBRARY=<path_to_python_libdir>/libpython2.7.so
> 
> I use that option in linux, not sure if it works on mac osx
> 
> also, have you followed KyngChaos' instructions for building?
> 
> Etienne
> 
> On Sat, Oct 13, 2012 at 3:12 PM, Sasha Cuerda <sasha.cuerda at gmail.com> wrote:
>> Hello,
>> 
>> I am having some difficulties compiling QGIS and I'm hoping someone here can
>> help…I have a hunch that the source of this problem is with Python but I'm
>> not very sophisticated when it comes to  application development.
>> 
>> I have installed all required dependencies using a combination of Homebrew
>> and manual installation (adding symbolic links when necessary).
>> 
>> I followed the recommendations of homebrew in regards to SIP and issued the
>> following command prior to initiating the build:
>> 
>> export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH
>> 
>> I am trying to use the following command to initiate the build:
>> 
>> cmake -D CMAKE_INSTALL_PREFIX=/volumes/Main/Applications \
>> -D CMAKE_BUILD_TYPE=MinSizeRel \
>> -D ENABLE_TESTS=FALSE \
>> -D WITH_INTERNAL_SPATIALITE=FALSE \
>> -D WITH_PYSPATIALITE=FALSE \
>> -D WITH_GRASS=TRUE \
>> -D GRASS_PREFIX=/usr/local/bin/ \
>> -D QWT_LIBRARY=/usr/local/Cellar/qwt/6.0.1/lib/qwt.framework \
>> -D QWT_INCLUDE_DIR=/usr/local/Cellar/qwt/6.0.1/lib/qwt.framework/Headers \
>> -D SPATIALINDEX_LIBRARY=/usr/local/lib/libspatialindex.dylib \
>> -D SPATIALINDEX_INCLUDE_DIR=/usr/local/include/spatialindex \
>> -D BISON_EXECUTABLE=/usr/local/bin/bison \
>> -D EXPAT_LIBRARY=/usr/local/lib/libexpat.dylib \
>> -D EXPAT_INCLUDE_DIR=/usr/local/include \
>> -D GEOS_INCLUDE_DIR=/usr/local/include \
>> -D GEOS_LIBRARY=/usr/local/lib/libgeos_c.dylib \
>> -D GDAL_INCLUDE_DIR=/usr/local/include \
>> -D GDAL_LIBRARY=/usr/local/lib/libgdal.dylib \
>> -D GSL_INCLUDE_DIR=/usr/local/include \
>> -D GSL_LIBRARIES=/usr/local/lib/libgsl.dylib \
>> -D POSTGRES_INCLUDE_DIR=/usr/local/include \
>> -D POSTGRES_LIBRARY=/usr/local/lib/libpq.dylib \
>> ..
>> 
>> I get the following output:
>> 
>> -- Quantum GIS version: 1.9.0 Master (10900)
>> -- Could not find GRASS
>> -- Found Proj: /Library/Frameworks/PROJ.framework
>> -- Found GEOS: /usr/local/lib/libgeos_c.dylib
>> -- Found GDAL: /usr/local/lib/libgdal.dylib (1.9.2)
>> -- Found Expat: /usr/local/lib/libexpat.dylib
>> -- Found Spatialindex: /usr/local/lib/libspatialindex.dylib
>> -- Found Qwt: /usr/local/Cellar/qwt/6.0.1/lib/qwt.framework (6.0.1)
>> -- Found Sqlite3: /Library/Frameworks/sqlite3.framework
>> -- Found PostgreSQL: /usr/local/lib/libpq.dylib
>> -- Touch support disabled
>> -- Pedantic compiler settings enabled
>> /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python:
>> can't open file '_find_lib_python_py-NOTFOUND': [Errno 2] No such file or
>> directory
>> -- Found Python executable: /usr/local/bin/python2.7
>> -- Found Python version:
>> -- Found Python library: /usr/local/lib/python2.7/
>> /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python:
>> can't open file '_find_sip_py-NOTFOUND': [Errno 2] No such file or directory
>> CMake Error at cmake/FindSIP.cmake:54 (MESSAGE):
>>  Could not find SIP
>> Call Stack (most recent call first):
>>  CMakeLists.txt:494 (FIND_PACKAGE)
>> 
>> If I run python FindSIP.py from the CMAKE folder, I get this:
>> 
>> sip_version:040e00
>> sip_version_num:265728
>> sip_version_str:4.14
>> sip_bin:/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/bin/sip
>> default_sip_dir:/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/share/sip
>> sip_inc_dir:/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/include/python2.7
>> sip_mod_dir:/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
>> 
>> Which is what I would expect.
>> 
>> Any idea what is going on here and how to fix it?
>> 
>> Thanks in advance for any help you can provide.
>> 
>> -Sasha
>> 
>> 
>> 
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>> 




More information about the Qgis-user mailing list