LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   how can i linux a Windows program's source code? (https://www.linuxquestions.org/questions/programming-9/how-can-i-linux-a-windows-programs-source-code-492825/)

Mad_Tiger 10-16-2006 09:02 AM

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!

acid_kewpie 10-16-2006 09:19 AM

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.

xhi 10-16-2006 09:46 AM

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..

XavierP 10-16-2006 12:21 PM

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.

xhi 10-16-2006 12:33 PM

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..

XavierP 10-16-2006 12:38 PM

True dat. :)

Mad_Tiger 10-17-2006 04:43 AM

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.

acid_kewpie 10-17-2006 06:19 AM

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??

xhi 10-17-2006 11:03 AM

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.. :)

exvor 10-17-2006 11:45 AM

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.

kahlil88 04-05-2007 06:12 PM

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. :)


All times are GMT -5. The time now is 12:24 AM.