[Qgis-developer] Mac OS Build Architecture Setting?

Dan Dittmann qgis at dandittmann.org
Thu Feb 16 20:13:57 EST 2012


I have been attempting to build theversion 1.9 of QGIS for Mac OS 10.7.3 and have been unable to complete the compile.

I suspect the problem likely is an architecture setting which I am overlooking. Based on the errors pasted below, is it an architecture setting or something else? The output from cmake appears to imply everything is ok dependency wise. The log from cmake is at the bottom.


I am attempting the build with a mix of William Kyngesburye's libraries and MacPorts Libraries. Below I have included what I am using for cmake and the build.

cmake -D CMAKE_INSTALL_PREFIX=~/Applications -D CMAKE_BUILD_TYPE=MinSizeRel -D WITH_INTERNAL_SPATIALITE=FALSE -D WITH_MAPSERVER=TRUE -D SIP_BINARY_PATH=/opt/local/bin/sip-2.7 QWT_LIBRARY=/opt/local/lib/libqwt.dylib -D QWT_INCLUDE_DIR=/opt/local/include/qwt -D CMAKE_OSX_ARCHITECTURES=x86_64  ..

make -j 2	(I have a dual core processor)


 While attempting the build I receive the following errors.

Thanks,
Dan


============= Errors dumped to terminal =============

[…]

Scanning dependencies of target ogrprovider
[ 41%] Building CXX object src/providers/ogr/CMakeFiles/ogrprovider.dir/qgsogrprovider.cpp.o
[ 41%] Building CXX object src/gui/CMakeFiles/qgis_gui.dir/symbology-ng/qgsrendererv2propertiesdialog.cpp.o
[ 41%] Building CXX object src/providers/ogr/CMakeFiles/ogrprovider.dir/qgsogrdataitems.cpp.o
[ 41%] Building CXX object src/gui/CMakeFiles/qgis_gui.dir/symbology-ng/qgsstylev2managerdialog.cpp.o
[ 41%] Building CXX object src/providers/ogr/CMakeFiles/ogrprovider.dir/moc_qgsogrprovider.cxx.o
[ 41%] Building CXX object src/providers/ogr/CMakeFiles/ogrprovider.dir/moc_qgsogrdataitems.cxx.o
[ 41%] Building CXX object src/gui/CMakeFiles/qgis_gui.dir/symbology-ng/qgssymbollevelsv2dialog.cpp.o
Linking CXX shared module ../../../PlugIns/qgis/libogrprovider.so
Undefined symbols for architecture x86_64:
  "_OGR_L_SetIgnoredFields", referenced from:
      QgsOgrProvider::setRelevantFields(bool, QList<int> const&)in qgsogrprovider.cpp.o
  "_OGR_L_DeleteField", referenced from:
      QgsOgrProvider::deleteAttributes(QSet<int> const&)in qgsogrprovider.cpp.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[2]: *** [PlugIns/qgis/libogrprovider.so] Error 1
make[1]: *** [src/providers/ogr/CMakeFiles/ogrprovider.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....


[ Build continues for a period of time]


Linking CXX shared library ../../output/lib/qgis_gui.framework/Versions/1.9/qgis_gui
[ 48%] Built target qgis_gui
make: *** [all] Error 2

================================




============= cmake output =============

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Quantum GIS version: 1.9.90 Alpha (10990)
-- Could not find GRASS
-- Looking for openpty
-- Looking for openpty - found
-- Found Proj: /Library/Frameworks/PROJ.framework
-- Found GEOS: /Library/Frameworks/GEOS.framework
-- Found GDAL: /Library/Frameworks/GDAL.framework
-- Found Expat: /usr/lib/libexpat.dylib
-- Found Qwt: /opt/local/lib/libqwt.dylib (5.2.1)
-- Found Sqlite3: /Library/Frameworks/SQLite3.framework
-- Found PostgreSQL: /usr/lib/libpq.dylib
-- Found SpatiaLite: /Library/Frameworks/SQLite3.framework
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt4: /opt/local/bin/qmake (found suitable version "4.7.4", required is "4.4.0")
-- Pedantic compiler settings enabled
-- Found PythonInterp: /opt/local/bin/python (found version "2.7.2")
-- Found Python executable: /opt/local/bin/python
-- Found Python version: 2.7.2
-- Found Python library: -framework Python
-- Found SIP version: 4.13.1
-- Found PyQt4 version: 4.9
fatal: Not a git repository (or any of the parent directories): .git
-- Found GSL: /Library/Frameworks/GSL.framework
-- Found FCGI: /opt/local/lib/libfcgi.dylib
-- Ctest Binary Directory  set to: /Users/dandittmann/Desktop/qgis-Quantum-GIS-5099c70/build/output/bin
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/dandittmann/Desktop/qgis-Quantum-GIS-5099c70/build






More information about the Qgis-developer mailing list