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

William Kyngesburye woklist at kyngchaos.com
Wed Jul 16 09:12:51 EDT 2008


On Jul 16, 2008, at 1:19 AM, Tom Elwertowski wrote:

> 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")

I don't think the -F/System/Library/Frameworks should ever be needed.   
This is always in the default search path for frameworks (as well as / 
Library/Frameworks).  And whether or not you use the system or an SDK,  
-framework SomeSystemFramework will find it in the right place, and  
any internal includes in those frameworks will work.

And, those extra -L/System/Library/Frameowkrs and -L/Library/ 
Frameworks are pointless as well, whereever they are coming from.

> I just noticed that CMake 2.4 generates the -F/System/Library/ 
> Frameworks but 2.6 doesn't. Upgrading Cmake may be the solution.

So, Cmake 2.6 does it right.  It realizes that the system frameworks  
don't need -F.

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

"We are at war with them. Neither in hatred nor revenge and with no  
particular pleasure I shall kill every ___ I can until the war is  
over. That is my duty."

"Don't you even hate 'em?"

"What good would it do if I did? If all the many millions of people of  
the allied nations devoted an entire year exclusively to hating the  
____ it wouldn't kill one ___ nor shorten the war one day."

<Ha, ha> "And it might give 'em all stomach ulcers."

- Tarzan, on war



More information about the Qgis-developer mailing list