[Qgis-developer] QGIS 0.11.0 'Metis' - Call for packaging

Tom Elwertowski telwertowski at comcast.net
Wed Jul 16 02:19:57 EDT 2008


William,

Building on 10.4 for 10.4 works for me.

Your problem appears to be the same one Gary encountered back in April. It's caused by the FIND_LIBRARY ApplicationServices in the top level CMakeLists.txt. It adds -F/System/Library/Frameworks to the command line and this searches the real /System even though -isysroot is specified. It picks up a 10.5 header and then tries to find additional headers in the 10.4 sdk.

A hack fix is to add the prefix /Developer/SDKs/MacOSX10.4u.sdk to the path
APP_SERVICES_LIBRARY:FILEPATH=/System/Library/Frameworks/ApplicationServices.framework
in CMakeCache.txt.

An alternative hack is to replace 
FIND_LIBRARY( APP_SERVICES_LIBRARY ApplicationServices)
in the root CMakeLists.txt with
SET( APP_SERVICES_LIBRARY "-framework ApplicationServices")

The latter will bypass the find, not generate the -F/System/Library/Frameworks and simply add the -framework argument to the command line. This assumes that some sdk will always be specified.

You should have no problems if you wait until the Tiger system becomes available however either of these hacks may get your build done sooner.

Tom


William Kyngesburye wrote:
> My build on Leopard worked, but I have an error for Tiger.  I'm building 
> on Leopard, using the 10.4 SDK to build for Tiger.
> 
> OSX 10.5.3
> Xcode 3.1
> Qt 4.3.5
> 
> I don't have handy access to a Tiger system with an older Xcode to see 
> if it's a problem in the 10.4 the SDK. (I have one at work, but it's 
> busy)  Do you still build on Tiger?  Any problems?  I might be able to 
> try at work in a couple days.
> 
> Here is the error:
> 
> Scanning dependencies of target qgis
> [ 39%] Building CXX object src/app/CMakeFiles/qgis.dir/main.o
> /usr/bin/c++   -arch ppc -arch i386 -isysroot 
> /Developer/SDKs/MacOSX10.4u.sdk   -O3 -DNDEBUG -DQT_NO_DEBUG 
> -I/Library/Frameworks/QtSvg.framework/Headers 
> -I/Library/Frameworks/QtGui.framework/Headers 
> -I/Library/Frameworks/QtXml.framework/Headers 
> -I/Library/Frameworks/QtSql.framework/Headers 
> -I/Library/Frameworks/QtNetwork.framework/Headers 
> -I/Library/Frameworks/QtCore.framework/Headers 
> -I/Users/Shared/src/qgis/svn/qgis-0.11.0/build-tig 
> -I/Users/Shared/src/qgis/svn/qgis-0.11.0/src/app 
> -I/Users/Shared/src/qgis/svn/qgis-0.11.0/src/app/composer 
> -I/Users/Shared/src/qgis/svn/qgis-0.11.0/src/app/legend 
> -I/Users/Shared/src/qgis/svn/qgis-0.11.0/build-tig/src/app 
> -I/Users/Shared/src/qgis/svn/qgis-0.11.0/build-tig/src/app/../ui 
> -I/Users/Shared/src/qgis/svn/qgis-0.11.0/src/app/../core 
> -I/Users/Shared/src/qgis/svn/qgis-0.11.0/src/app/../core/raster 
> -I/Users/Shared/src/qgis/svn/qgis-0.11.0/src/app/../core/renderer 
> -I/Users/Shared/src/qgis/svn/qgis-0.11.0/src/app/../core/symbology 
> -I/Users/Shared/src/qgis/svn/qgis-0.11.0/src/app/../gui 
> -I/Users/Shared/src/qgis/svn/qgis-0.11.0/src/app/../plugins 
> -I/Users/Shared/src/qgis/svn/qgis-0.11.0/src/app/../python 
> -I/Library/Frameworks/PROJ.framework/Headers 
> -I/Library/Frameworks/SQLite3.framework/Headers 
> -I/Library/Frameworks/geos.framework/unix/include 
> -I/Library/Frameworks/GDAL.framework/Headers 
> -I/usr/local/pgsql/include   -F/Library/Frameworks -L/Library/Frameworks 
> -DQT_SHARED -DQT_SVG_LIB -DQT_GUI_LIB -DQT_XML_LIB -DQT_SQL_LIB 
> -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NO_CAST_TO_ASCII -DCORE_EXPORT= 
> -DGUI_EXPORT= -DPYTHON_EXPORT= -F/Library/Frameworks 
> -F/System/Library/Frameworks  -o src/app/CMakeFiles/qgis.dir/main.o -c 
> /Users/Shared/src/qgis/svn/qgis-0.11.0/src/app/main.cpp
> In file included from 
> /System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/Headers/CFNetwork.h:27, 
> 
>                  from 
> /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:37, 
> 
>                  from 
> /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:20, 
> 
>                  from 
> /Users/Shared/src/qgis/svn/qgis-0.11.0/src/app/main.cpp:61:
> /System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/Headers/CFNetworkErrors.h:27:26: 
> error: Availability.h: No such file or directory
> In file included from 
> /System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/Headers/CFNetwork.h:27, 
> 
>                  from 
> /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:37, 
> 
>                  from 
> /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:20, 
> 
>                  from 
> /Users/Shared/src/qgis/svn/qgis-0.11.0/src/app/main.cpp:61:
> /System/Library/Frameworks/CoreServices.framework/Frameworks/CFNetwork.framework/Headers/CFNetworkErrors.h:27:26: 
> error: Availability.h: No such file or directory
> /System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:85: 
> error: ‘io_user_reference_t’ was not declared in this scope
> /System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:87: 
> error: ‘io_user_reference_t’ does not name a type
> /System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:92: 
> error: ‘OSAsyncReference64’ does not name a type
> /System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h:103: 
> error: ‘io_user_reference_t’ does not name a type
> 
> ... and more
> 
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
> 
> "Time is an illusion - lunchtime doubly so."
> 
> - Ford Prefect
> 
> 
> 



More information about the Qgis-developer mailing list