Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 09-29-2004, 03:21 PM   #1
Registered: Nov 2002
Location: Hell
Distribution: FreeBSD, Slackware
Posts: 308

Rep: Reputation: 30
linux to windows porting

I know one can port a windows program over to linux

But what about the other way around, if we have a program here at work that someone has installed on a linux box is there a way to port that over to windows?
Old 09-29-2004, 04:26 PM   #2
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
If they're not too busy and you ask nicely, perhaps a group like the GAIM developers would be able to point you in the right direction. Just look for apps that were linux native first and email the author. Its worth a shot, right?
Old 09-29-2004, 04:27 PM   #3
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Sure. If it is a C program all you need to do is re-write it pretty much from scratch using the windows API. Not a good option. I have heard that mono is good for writing windows apps on Linux...but I have not used it (nor do I code for windows!)

If the app is in a more portable language such as python all you may have to do is change filepaths windows format.
Old 09-30-2004, 09:08 AM   #4
Registered: Nov 2002
Location: Hell
Distribution: FreeBSD, Slackware
Posts: 308

Original Poster
Rep: Reputation: 30
Can't really ask the authors of the program becuase it was written by someone here at work, thats the problem he left and they are asking me about getting the program to work on windows, and I am all like, "I dont know much about windows other then its a pain in the butt" So I will just tell work that they need to call this guy and have him rewrite the program on a win platform

Thanx very much for all those that replied
Old 09-30-2004, 09:29 AM   #5
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740

Rep: Reputation: 32
No, there are many C/C++ gui toolkits and graphics tookits that provide widgets or methods or creating windows. SDL is one that is good for games/graphics. But not GUI intensive apps. wxWindows, GTK(+), qt are examples. With them you can create an easily portable GUI you can compile on many different platforms with few changes. It all depends what they use, if they use straight X programming, or a lot of linux specific functions/libraries then it will require lots of modifications. There are lots of cross-platform libraries for a variety of uses. They could of course skip all this stuff and just program in Java.
Old 02-19-2013, 09:36 AM   #6
LQ Newbie
Registered: Feb 2013
Posts: 2

Rep: Reputation: 0
If you have GUI code you would have to use linux libraries like GTK/XLIB

For functions like EnterCriticalSection, WaitForSingleObject or _beginthreadex you must write the code yourself by using the linux API (a nice tutorial can be found here).

Last edited by colucix; 02-19-2013 at 12:39 PM.


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
Sockets Porting from Windows to Linux oriel_gizmo Programming 3 09-22-2004 07:20 PM
porting windows drivers to linux? bizx Linux - Hardware 7 07-08-2004 05:30 PM
Porting C++ code from windows to Linux ashwinipahuja Programming 9 06-03-2004 03:09 AM
Porting C++ code from windows to Linux ashwinipahuja Linux - General 1 03-22-2004 03:57 AM
porting windows ce code to linux rainmann Programming 7 06-12-2003 08:19 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:06 PM.

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