[Qgis-user] Make error while building QGIS against Homebrew dependencies on Mac OS 10.6

William Kyngesburye woklist at kyngchaos.com
Sun Jan 23 17:19:50 PST 2011


Those undefined symbols are all from GEOS... ah, Qgis uses the GEOS C API, which is libgeos_c.

On Jan 23, 2011, at 6:08 PM, Christian Spanring wrote:

> Hi,
> 
> I'm trying to compile QGIS (svn trunk rev 15066) against dependencies
> installed and managedy by homebrew on Mac OS 10.6, and run basically
> into following make error:
> 
> Linking CXX shared library libqgis_core.dylib
> [https://gist.github.com/792508#LID581]
> Undefined symbols:
> ...
> ld: symbol(s) not found [https://gist.github.com/792508#LID1001]
> collect2: ld returned 1 exit status
> make[2]: *** [src/core/libqgis_core.1.7.0.dylib] Error 1
> make[1]: *** [src/core/CMakeFiles/qgis_core.dir/all] Error 2
> make: *** [all] Error 2
> 
> For some dependencies I needed to add cmake path variables.
> 
>> -D QWT_LIBRARY=/usr/local/lib/libqwt.dylib \
>> -D QWT_INCLUDE_DIR=/usr/local/include \
>> -D GEOS_INCLUDE_DIR=/usr/local/include \
>> -D GEOS_LIBRARY=/usr/local/lib/libgeos.dylib \
>> -D GDAL_INCLUDE_DIR=/usr/local/include \
>> -D GDAL_LIBRARY=/usr/local/lib/libgdal.dylib \
> 
> ...others were found in homebrew's Cellar, which shouldn't matter I believe.
> 
> -- Found PostgreSQL: /usr/local/Cellar/postgresql/9.0.2/lib/libpq.dylib
> 
> The only dependency that I didn't add is PyQwt. According to the build
> docs it's only required by ".. GPS tracking feature uses Qwt. Some
> popular 3rd-party plugins use PyQwt.", correct?
> 
> The entire make shell output is here: https://gist.github.com/792508
> 
> Any hint what's going wrong is highly appreciated!
> 
> Thanks,
> Christian
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"Oh, look, I seem to have fallen down a deep, dark hole.  Now what does that remind me of?  Ah, yes - life."

- Marvin





More information about the Qgis-user mailing list