作者RichieRich (Richie)
看板MacDev
標題[問題] 環境變數問題
時間Mon May 11 17:39:25 2009
我在command line下設定iphone 的環境變數
export CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1
export CFLAGS="-arch armv6 -pipe -miphoneos-version-min=2.0 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.1.sdk -I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.1.sdk/usr/include/gcc/darwin/4.0"
export CPP=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cpp
export AS=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/as
export AR=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ar
export RANLIB=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/ranlib
export LDFLAGS="-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/IphoneOS2.1.sdk/usr/lib"
不過shell下卻一直都存在這樣的設定
我想把它改成10.5 platform 環境compile
請問要如何快速還原?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.137.127.38
1F:推 Blueshiva:為何要在command line下設定這些變數?不是在Xcode裡面 05/11 17:59
2F:→ Blueshiva:選就可以了嗎? 05/11 18:00
3F:→ RichieRich:有些跨平台的library要用command 用xcode我知要怎作 05/11 22:27
4F:推 Blueshiva:問題是iPhone的library是綁定Xcode的...anyway,這寫個 05/12 00:28
5F:→ Blueshiva:shellscript設定一下就好了... 05/12 00:28
6F:→ RichieRich:你說到重點了問題是怎設定cc這些參數我想問的是有沒有 05/12 10:39
7F:→ RichieRich:default的cc如像/etc/profile之類的 05/12 10:39
8F:推 Blueshiva:我這邊CC預設是空的,另外這些設定一般都是在makefile裡 05/12 14:46
9F:→ Blueshiva:設定的不是? 05/12 14:47