LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 09-29-2004, 02:21 PM   #1
Atrocity
Member
 
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, 03:26 PM   #2
vectordrake
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, 03:27 PM   #3
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Rep: Reputation: 64
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 etc...to windows format.
 
Old 09-30-2004, 08:08 AM   #4
Atrocity
Member
 
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, 08:29 AM   #5
95se
Member
 
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, 08:36 AM   #6
dimisostim
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 11:39 AM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sockets Porting from Windows to Linux oriel_gizmo Programming 3 09-22-2004 06:20 PM
porting windows drivers to linux? bizx Linux - Hardware 7 07-08-2004 04:30 PM
Porting C++ code from windows to Linux ashwinipahuja Programming 9 06-03-2004 02:09 AM
Porting C++ code from windows to Linux ashwinipahuja Linux - General 1 03-22-2004 02:57 AM
porting windows ce code to linux rainmann Programming 7 06-12-2003 07:19 AM


All times are GMT -5. The time now is 01:51 PM.

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