Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Programming in Ubuntu

  1. #1
    Join Date
    Nov 2006
    Beans
    Hidden!
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Question Programming in Ubuntu

    What compiling softwares do you use in Ubuntu to program in the following languages: c, c++, java, pc assembly, mips? Any other suggestions?

    To get gcc, g++:
    sudo apt-get install build-essential

    Moved to Programming Talk forum.
    Last edited by suki; January 3rd, 2007 at 05:55 PM.
    Intel Pentium M Processor 740
    Intel PRO/Wireless 2200BG
    Realtek ALC250

  2. #2
    Join Date
    Oct 2005
    Location
    Jacksonville, FL
    Beans
    29,420

    Re: Programming in Ubuntu

    Move over to Programming Talk.
    In the world of Linux, who needs Windows and Gates...

    Got most of my golden beans at an auction on eBay (with a couple of free drinks).

  3. #3
    Join Date
    Jan 2006
    Beans
    4,208
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Programming in Ubuntu

    gcc is one of the staples here.

  4. #4
    Join Date
    May 2006
    Beans
    475
    Distro
    The Feisty Fawn Testing

    Re: Programming in Ubuntu

    Language : Compiler/Emulator

    C: gcc
    C++: g++
    Java: javac, gcj, jikes, eclipse(yes, eclipse has its own compiler)
    x86 assembly: libASM, asm-toys
    MIPS Assembly: http://www.linux-mips.org/wiki/Emulators

  5. #5
    Join Date
    Nov 2006
    Beans
    Hidden!
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Programming in Ubuntu

    Quote Originally Posted by maxamillion View Post
    Language : Compiler/Emulator

    C: gcc
    C++: g++
    Java: javac, gcj, jikes, eclipse(yes, eclipse has its own compiler)
    x86 assembly: libASM, asm-toys
    MIPS Assembly: http://www.linux-mips.org/wiki/Emulators
    Do you happen to know if there will be a graphical pop up if needed for javac? If so does it take a while?
    Intel Pentium M Processor 740
    Intel PRO/Wireless 2200BG
    Realtek ALC250

  6. #6
    Join Date
    Apr 2006
    Beans
    1,979
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Programming in Ubuntu

    Javac is a command line utility, you compile stuff like this:

    Code:
    javac myFile.java
    or
    Code:
    javac *.java
    to compile all .java files in the current directory. It's generally pretty fast unless your processor is slow. There's no graphical popup.

  7. #7
    Join Date
    Jun 2006
    Location
    CT, USA
    Beans
    5,267
    Distro
    Ubuntu 6.10 Edgy

    Re: Programming in Ubuntu

    Suki,

    Excuse me if I am wrong, but it looks like you are beginnig programmer. We had a poll recently, in opinion of many python is best language for a beginner. Less pain, more fun. Is there special reasons you want to go C/C++/Java?

  8. #8
    Join Date
    Apr 2006
    Beans
    1,979
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Programming in Ubuntu

    Please stop with the python evangelism. If he wants to use C/C++/Java, then that's his choice.

  9. #9
    Join Date
    Jan 2006
    Location
    Grønland,Oslo
    Beans
    618

    Re: Programming in Ubuntu

    The Code::Blocks guide is now moved to
    o---> http://ubuntuforums.org/showthread.p...70#post2816470 <---o Go there


    ---------------- THIS TEXT BELOW IS OBSOLETE AND OLD, NO LONGER IN USE -------------------
    ---------------- Este texto abaixo não é mais longo no uso ----- (ir) vá a http://ubuntuforums.org/showthread.p...70#post2816470

    Install necessities
    $ sudo apt-get install build-essential subversion

    $ sudo apt-get install automake1.9 autoconf libtool

    $ sudo apt-get install libxxf86vm-dev libgtk2.0-dev wx-common libwxgtk2.6-0 libwxgtk2.6-dev wx2.6-examples

    Optionally install wxWidgets version 2.8. Version 2.8 comes with Ubuntu 7.04.
    $ sudo apt-get install libwxbase2.8-dev libwxgtk2.8-dev wx2.8-doc wx2.8-examples wx2.8-headers wx2.8-i18n

    $ sudo ldconfig
    -------------

    Download the latest version of Code::Blocks
    $ mkdir $HOME/cb
    $ cd $HOME/cb

    $ svn checkout http://svn.berlios.de/svnroot/repos/codeblocks/trunk

    Cd into source directory
    $ cd trunk

    Read instructions
    $ cat BUILD

    Configure source.
    $ ./bootstrap
    $ ./configure --enable-contrib

    Compile it
    $ make

    Install it
    $ sudo make install
    ----------------------------------------------

    Run & test it
    $ codeblocks

    At first start, select "GNU GCC compiler" from the list.

    Where did it put it? In case you wanna create an icon for C::B?
    $ which codeblocks
    ----------------------------

    Note 1:
    If you want to develope OpenGL (glut) applications, install FreeGlut first
    $ sudo apt-get install freeglut3 freeglut3-dev

    In Feisty Fawn (Ubuntu 7.04), get also libxmu-dev and libxxf86vm-dev
    $ sudo apt-get install libxmu-dev libxxf86vm-dev

    An important tip: Say: /usr when it asks "Please, Select GLUT's location:" in the Code::Blocks' glut-wizard (project wizard).
    Read also the Note 2 below.
    ------------------------------

    Note 2 !:
    If you want to develope GLFW applications, install GLFW first ( http://glfw.sourceforge.net/ )

    And fix a minor bug in Ubuntu 6.06, 6.10 and maybe in 7.04.


    EDIT 24.feb.2007:: You can fix the following "Xxf86vm" problem by installing libxxf86vm-dev package.
    $ sudo apt-get install libxxf86vm-dev

    [[
    During compilation of OpenGL , Glut and GLFW apps, the Code::Blocks will complain that it cannot find and link to "Xxf86vm" library.
    Ubuntu has Xxf86vm, but it's not sym-linked properly. Does Ubuntu's dev-people know about this "bug" ?
    $ locate Xxf86vm
    ....

    This command will fix the error.
    $ sudo ln -s /usr/lib/libXxf86vm.so.1 /usr/lib/libXxf86vm.so

    You may need to update the cache of dynamic libraries
    $ sudo ldconfig
    ]]
    ------------------------------

    Note 3:
    Code::Blocks' source code is updated quite frequently. You can update your version by re-running these commands
    $ cd $HOME/cb
    $ svn checkout http://svn.berlios.de/svnroot/repos/codeblocks/trunk
    ...
    ...
    ...
    $ sudo make install

    Enjoy.
    ------------------------------

    Note 4 , c-cpp-reference:
    Do not forget to install the "c-cpp-reference" package. Use your Synaptic and get the package. It will put some HTML help files in the /usr/share/doc/c-cpp-reference/ directory. Start Firefox and open /usr/share/doc/c-cpp-reference/index.html

    Also these web C/C++ sites are very helpful:
    http://www.cppreference.com/
    +
    http://www.yolinux.com/TUTORIALS/LinuxTutorialC++.html
    --------------------------------------------------------------

    Note 5 , Important GLUT / OpenGL guides:
    Redbook.html
    (Redbook.html )
    Bluebook.html
    http://www.opengl.org/code/category/C19/
    http://nehe.gamedev.net/
    http://ubuntuforums.org/showthread.php?t=333867#9


    GLUI = OpenGL based GUI library (buttons, edit boxes, list boxes etc...)
    http://glui.sourceforge.net/
    --------------------------------------------------------------

    Note 6 , wxWidgets examples:
    WxWidgets examples are installed in /usr/share/doc/wx2.6-examples/examples/ or /usr/share/doc/wx2.8-examples/examples/ directories.
    Use the "unpack_examples.sh" script (in the same directory) to unpack the samples to your $HOME directory. For example, run:
    $ /usr/share/doc/wx2.8-examples/examples/unpack_examples.sh $HOME/wxwidgets2.8
    --------------------------------------------------------------

    Note 7 , Other important programming resources:
    http://www.futuredesktop.org/opportunities.html
    Last edited by moma; August 22nd, 2007 at 09:36 AM.

  10. #10
    Join Date
    Nov 2006
    Beans
    Hidden!
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Programming in Ubuntu

    Quote Originally Posted by Tomosaur View Post
    Javac is a command line utility, you compile stuff like this:

    Code:
    javac myFile.java
    or
    Code:
    javac *.java
    to compile all .java files in the current directory. It's generally pretty fast unless your processor is slow. There's no graphical popup.
    I was aware of the line to compile. The reason I asked about graphical popup is because I developed a small game on Netbeans with Windows and I wanted to see how it ran on Ubuntu.

    Do you happen to know of any java compiler that's useful to see GUI popup?
    Intel Pentium M Processor 740
    Intel PRO/Wireless 2200BG
    Realtek ALC250

Page 1 of 2 12 LastLast

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
  •