看板 MacDev 關於我們 聯絡資訊
我在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
Blueshiva:為何要在command line下設定這些變數?不是在Xcode裡面 05/11 17:59
Blueshiva:選就可以了嗎? 05/11 18:00
RichieRich:有些跨平台的library要用command 用xcode我知要怎作 05/11 22:27
Blueshiva:問題是iPhone的library是綁定Xcode的...anyway,這寫個 05/12 00:28
Blueshiva:shellscript設定一下就好了... 05/12 00:28
RichieRich:你說到重點了問題是怎設定cc這些參數我想問的是有沒有 05/12 10:39
RichieRich:default的cc如像/etc/profile之類的 05/12 10:39
Blueshiva:我這邊CC預設是空的,另外這些設定一般都是在makefile裡 05/12 14:46
Blueshiva:設定的不是? 05/12 14:47