LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   porting Window Application to Linux (https://www.linuxquestions.org/questions/programming-9/porting-window-application-to-linux-393639/)

sjcoder 12-16-2005 01:56 PM

porting Window Application to Linux
 
I have a rpoject to port a configuration utility from Window to run in Linux (SUSE 10.0 is what I am using). I am wondering if someone can share the experience what is the best way to do it to save the time. The complicated part is that this Window tool also relying on a dynamic link library associated. There is GUI part in this applcation also.

When I try to start a new from KDevelop, I saw there is a option C++/QMake project/Simple Win32 Hello World/ prject template. Has anyone try to use this template to build anything? Is this a right track to start with? Or Should I use a better project templatge to start with?

I have seen similar posting on KDevelop. But I really want to find out if any one has use Qt Desiger desiged a GUI and also port other C++ code to integrate into the Qt Project.

Sorry this mihgt be too long. But please share whatever you know.

Thanks.

jamie_barrow 12-17-2005 05:51 AM

If you know C++, and already have working Windows code, then you shouldn't need a template. What you need to do is identify the parts of the program that aren't supported by Linux (the GUI code will probably need to be redone using some framework such as Qt or whatever - don't know C/C++ and Linux myself, Java's much easier!) and try Google to find tutorials or articles that tell you how to do 'em.

Maybe if you explain more about what the app must do, you'll get better responses than mine. Good luck.

bianchi 12-17-2005 11:58 PM

try wxwidgets
 
try wxwidgets

jtshaw 12-18-2005 04:48 PM

This is going to require some work. I'll assume you are in fact a C++ programmer. If I were you I'd use Qt. Your pretty much going to have to re-write any park of the program that uses GUI or Networking calls. The Networking parts are similar.. but not exactly the same. The GUI calls are totally different.

The major benefit of using Qt is that when you are done porting it you'll be left with a project that will be buildable for both Windows and Linux. I recommend using QT 4 as they have an Open Source Edition of QT for Windows starting with verison 4.


All times are GMT -5. The time now is 12:50 AM.