Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-03-2006, 06:35 AM   #1
Richard Rahl
Registered: Aug 2006
Location: Cape Breton, D'Hara
Distribution: Ubuntu, Redhat
Posts: 83

Rep: Reputation: 15
Cross Platform Software

Hey folks,

I'm wondering about writing cross platform software. I've been writing Windows software for about 6 years now, and have wanted to start trying some Linux programming, but I'm not sure where to get started. What are my best options? Should I write two entirely different programs, one for Windows and one for Linux? Is there a language I can use for writing the program once that I can compile under Windows and Linux? Should I use Java to write programs and then use them under Windows and Linux? I am wondering about other people's experience and what has worked for them.

Also, how does Linux software run and relate to different distributions and kernals?


EDIT: Maybe this should have been in the programming thread, sorry.

PS - I don't want to pay $400 for realBasic 2005 either, lol.

Last edited by Richard Rahl; 08-03-2006 at 06:55 AM.
Old 08-03-2006, 07:58 AM   #2
Registered: Jul 2006
Location: UK
Distribution: Gentoo, Gentoo, Ubuntu, Gentoo
Posts: 42

Rep: Reputation: 15
of the top of my head there are a few, here's two:

Java - As you probably know, compiles to Java bit code (.class) and then that can be run on a JVM (Java Vertual Machine) on any platform which has a JVM.

C/C++ - Should be good if it's nice clean source code and not using OS specific stuff, haven't had much experience of differant OSes with that tho. As far as I know, you just compile it on, or for differant systems (cross-compile), and it *should* work (differant compiled files for each OS). But don't know how comprehensive that one is tho...sure like to know tho!

I've used Java on both platforms, and it works as it should nicely, however I don't like java out of personal preferance, so I went over to C++....and linux only.

As for differant distros/kernels, with Java it shouldn't be a problem, with C/C++ should be ok aslong as all your dependancies are there, so it should be fine but not necesserily overly optimised. Or better still, release the source code, and people can do their own compiler optimisations

Try checking out GCC, think that's for more OSes than I can name, and a variaty of languages. So any source code compiled to the right platform should work nicely.

Hope that's of some help

p.s. (aka disclaimer - statement to save ones own neck) 'should' generaly means slightly talking out of ones rear end, but using experiance in other things to make an educated assumption
Old 08-03-2006, 08:04 AM   #3
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Python is also a cross-platform language.


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
Cross platform email software satimis Linux - Software 1 04-28-2006 06:35 AM
Cross Platform Software enine General 8 02-26-2006 03:35 PM
Cross platform server software newuser455 General 1 01-06-2006 11:58 AM
Cross platform software development ssmaitra Programming 4 05-16-2005 01:15 AM
Cross-platform webcam software Darksun Linux - Software 1 03-31-2004 06:08 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration