LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-26-2009, 03:17 PM   #1
akuthia
Member
 
Registered: Oct 2007
Location: triad, nc, usa
Distribution: Ubuntu
Posts: 232

Rep: Reputation: 29
porting: can a non-trained coder do it?


so say someone one was bored, and wanted to mess around with porting an existing program to linux (and yes i'm talking just for personal, i wonder if i can do this reasons, not commercial) is it something that someone without any coding "training" do? would it be easier/harder than writing from scratch?

I've done some basic coding (mostly in flash, but it was for a program, not animation)
 
Old 02-26-2009, 03:44 PM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
yes and no
depends a lot on the program
you could train yourself as you go depending on how much time and effort
however in general the answer is no especially if you are talking about proprietary windows programs since to port anything you first need access to the source code, if you can't get the source code it doesn't matter how much coding skill you have you can't port the program .. period
however that doesn't mean there isnt hope
you should look into wine for running un-modified windows programs on linux

Last edited by frieza; 02-26-2009 at 04:02 PM.
 
Old 02-26-2009, 03:55 PM   #3
akuthia
Member
 
Registered: Oct 2007
Location: triad, nc, usa
Distribution: Ubuntu
Posts: 232

Original Poster
Rep: Reputation: 29
well i actually have access to the source code (the project really in question was to fiddle around with the jagged alliance 1.13 project that is out there, i think there was interest in a linux port, at some point, but would need to double check now)guess i can always transfer the source files over and see what goes
 
Old 02-26-2009, 04:04 PM   #4
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
well if you have the source code then yes it is possible, however you would have learn the following

what libraries the program uses and how it calls them
what the linux equivilents of those libraries are and how to rewrite the relevant function calls in the source code to use those libraries instead
then compile the program
it is not an impossible task, however it will require some research and self teaching
but if you can pull it off, a valuable learning experience

Last edited by frieza; 02-26-2009 at 04:06 PM.
 
Old 02-26-2009, 04:25 PM   #5
akuthia
Member
 
Registered: Oct 2007
Location: triad, nc, usa
Distribution: Ubuntu
Posts: 232

Original Poster
Rep: Reputation: 29
oi vie, sounds like a more difficult task than i had imagined.
 
Old 02-26-2009, 05:08 PM   #6
gergely89
Member
 
Registered: Feb 2009
Posts: 100

Rep: Reputation: 21
Porting applications to a different platform is actually a good way to learn serious programming, though it can be deep water sometimes.

I have found the book "Beos Porting UNIX Applications (Paperback)" a good reference. It refers to the outdated BeOS with the goal of porting UNIX apps to BeOS, but gives an excellent overview on UNIX concepts, tools and strategies for porting. It is available at http://www.amazon.com/Beos-Porting-A.../dp/1558605320 for a hefty price, but I'm sure that second-hand bookstores or eBay could have more appealing offers. BeOS-related stuff often becomes free, so I wouldn't rule out that the contents are also available as a free PDF file in the meantime (I have the book, so I never bothered to find out).

linux

Last edited by gergely89; 02-27-2009 at 11:06 PM.
 
Old 02-26-2009, 05:34 PM   #7
akuthia
Member
 
Registered: Oct 2007
Location: triad, nc, usa
Distribution: Ubuntu
Posts: 232

Original Poster
Rep: Reputation: 29
im just thinking that something other than a full fledged game might make better fodder for a first attempt at trying it, thats my main concern.
 
Old 02-26-2009, 05:36 PM   #8
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
sounds like a plan good luck
 
Old 02-26-2009, 05:47 PM   #9
akuthia
Member
 
Registered: Oct 2007
Location: triad, nc, usa
Distribution: Ubuntu
Posts: 232

Original Poster
Rep: Reputation: 29
another question, just how far "back" can back go? if i could find source files for say dos programs, could i conceivably port those to linux? or is there a point where its just not possible (like, dos games would be written in something linux just wouldnt be able to compile in or understand?
 
Old 02-26-2009, 06:27 PM   #10
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
actually yes
in fact dos programs would probaby be the easiest to start with, since they don't rely on alot of complicated gui libraries that are ultra specialized they are more self contained as well
 
Old 02-27-2009, 10:14 AM   #11
akuthia
Member
 
Registered: Oct 2007
Location: triad, nc, usa
Distribution: Ubuntu
Posts: 232

Original Poster
Rep: Reputation: 29
oi, i took my first look, and i dont even know where i would start i open one file that seems like it would be important to start at (game.lnk) and its just the listing of all the files...

Code:
this is the level of water:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



this is me: ^
 
Old 02-27-2009, 11:25 AM   #12
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
well for starters, try to compile the source code unmodified and see what errors, if any are generated, then work from there to see what changes you need to make to the source code to correct those errors
 
Old 02-27-2009, 10:11 PM   #13
akuthia
Member
 
Registered: Oct 2007
Location: triad, nc, usa
Distribution: Ubuntu
Posts: 232

Original Poster
Rep: Reputation: 29
can you recommend a compiler for ubunutu running GNOME? the only one i've found (KWSDL) seems to be for KDE environments, and when i go to run it, it says it's missing a library (kdialog) and when i run synaptic, it doesnt locate that library
 
Old 02-27-2009, 10:49 PM   #14
AceofSpades19
Senior Member
 
Registered: Feb 2007
Location: Chilliwack,BC.Canada
Distribution: Slackware64 -current
Posts: 2,079

Rep: Reputation: 58
Quote:
Originally Posted by akuthia View Post
can you recommend a compiler for ubunutu running GNOME? the only one i've found (KWSDL) seems to be for KDE environments, and when i go to run it, it says it's missing a library (kdialog) and when i run synaptic, it doesnt locate that library
If you need a c compiler, then gcc would be the obvious choice
 
Old 02-28-2009, 03:07 PM   #15
akuthia
Member
 
Registered: Oct 2007
Location: triad, nc, usa
Distribution: Ubuntu
Posts: 232

Original Poster
Rep: Reputation: 29
is there no gui for gcc? i dont see it in my application list.. i dont like doing command line only stuff yet i left that in my early childhood. if i woulda known writing .bats and config files was coding, i might've persued courses in computer programing more heavily in highschool and maybe beyond

Last edited by akuthia; 02-28-2009 at 03:52 PM.
 
  


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
coder vs. sysadmin vs. networker noir911 General 6 02-12-2008 07:51 AM
php coder wanted frieza Programming 0 10-10-2007 12:42 AM
LXer: KEMRI-Wellcome Research Programme in Kenya Trained on OpenClinica LXer Syndicated Linux News 0 07-07-2007 09:46 AM
LXer: Macedonia: Employees from 22 Municipalities Trained to Use OpenOffice.org LXer Syndicated Linux News 0 01-25-2007 10:21 PM
Hoping to interest a (few) coder(s)..... Megamieuwsel General 0 02-03-2005 03:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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