一直想找個開源的可以商用的Delphi
的替代品,能跨平臺了最好。開始時試過Lazarus
,和D7
還真是挺像的,不過用慣了XE
,還是想找個習慣相似的IDE,扒拉下論壇後發現了CodeTyphon
,就想着試一下。
下載
下載就不多說了,網上很容易找到,而且官方wiki
寫得也很好,英文好的可以直接看,像我這樣的英語渣渣,還是有必要慢慢去啃的。
CodeTyphon
下載後只有一個CodeTyphonIns.zip
的壓縮包,無論是Windows
、Linux
還是MacOS
,安裝包都是它,因爲不管在哪個平臺上安裝,都是要編譯的。
安裝
-
解壓
CodeTyphonIns.zip
得到CodeTyphonIns
-
在
Windows
平臺,以管理員方式運行install.bat
;在類unix
平臺,先cd CodeTyphonIns
,再sudo ./install.sh
-
出現以下界面,輸入
0
====================================================
CodeTyphon Studio
Version 7.30 (GEN 7)
Installation for Linux-Solaris-Openindiana-MacOS
FreeBSD-NetBSD-OpenBSD-DragonFly
====================================================
-----WARNING------ WARNING ----WARNING-------
You tryng to install CT as root
This is NOT the correct procedure.
You MUST start CodeTyphon Installation as normal user
with sudo root privileges
---------------------------------------------
0) Install CodeTyphon Studio (remove old first)
1) Update CodeTyphon Studio
2) Remove CodeTyphon Studio
9) Exit
>>> Select an action (press 0..9 key):
- 等待執行完,出現以下界面,再次輸入
0
(我就是這裏漏掉了,折騰了N多遍)
====================================================
CodeTyphon Studio 7.30 Setup for Linux64
Settings: Platform=gtk2 Multiarch Mode=0
====================================================
0) Install System Libraries
1) Run CodeTyphon Center (CTC)
11) -- Platform (widget) Setup
12) -- Multi-Architecture Setup
3) Remove FreePascal
4) Remove and Build FreePascal
5) Remove Typhon IDE
6) Remove and Build Typhon IDE
7) Remove ALL
8) Remove and Build ALL
9) EXIT
>>> Select an action (press 0..9 key): 0
此時,Windows
平臺會彈出下載安裝DirectX
的界面,Linux
也會下載安裝系統所需要的包,這個過程是必須聯網進行的。
-
安裝完之後會回到上一步的界面,輸入
8
-
等待安裝結束,查看日誌是否安裝成功,最後輸入
9
退出
以上是最基本的採用默認配置的安裝步驟,以後摸索多了再更如何自定義配置的安裝吧。