Thread overview
Winelib: DFL -> Linux?
Jul 10, 2010
dsimcha
Jul 11, 2010
Philippe Sigaud
Jul 11, 2010
cemiller
Jul 11, 2010
dsimcha
July 10, 2010
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?
July 11, 2010
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
July 11, 2010
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


July 11, 2010
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
July 11, 2010
== 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.
July 11, 2010
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