开发者

How can I compile my Windows program into a single Linux binary that runs with Wine?

Just today i checked my ubuntu with installing wine in it ,

Delphi 3 to 7 worked perfectly (Rad studios did not work because they use .net scraps). But all of the application i made worked perfectly!!!!! And i heard that it also works well in mac with WineBottler

Is it possible to create a header linux executable and put my vcl application and requird wine s开发者_Python百科tuff into it and distribute as a single executable (.bin)


there is(was) a solution for Linux from Borland, called Kylix. Kylix is based on some older Qt-stuff. But I would give FreePascal/Lazarus a try, it's pretty cool! and the compiler compiles for many different platforms.


I guess this is what winelib is for. However I have never tried it. (Wasn't Kylix Delphi + winelib compiled for Linux?)


Since Wine is now stable (reached the 1.0 version some time ago), it could make sense to ask the user to install it using its Linux packages manager. It's very fast and easy. So Wine will be always up to date, according to the distribution used.

Then it's very easy to install any Windows program with Wine.

Since Delphi executables are mostly self-contained (if you don't use the BDE or some external database libraries), your clients will install your Delphi application alla "Windows" way, that is, by running a Setup program from Wine.

And it will work fine, as is.

Using WineLib is not a good idea, even not advised by Wine developers, as far as I remember. At least for closed-source software: in one or two years, perhaps you won't release another version of your program, but Wine and WineLib will have evolved a lot... If you use Wine as an external package, your client can be sure there will be some end user enhancements.

If your software is purely Open Source, then using WineLib could make sense. But even the WineLib headers can evolved, so perhaps your source won't evolve at the same speed...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜