[Qgis-developer] Building QGIS in Mac OS X (Mountain Lion i.e. 10.8) with QtSQL support

Noli Sicad nsicad at gmail.com
Thu Aug 2 02:43:47 PDT 2012


Hi Larry,

Thanks for these pointers.

>> What are the changes in this instruction?
>
> Unless you're feeling really adventurous and want use a different
> route, you'll want to first test whether the Qt and kyngchaos.com
> frameworks for 10.6/10.7 install and work as is. Not sure how much
> testing William has done with the new Mac OS. I'll probably be trying
> to compile QGIS on 10.8 next week.

I already installed William frameworks before I update to ML (10.8). I
think the frameworks survive after the ML install (update). Only
python site packages did not survived after the update to ML (10.8).

We need to add 10.8 in Qt global (i.e. qglobal.h), as you can see it
here (below):

http://stevenyue.com/2011/10/27/install-pyqt4-qt-4-7-on-mac-osx-lion/

> After those are correctly installed an validated, there are a couple
> of optional items you can skip on your first compiling to save
> yourself some time:
>
> 5.4.10. Optional Dependencies: libfcgi
> 5.4.11. Optional Dependencies: OSG & osgEarth
>
> You may have compile errors regarding libspatialindex, see this
> discussion for additional info:
> http://osgeo-org.1560.n6.nabble.com/Config-fails-on-find-of-spatialindex-library-tt4939392.html#a4940948
>
>
>> I want also to include QtSQL support so MSSQL can work as well for Mac OS
>> X.
>>
>> How do you include QtSQL support (ie. qsql_odbc.h support for MSSQL)
>> for Mac OS X build?
>
> The Mac QGIS.app includes bundled Qt frameworks (though not their
> header files), so Qt ODBC support should be functional if the
> libqsqlodbc.dylib plugin is included. I saw the discussion you brought
> up about it previously [1], but it is not currently being bundled.
> Here is a temporary git patch file you can apply that adds the
> bundling [2]. The method I used has redundant code in it, which can be
> fixed up once you report back that it actually works (I don't have
> access to a MSSQL server to test).
>
> [1]
> http://osgeo-org.1560.n6.nabble.com/Compiling-QGIS-with-iODBC-driver-library-for-MacOS-X-and-Linux-td4987085.html#none
> [2] https://dl.dropbox.com/u/4058089/qgis/libqsqlodbc-mac_patch.diff
>

Placing the libqsqlodbc.dylib in the /plugins/sqldrivers/ in QGIS.app
probably will work.

I don't have MSSQL to test as well. However, I can probably visit some
people around here in Melbourne who are using QGIS for Mac OS X who
have MSSQL servers.

William's QGIS for Mac OS X works fine in Mountaion Lion (ML) 10.8.

ML 10.8 is better (stable) than Lion (10.7.4).

Thanks.

Noli


More information about the Qgis-developer mailing list