Building universal Stellarium 0.8.1 on an Intel Mac

(Difference between revisions)
Jump to: navigation, search
Line 9: Line 9:
 
==Project layout==
 
==Project layout==
 
After extracting the archives you should have two folders, one named '''stellarium-0.8.1''' and the other named '''macosx'''. Make sure to place the '''macosx''' folder into the '''stellarium-0.8.1''' folder, as this is essential for successful project building.
 
After extracting the archives you should have two folders, one named '''stellarium-0.8.1''' and the other named '''macosx'''. Make sure to place the '''macosx''' folder into the '''stellarium-0.8.1''' folder, as this is essential for successful project building.
 +
 +
==Target settings==
 +
If you want to build an universal binary you have to modify the build settings of the Stellarium target, as they are set for a PPC architecture. Open the target properties, choose the build tab and add the i386 architecture to the Architectures setting (double click on the row and check the i386 checkbox).
 +
This must be done for all configurations for which you want to build a universal binary.
 +
 +
==Fixing some quirk==
 +
Ideally

Revision as of 18:51, 29 September 2006

What follows is a quick overview of what I did to build a universal application from Stellarium 0.8.1 sources on an Intel Mac.

Contents

What you need

  • 1) Stellarium 0.8.1 sources that you can download here. They are in the file stellarium-0.8.1.tar.gz
  • 2) A ready made Xcode project for building Stellarium on Mac OS X. You can download the file macosx-xcode.tar.gz containing such project from here. I choose revision 1.4.
  • 3) An Intel Mac (a PowerPC Mac should make it too) with developer tools installed. I used Xcode 2.4.

Project layout

After extracting the archives you should have two folders, one named stellarium-0.8.1 and the other named macosx. Make sure to place the macosx folder into the stellarium-0.8.1 folder, as this is essential for successful project building.

Target settings

If you want to build an universal binary you have to modify the build settings of the Stellarium target, as they are set for a PPC architecture. Open the target properties, choose the build tab and add the i386 architecture to the Architectures setting (double click on the row and check the i386 checkbox). This must be done for all configurations for which you want to build a universal binary.

Fixing some quirk

Ideally

Personal tools
Namespaces
Variants
Actions
in this wiki
other languages
Toolbox