[Qgis-developer] OS X compile issues

Tom Elwertowski telwertowski at comcast.net
Fri Jun 9 00:51:23 EDT 2006


Gary Sherman wrote:
> Here's my latest issue:
> then mv -f ".deps/qgis-main.Tpo" ".deps/qgis-main.Po"; else rm -f
> ".deps/qgis-main.Tpo"; exit 1; fi
> /bin/sh ../../libtool --mode=link g++  -g -O2   -o qgis -framework
> ApplicationServices qgis-main.o ../raster/libqgis_raster.la
> ../legend/libqgis_legend.la ../composer/libqgis_composer.la
> -L/usr/local/Trolltech/Qt-4.1.1/lib -Xlinker
> -F/usr/local/Trolltech/Qt-4.1.1/lib -framework Qt3Support -framework
> QtCore -framework QtGui -framework QtNetwork -framework QtXml -framework
> QtSvg -L/usr/local/Trolltech/Qt-4.1.1/lib -lQtDesigner -lQtTest
> -L/usr/local/lib -lgdal  -L/usr/local/lib -lgeos  -lproj -lsqlite3
> libqgis_gui.la ../core/libqgis_core.la
> libtool: link: cannot find the library `' or unhandled argument
> `-F/Users/gsherman/development/qt-mac-opensource-src-4.1.1/lib'
> make[1]: *** [qgis] Error 1
> 
> Qt is install in /usr/local/Trolltech/Qt-4.1.1.

The fix for this is to remove or comment the line beginning with 
"dependency_libs=" in $QTDIR/lib/libQtTest.la.

On a Mac, the message "libtool: link: cannot find the library `' or 
unhandled argument" usually means that some unrecognized option, usually 
-F and/or -framework has been found in some .la file.

Because the flags propagate from one .la file to another, several qgis 
.la files must be deleted after fixing libQtTest.la. I believe there are 
three: libqgis_gui.la, libqgis_raster.la and I forget the third.

Also, I recommend Qt-4.1.3 as the Mac minimum since there are some 
Q3CanvasView refresh bugs and printing doesn't work at all in lower 
versions.

Tom



More information about the Qgis-developer mailing list