version 1.24, 2005/06/22 12:40:41 |
version 1.26, 2006/10/08 23:56:16 |
|
|
% $OpenXM: OpenXM/doc/OpenXM-FAQ.oxweave,v 1.23 2004/09/01 23:07:37 takayama Exp $ |
% $OpenXM: OpenXM/doc/OpenXM-FAQ.oxweave,v 1.25 2005/11/17 07:02:13 takayama Exp $ |
|
|
|
//&C Oct 9, 2006. Generating universal binaries for MacOS X. |
|
|
|
/*&ja |
|
Reference: http://macwiki.sourceforge.jp/cgi-bin/wiki.cgi?UniversalBinary |
|
PPC では -arch i386 -arch ppc の他に -isysroot /Developer/SDKs/MacOSX10.4u.sdk |
|
option が必要. Xcode の Package の中の, Cross-Developement.mpkg を忘れない. |
|
別々の architecture で生成して, lipo でくっつける方法の方が推奨らしい. |
|
cf. |
|
*/ |
|
/*&C |
|
Example: |
|
gcc -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk ox.c -o ox |
|
or |
|
gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk ox.c -o ox-i386 |
|
gcc -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk ox.c -o ox-ppc |
|
lipo -create ox-i386 ox-ppc -output ox |
|
*/ |
|
|
|
|
//&C Sep 2, 2004, Update for tigers (10.4) June 23, 2005. |
//&C Sep 2, 2004, Update for tigers (10.4) June 23, 2005. |
//&ja Q. MacOS X (10.3, panther)で OpenXM package を make するにはどうしますか? |
//&ja Q. MacOS X (10.3, panther)で OpenXM package を make するにはどうしますか? |
//&en Q. How to make OpenXM package on MacOS X (10.3, panther)? |
//&en Q. How to make OpenXM package on MacOS X (10.3, panther)? |
Line 30 Mac OS X 10.4 (tiger) のためのノート. |
|
Line 49 Mac OS X 10.4 (tiger) のためのノート. |
|
される. 現在のところgcc-4.0 のもとではいろいろと問題が生じる. |
される. 現在のところgcc-4.0 のもとではいろいろと問題が生じる. |
したがって gcc-4.0 の代わりに gcc-3.3 を使う. |
したがって gcc-4.0 の代わりに gcc-3.3 を使う. |
(たとえば |
(たとえば |
mkdir ~/bin ; ln -s /usr/bin/gcc-3.3 ~/bin/gcc |
sudo gcc_select 3.3 |
export PATH=~/bin:$PATH |
|
とすればよい) |
とすればよい) |
|
|
<note-1> GC の版 (OpenXM/src/gc) は 6.5 (or later). |
<note-1> GC の版 (OpenXM/src/gc) は 6.5 (or later). |
Line 60 Note for Mac OS X 10.4 (tiger) |
|
Line 78 Note for Mac OS X 10.4 (tiger) |
|
When you install XcodeTools 2.1, gcc version 4.0 will be installed. |
When you install XcodeTools 2.1, gcc version 4.0 will be installed. |
There are several troubles when you build the OpenXM package with gcc-4.0. |
There are several troubles when you build the OpenXM package with gcc-4.0. |
So, we need to use gcc-3.3 instead of gcc-4.0 |
So, we need to use gcc-3.3 instead of gcc-4.0 |
(e.g., mkdir ~/bin ; ln -s /usr/bin/gcc-3.3 ~/bin/gcc |
(e.g., sudo gcc_select 3.3 ) |
export PATH=~/bin:$PATH ) |
|
|
|
<note-1> The version of OpenXM/src/gc must be 6.5 (or later). |
<note-1> The version of OpenXM/src/gc must be 6.5 (or later). |
<note-2> If you do not have "wget", do as follows. |
<note-2> If you do not have "wget", do as follows. |