www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Winelib: DFL -> Linux?

reply dsimcha <dsimcha yahoo.com> writes:
Just an idea that popped into my head:  I love DFL's API, but I hate the fact
that it only works on Windows.  Would it be feasible, or even easy, to use
Winelib to port DFL to Linux?  Has anyone here succeeded in using Winelib to
port a Windows app to Linux before?
Jul 10 2010
parent reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
dsimcha wrote:
 Just an idea that popped into my head:  I love DFL's API, but I hate the fact
 that it only works on Windows.  Would it be feasible, or even easy, to use
 Winelib to port DFL to Linux?  Has anyone here succeeded in using Winelib to
 port a Windows app to Linux before?
I'm regularly unittesting Phobos on wine. Andrei
Jul 10 2010
next sibling parent Philippe Sigaud <philippe.sigaud gmail.com> writes:
On Sun, Jul 11, 2010 at 08:48, Andrei Alexandrescu <
SeeWebsiteForEmail erdani.org> wrote:

 I'm regularly unittesting Phobos on wine.
Now, _that_ may explain some Phobos unit tests :-) I prefer Belgian beer myself, when writing unittests, but to each its own. Philippe
Jul 11 2010
prev sibling parent reply cemiller <chris dprogramming.com> writes:
If you attempt to build a windows app with DMD on linux and link against  
winelib, the first thing you hit is std.c.windows.windows static  
assert(0); // Windows only


On Sat, 10 Jul 2010 23:48:05 -0700, Andrei Alexandrescu  
<SeeWebsiteForEmail erdani.org> wrote:

 dsimcha wrote:
 Just an idea that popped into my head:  I love DFL's API, but I hate  
 the fact
 that it only works on Windows.  Would it be feasible, or even easy, to  
 use
 Winelib to port DFL to Linux?  Has anyone here succeeded in using  
 Winelib to
 port a Windows app to Linux before?
I'm regularly unittesting Phobos on wine. Andrei
Jul 11 2010
next sibling parent dsimcha <dsimcha yahoo.com> writes:
== Quote from cemiller (chris dprogramming.com)'s article
 If you attempt to build a windows app with DMD on linux and link against
 winelib, the first thing you hit is std.c.windows.windows static
 assert(0); // Windows only
Ok, well let's say you fixed all these nagging little issues. Where does this stand feasibility-wise? It's not something I'm going to actually try to do in the near future (I have too much on my plate), but I might do it eventually, or if someone else wants to do it, it'd be a great way to give D a cross-platform GUI lib with a nice API. I'm just trying to feel out how feasible this is, whether anyone is willing to make a serious attempt at it, and whether winelib is mature enough to be taken seriously for near-term practical use.
Jul 11 2010
prev sibling parent Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
I think I inadvertently misled you there. I'm not writing Windows code 
and link against libwine; I'm just running wine dmd.exe to build Phobos.

Andrei

On 07/11/2010 04:47 PM, cemiller wrote:
 If you attempt to build a windows app with DMD on linux and link against
 winelib, the first thing you hit is std.c.windows.windows static
 assert(0); // Windows only


 On Sat, 10 Jul 2010 23:48:05 -0700, Andrei Alexandrescu
 <SeeWebsiteForEmail erdani.org> wrote:

 dsimcha wrote:
 Just an idea that popped into my head: I love DFL's API, but I hate
 the fact
 that it only works on Windows. Would it be feasible, or even easy, to
 use
 Winelib to port DFL to Linux? Has anyone here succeeded in using
 Winelib to
 port a Windows app to Linux before?
I'm regularly unittesting Phobos on wine. Andrei
Jul 11 2010