LinuxQuestions.org
Visit Jeremy's Blog.
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 10-16-2006, 09: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, 09:19 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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, 09: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, 12:21 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
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, 12: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, 12:38 PM   #6
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
True dat.
 
Old 10-17-2006, 04: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, 06:19 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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, 11:03 AM   #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, 11:45 AM   #10
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
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, 06:12 PM   #11
kahlil88
Member
 
Registered: May 2005
Location: Mendocino, CA
Distribution: Arch Linux
Posts: 173

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



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 07:03 PM
source code to be compiled for windows dipenchaudhary Programming 4 02-16-2006 02:02 PM
Windows 2000 and NT source code leaked closet geek General 38 03-06-2004 02:43 PM
windows source code available here qanopus General 3 03-05-2003 08:23 AM
Source Code for Windows XP Kzin General 6 01-23-2002 08:33 AM

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

All times are GMT -5. The time now is 07:42 PM.

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