What are some choices to port existing Windows GUI app written in C to Linux?

Posted by Warner Young on Stack Overflow See other posts from Stack Overflow or by Warner Young
Published on 2010-03-25T23:19:07Z Indexed on 2010/03/25 23:23 UTC
Read the original article Hit count: 350

Filed under:
|
|
|
|

I've been tasked with porting an existing Windows GUI app to Linux. Ideally, I'd like to do this so the same code base can be used to build either the Windows version or the Linux version. I'll be doing my work on Ubuntu 9.04. After searching around, it's unclear to me what tools are best suited to help me with this.

A list of loose requirements would be:

  1. The code is in C, not C++, and should compile to build both Windows and Linux versions. Since it's existing code, and fairly large, converting to a managed language like .NET is out of the question for now.

  2. I would prefer if I can use the same dialogs in both systems. In Windows, putting up a dialog is pretty simple. You build the dialog in the Resource Editor in Visual Studio, then call DialogBox() API, and handle the event messages. I would really like to find something that can do the equivalent on the Linux side.

  3. It would also be nice to have a good IDE similar to Visual Studio.

Any helps or hints would be appreciated.
Thanks,

© Stack Overflow or respective owner

Related posts about linux

Related posts about Windows