LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 09-20-2007, 11:08 AM   #1
jodie
LQ Newbie
 
Registered: Sep 2007
Posts: 10

Rep: Reputation: 0
port ing Win32 application writting in C++ to Linux


Hi All,
I am very new to Linux and we had a Win32 console application, which was developed with Microsoft Visual Studio C++ 6.0) into Linux.

What is the best way to port this project. Are there any white page or any information that I need to know before porting this project to Linux.
Thanks in advance,
JP
 
Old 09-20-2007, 12:17 PM   #2
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
It depends very much of how it was coded. If you stuck to the standard C++ libraries, or a cross platform general purpose library like QT, you should simply be able to rebuild.

If you used Windows-specific libraries, you will have some porting to do.
 
Old 09-21-2007, 09:23 AM   #3
jodie
LQ Newbie
 
Registered: Sep 2007
Posts: 10

Original Poster
Rep: Reputation: 0
porting the win32 appliation in C++ to Linux

Hi All,
I need to port the win32 application in C++ to Linux. So if you know any information related to this topic please help me.
Thanks in advance,
JP
 
Old 09-22-2007, 09:53 AM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
http://www.ibm.com/developerworks/ai...AGX59&S_CMP=GR
 
Old 12-04-2007, 01:33 AM   #5
noble_curious
LQ Newbie
 
Registered: Nov 2007
Location: MARS
Distribution: Fedora 6
Posts: 14

Rep: Reputation: 0
Need Help regarding Porting ...

Hi all
I am assigned a task which is to port a windows project into linux. I am relatively new to the porting concept. However I find this as interesting. But to my wonder I don’t see much discussion or help on porting at web and forums. Usually people try to port an application to linux by using WINE but I think that it is not actual porting of the application but instead we are running a windows executable inside linux process through some virtual layer… but that is not porting as much as I have understood. Also to write a portable code is not as difficult as to try to port an existing Windows specific application code into the linux platform.
I have a windows application/project built in C/C++ using windows API and MFC at some spots. Now the application need to be ported to Linux. I want to understand that are there any rules & guidelines specific to the porting. Currently I have situation somewhat like this:
Application has a MS COM Component depending on various libraries present in the shape of DLLs.
This COM (Component Object Model) serves the basic and fundamental logic of the application. But it uses several other 3rd party libraries and some self built libraries present in the form of DLL. Some of these DLLs are using MFC library.

Can any body suggest me that what formula I shall apply and follow any theory of porting in my situation. Currently I am planning to try to convert all the DLLs in a Linux Dynamic shared library and exclude all the MFC/Win API specific part from the code(that can be analyzed later). But What I have confliction is that is there any replacement of MS COM technology in Linux or I have to convert that COM into the Shared Library as well such that a separate process is forked in linux which contain a shared object or some thing like that. I really need the expert programmers guidance and any kind of information will be appreciated.
Regards
 
Old 12-04-2007, 01:45 AM   #6
noble_curious
LQ Newbie
 
Registered: Nov 2007
Location: MARS
Distribution: Fedora 6
Posts: 14

Rep: Reputation: 0
i also want to add a request... if some one know any book or a detailed article on porting from windows to linux then let me know...I have googled this a lot but always find little help... I also recommend the windows and linux gurus to try to do research on the common problem encountered during the windows code porting into Linux. Nowdays many ompanies are shifting their applications from windows to linux and I understand that this requires extensive knowledge of both platform... There shall be some discipline that the programmer shall follow while porting. I hope some one may do research on this in future and then discusses the daunting problems that are encountered while porting a large windows application.
 
  


Reply



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
How to build a C++ portable network application on Win32 and POSIX systems? Bassam Programming 1 05-17-2007 03:43 PM
How to compile win32 application? dmigh Programming 3 11-20-2004 10:00 AM
Fullscreen-ing an X Application phrontist Linux - General 3 10-05-2004 07:54 PM
Porting win32 application into Linux sergeyy Linux - Software 1 06-23-2003 08:57 AM
win32 application Jargon Linux - Newbie 2 05-29-2002 12:26 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:42 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration