LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 10-16-2006, 10:02 AM   #1
Mad_Tiger
LQ Newbie
 
Registered: Sep 2003
Posts: 7

Rep: Reputation: 0
how can i linux a Windows program's source code?


I've downloaded some windows program's source code (it's open source), is it posible to linux it?

Thanks advanced!
 
Old 10-16-2006, 10:19 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
to linux it??? nice expression... it's totally possible to port a win32 applicstion to linux, there are many porting guides around, but it totally depends how the application was written and how it works. if it's in VB you may as well give up now, but simple c code will often compile without any changes.
 
Old 10-16-2006, 10:46 AM   #3
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
heh.. "linux it".. nice one..

as was mentioned it depends on how it was written. describe the application, what it does and how it does it, interface if any etc.. and you may get a little better idea of the work involved..
 
Old 10-16-2006, 01:21 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
You will also want to check the licence against the software - make sure you really can do this. Contact the developer and see if they are interested in this.
 
Old 10-16-2006, 01:33 PM   #5
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
Quote:
Originally Posted by XavierP
You will also want to check the licence against the software - make sure you really can do this. Contact the developer and see if they are interested in this.
yeh thats true if you would be planning to distribute it. if you keep it for your own personal use, it really does not matter..
 
Old 10-16-2006, 01:38 PM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
True dat.
 
Old 10-17-2006, 05:43 AM   #7
Mad_Tiger
LQ Newbie
 
Registered: Sep 2003
Posts: 7

Original Poster
Rep: Reputation: 0
The program i'm trying to linux is Sharaza, it's a p2p client of Genutella, Genutella2 and eDonkey. and as i said, it's open source (GNU GENERAL PUBLIC LICENSE).
and about the language the program is written in, some of the files ended *.cpp, i guess that means the program was written in C++, correct me if i'm wrong.
 
Old 10-17-2006, 07:19 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
if you're not familiar with a standard file extension for C++ how do you expect to be able to port it to an alternative operating system??
 
Old 10-17-2006, 12:03 PM   #9
xhi
Senior Member
 
Registered: Mar 2005
Location: USA::Pennsylvania
Distribution: Slackware
Posts: 1,065

Rep: Reputation: 45
Quote:
Originally Posted by Mad_Tiger
The program i'm trying to linux is Sharaza, it's a p2p client of Genutella, Genutella2 and eDonkey. and as i said, it's open source (GNU GENERAL PUBLIC LICENSE).
and about the language the program is written in, some of the files ended *.cpp, i guess that means the program was written in C++, correct me if i'm wrong.
thats correct. my next question would have been regarding its use of the win32 api, but im guessing that you are not familiar with that either.. since we have established that it is a c++ application, the next step would be to learn c++. so learn c++ and we will continue this conversation in a year or so..
 
Old 10-17-2006, 12:45 PM   #10
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: LFS-Version SVN-20091202, Arch 2009.08
Posts: 1,496

Rep: Reputation: 68
Lol

Yea not to mention having to compleatly rewrite the user interface for the program in GTK or QT. Of course if your lazy just run the program in wine or something. Or use something like phex thats written in java and has a linux and windows version.

Phex is another gunella network program.
 
Old 04-05-2007, 07:12 PM   #11
kahlil88
Member
 
Registered: May 2005
Location: Mendocino, CA
Distribution: Arch Linux
Posts: 170

Rep: Reputation: 30
I'm no programmer, but I'm sure it's entirely possible to port Shareaza to Linux. I think Shareaza relies on IE and WiMP for certain functions, so if it was ported to Linux, it wouldn't have all the features (unless it used VLC and Mozilla as plugins). Although if someone does port it to Linux, they'll be my hero forever.
 
  


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
Real to release open source code for Windows Media on Linux burninGpi Linux - News 0 08-30-2006 08:03 PM
source code to be compiled for windows dipenchaudhary Programming 4 02-16-2006 03:02 PM
Windows 2000 and NT source code leaked closet geek General 38 03-06-2004 03:43 PM
windows source code available here schatoor General 3 03-05-2003 09:23 AM
Source Code for Windows XP Kzin General 6 01-23-2002 09:33 AM


All times are GMT -5. The time now is 08:13 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