CrossKylix – Kylix Crosscompiler for Delphi/Windows

來源:互聯網
上載者:User
文章目錄
  • About
  • How it works
  • Requirements and Download

實在是不知道寫什麼好,就介紹介紹有用的工具吧。

CrossKylix - Kylix Crosscompiler for Delphi/Windows

About

Welcome to CrossKylix, a free (as in beer and speech) toolkit to integrate the Borland Kylix (Delphi for Linux) compiler into the Delphi Windows IDE.
一個免費的開發工具(CrossKylix)

This project was created for people who wish to develop cross-platform web/server/middleware applications with Delphi. Compiling CLX GUI applications currently is NOT supported! Up until now doing this required you to have a seperate Linux installation (either on a dedicated box or inside VMWare) to recompile your project for the Linux platform. With CrossKylix this is no longer needed - you are able to build your project using the Kylix compiler from directly inside your Windows Delphi IDE, without the requirement of a Linux system. Sounds cool? Read on...
給那些需要進行交叉平台開發網頁、伺服器、中介軟體應用程式的開發人員使用。
目前不支援編譯CLX圖形介面應用程式。
聽起來不錯,接著往下看....

How it works

Of course CrossKylix isn't a real cross compiler. The only ones able to build a real cross compiler would be Borland themselves. CrossKylix actually is a faked together solution using a lot of tricks to achieve the goal. But oh well, it works, and that's what counts
這個工具使用了大量的技巧來達到使Kylix能夠在Windows下編譯的目標。

As you know, the Kylix compiler runs on Linux only. We want it to run it on Windows. Sounds impossible? Not quite. There is a project called LINE ("LINE Is Not an Emulator"). What it does is this: "LINE executes unmodified Linux applications on Windows by intercepting Linux system calls. The Linux applications themselves are not emulated. They run directly on the CPU just like all other Windows applications.". What LINE basicly does is implement an Linux ELF binary loader, load the process into memory, catch Linux syscalls and redirect them to the Cygwin DLL, which translates those calls to Windows API functions. Sadly the project died in early Alpha stage in 2001 and was unable run the Kylix command line compiler. So I took the LINE sources, ported them to the current Cygwin version, added all missing syscalls needed by Kylix, added some path translations, fixed some bugs - and well, now it IS able to run the Kylix command line compiler (DCC)

Next step was writing a Delphi IDE plugin to integrate the compiler. This plugin adds "Build with CrossKylix" and "Compile with CrossKylix" items to the Project-menu. During compile, it also parses the output of the Kylix compiler executed in the background to give out Hints/Errors to the Delphi messages window - clicking on those brings you to the source file at the correct line, like it uses to be in Delphi. So after all, integration is pretty tight - not much difference to compiling for Windows. One limitation exists: You can't debug the linux executable.

Now you know how it's done. Let's go test that beast.

Requirements and Download

The following things are needed to use CrossKylix:

  • Installed Delphi 6 or 7
  • Kylix 3 installation CD or finished installation (I've tested the project with Kylix 3 Enterprise, other versions might work too, Feedback welcome)
  • Windows 2000 or XP (Windows 95/98/Me might work, but are untested)

Download CrossKylix Version 0.7, 8. June 2004 -Still in beta state, you have been warned!
請注意:還在進行Beat測試

Other usefull downloads are:

  • IZArc - a free file compressor that is able to unpack the RPM files on the Kylix installation CD
  • Novell Netdrive - Allows you to create virtual drives using FTP connections. VERY cool if you want CrossKylix compiled binaries to be automaticly uploaded to a remote Linux server for testing.

 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.