LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 12-16-2005, 01:56 PM   #1
sjcoder
LQ Newbie
 
Registered: Dec 2005
Posts: 13

Rep: Reputation: 0
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.
 
Old 12-17-2005, 05:51 AM   #2
jamie_barrow
Member
 
Registered: Jul 2003
Location: Gauteng, South Africa
Distribution: Windows XP, yup :D Will be back onto Ubuntu probably someday
Posts: 107

Rep: Reputation: 15
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.
 
Old 12-17-2005, 11:58 PM   #3
bianchi
Member
 
Registered: Nov 2005
Location: Italy
Posts: 36

Rep: Reputation: 15
try wxwidgets

try wxwidgets
 
Old 12-18-2005, 04:48 PM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
application startup window size under KDE? khedger Linux - General 3 12-17-2005 10:09 PM
Porting Solaris Application to Linux CaptainRon Solaris / OpenSolaris 5 10-01-2005 02:29 AM
Huge Porting application question el_scrub Programming 5 06-10-2004 06:05 AM
porting programs to linux, io.h, window.h StressedLemming Linux - Newbie 1 11-30-2003 08:33 AM
Porting win32 application into Linux sergeyy Linux - Software 1 06-23-2003 08:57 AM


All times are GMT -5. The time now is 07:27 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration