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

Christian Spanring cspanring at gmail.com
Sun Jan 23 16:08:36 PST 2011


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



More information about the Qgis-user mailing list