Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Phantom Hoover on September 10, 2013, 08:26:49 pm

Title: FRED and Winelib
Post by: Phantom Hoover on September 10, 2013, 08:26:49 pm
From what I've been told by SCP coders, the reason we don't have Mac/Linux versions of FRED is that it relies on MFC and so porting it would simply entail too much restructuring. However, Winelib (the open-source, cross-platform implementation of the Win32 API that Wine uses) does apparently incorporate MFC support (http://www.winehq.org/docs/winelib-guide/mfc#MFC-INTRODUCTION); could this practically be used to port FRED?
Title: Re: FRED and Winelib
Post by: niffiwan on September 10, 2013, 09:38:46 pm
From my reading of the legals page (http://www.winehq.org/docs/winelib-guide/mfc-legal-issues), to compile wineFRED you'd need to buy MVSC Pro anyway.  And I don't know if a port to MFC+winelib would be any easier than a port to wxWidgets (maybe z64555 can comment further).
Title: Re: FRED and Winelib
Post by: z64555 on September 10, 2013, 09:50:45 pm
Even if the SCP were to use WineLib, developers would still need to have the MFC in order to compile. It may be possible for a few SCP developers to compile a lib and then distribute it along with the essential MFC headers, but only if that doesn't break any of the legal rules of the MFC package they're using.

I still think that wxWidgets is the way to go, I've already got the majority of the new GUI elements in place and work is underway to get them some function. Unfortunately, I've been preoccupied lately with work, (  :hopping: ) and I'm considering making a GitHub repo so that others may be able to chip in.

But then again, I could perhaps commit my changes so far to the fs2 SVN. I'll need to get my stuff sorted so that it'll play nice with the current build scripts, though.

From my reading of the legals page (http://www.winehq.org/docs/winelib-guide/mfc-legal-issues), to compile wineFRED you'd need to buy MVSC Pro anyway.  And I don't know if a port to MFC+winelib would be any easier than a port to wxWidgets (maybe z64555 can comment further).

It might be more difficult to port to Winelib due to the face that *someone* would still need the MFC.
Title: Re: FRED and Winelib
Post by: niffiwan on September 10, 2013, 10:03:09 pm
I'm considering making a GitHub repo so that others may be able to chip in.

But then again, I could perhaps commit my changes so far to the fs2 SVN. I'll need to get my stuff sorted so that it'll play nice with the current build scripts, though.

Sounds good to me.  If wxFRED will remain tied to the rest of the FSO codebase (like FRED) then it'd probably make most sense to put it in SVN.
Title: Re: FRED and Winelib
Post by: z64555 on September 12, 2013, 01:48:01 am
wxFred changes uploaded to SVN.