Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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)
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
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
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
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
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
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).
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?
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
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
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: ^
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
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
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
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.