Looks like spatialite. I noticed that you are using an external spatialite, make sure this is at least 2.4 (the version included in QGIS), I think 2.4rc4. I don't know how homebrew handles development versions. Or use the internal spatialite (and sqlite).
On Jan 23, 2011, at 10:11 PM, Christian Spanring wrote: > Thanks! I added libgeos_c and it worked. > > However, another error keeps me from finishing a clean build: > > Undefined symbols: > "_spatial_ref_sys_init", referenced from: > QgsOfflineEditing::initializeSpatialMetadata(sqlite3*) in > offline_editing.cpp.o > "_spatialite_init", referenced from: > QgsOfflineEditing::createSpatialiteDB(QString const&) in > offline_editing.cpp.o > QgsOfflineEditing::convertToOfflineProject(QString const&, > QString const&, QStringList const&)in offline_editing.cpp.o > ld: symbol(s) not found > collect2: ld returned 1 exit status > make[2]: *** [src/plugins/offline_editing/libofflineeditingplugin.so] Error 1 > make[1]: *** > [src/plugins/offline_editing/CMakeFiles/offlineeditingplugin.dir/all] > Error 2 > make[1]: *** Waiting for unfinished jobs.... > [ 73%] Built target georefplugin > [ 99%] Built target QGIS > make: *** [all] Error 2 > > Any idea what could causing that? > > "make -i install" seems to build a working QGIS otherwise. > > When opening a Shapefile I get the following error in my built QGIS: > > Could not open CRS database > /Users/me/Applications/QGIS.app/Contents/MacOS/../Resources/resources/srs.db<br>Error(14): > unable to open database file > > It might be related to the build error above, at least I see a > "_spatial_ref_sys_init" in the output. > > Thanks! > > Christian > > On Sun, Jan 23, 2011 at 8:19 PM, William Kyngesburye > <[email protected]> wrote: >> 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 >>> [email protected] >>> 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 >> >> >> > _______________________________________________ > Qgis-user mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/qgis-user ----- William Kyngesburye <kyngchaos*at*kyngchaos*dot*com> http://www.kyngchaos.com/ "I ache, therefore I am. Or in my case - I am, therefore I ache." - Marvin _______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user
