Results 1 to 10 of 10

Thread: What Language; Compiler is best to write ubuntu application

  1. #1
    Join Date
    Jun 2013
    Beans
    8

    What Language; Compiler is best to write ubuntu application

    Hi

    I am interested in learning to write an application for ubuntu. What advice wuould you give on the language compiler I need to use. I want only open source.


    Just as a matter of interest what is complied with. ?

    thank you...

  2. #2
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu 15.10 Wily Werewolf

    Re: What Language; Compiler is best to write ubuntu application

    Moved to Programming Talk.

  3. #3
    Join Date
    Nov 2005
    Location
    Bordeaux, France
    Beans
    11,294
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: What Language; Compiler is best to write ubuntu application

    Just as a matter of interest what is complied with. ?
    ?
    「明後日の夕方には帰ってるからね。」


  4. #4
    Join Date
    Nov 2012
    Location
    Thousand Oaks, CA, USA
    Beans
    324
    Distro
    Ubuntu Development Release

    Re: What Language; Compiler is best to write ubuntu application

    If you'd like to program an application for Ubuntu, I suggest learning C++. Here's what you need:

    Compiler: GCC
    IDE: Code::Blocks

    Tutorial
    Last edited by cariboo; October 22nd, 2013 at 01:49 AM. Reason: Removed image and comment

  5. #5
    Join Date
    Jun 2013
    Beans
    8

    Re: What Language; Compiler is best to write ubuntu application

    Thx King Dude... Good Links....

  6. #6
    Join Date
    Jun 2013
    Beans
    8

    Re: What Language; Compiler is best to write ubuntu application

    Oh.. What is ubuntu complied with? my mistake

  7. #7
    Join Date
    Aug 2011
    Location
    47°9′S 126°43W
    Beans
    2,165
    Distro
    Kubuntu 14.04 Trusty Tahr

    Re: What Language; Compiler is best to write ubuntu application

    Ubuntu is a Linux kernel and a collection of applications. The kernel is mostly C., for the rest, I just collated some data from my workstation:

    - 4800 executables files and 3700 libraries under /user. Libraries are likely C/C++(*)
    - 2100 executables have a shebangn and are interpreted. The other 2700 are therefore binaries, likely C/C++(*).
    - In these 2100, roughly one half are shell scripts (sh/bash/tcsh), one fourth are python, and one fourth are perl, and some various (ruby, awk, make...)

    (*) of course I didn't check the source files..
    Warning: unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.

  8. #8
    Join Date
    Aug 2013
    Beans
    10

    Re: What Language; Compiler is best to write ubuntu application

    Ubuntu is mostly compiled with GCC (the parts of it that are compiled, that is). Out of the box, it comes with interpreters for at least Perl, Python and awk. As well as this it has a shell (the bash shell).

    I have no idea what Unity is written in, but I seem to remember it using lots of Python. This means that it runs without being compiled. The windowing server (the basic part of the graphical interface which talks to the kernel and the hardware) is written in C, and the kernel (Linux) is mostly written in C, with some Perl and shell scripts, if I remember correctly.

    If you want to write a graphical application for Ubuntu, you can use any language which has bindings to the basic libraries of which ever desktop environment you have installed. Or you can just write for the XServer directly and bypass the desktop environment.

    Confused? You should be.

    I'd recommend starting out in python. There are some good tutorials for Ubuntu graphical application development in Python. You can start here: http://developer.ubuntu.com/resource...guages/python/

    Good luck!

  9. #9
    Join Date
    Nov 2005
    Location
    Bordeaux, France
    Beans
    11,294
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: What Language; Compiler is best to write ubuntu application

    Quote Originally Posted by mpskinner View Post
    Oh.. What is ubuntu complied with? my mistake
    Ubuntu is not a program, it is a large collection of programs put together, which are programmed in a wide variety of languages. The compiler is, at least in principle, irrelevant: a program written in a language can be compiled with any compiler for that language.
    「明後日の夕方には帰ってるからね。」


  10. #10
    Join Date
    Apr 2005
    Location
    Hampshire, UK
    Beans
    1,274

    Re: What Language; Compiler is best to write ubuntu application

    Quote Originally Posted by edouardtavinor View Post
    I have no idea what Unity is written in, but I seem to remember it using lots of Python.
    Unity is mostly C++:

    http://www.ohloh.net/p/ubuntu-unity/...guages_summary

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •