Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: Programming in Ubuntu

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

    Re: Programming in Ubuntu

    Quote Originally Posted by pmasiar View Post
    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?
    The reason for such languages is because of courses taken and intend to take put importance on said languages. According to one of my professors "I want you to feel the pain".
    Intel Pentium M Processor 740
    Intel PRO/Wireless 2200BG
    Realtek ALC250

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

    Re: Programming in Ubuntu

    Quote Originally Posted by moma View Post
    Start with the Code::Blocks IDE: http://codeblocks.org/

    This is how to tame the Code::Blocks IDE for C/C++ programming in Ubuntu 6.06/6.10.

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

    $ sudo apt-get install automake1.9 autoconf libtool

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

    $ 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

    Prepare for it
    $ 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

    An important tip: Say: /usr when it asks "Please, Select GLUT's location:" in the Code::Blocks' glut-wizard (project wizard).
    Read also 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 and 6.10.
    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 have a reason for this bug ?
    $ locate Xxf86vm
    ....

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

    Enjoy.
    Very useful, thank you!
    I didn't follow your Note 1 and 2 because I didn't think I would need those two features until much later. But if I do need them, if uses the commands as is would it still be okay even though Code Blocks is already installed?
    Intel Pentium M Processor 740
    Intel PRO/Wireless 2200BG
    Realtek ALC250

  3. #13
    Join Date
    Jan 2006
    Location
    Palmela, Portugal
    Beans
    660

    Re: Programming in Ubuntu

    Quote Originally Posted by suki View Post
    if uses the commands as is would it still be okay even though Code Blocks is already installed?
    Yes.
    You can run the commands (in Note 1 and 2) either before or after installation of Code::Blocks.
    ------

    Note:
    Code::Blocks' source code is updated quite frequently. You can update your version by re-running the commands
    $ cd $HOME/cb
    $ svn checkout http://svn.berlios.de/svnroot/repos/codeblocks/trunk
    ...
    etc.
    ...
    $ sudo make install
    Last edited by moma; January 4th, 2007 at 09:13 AM.

  4. #14
    Join Date
    Dec 2006
    Location
    Lebanon
    Beans
    181
    Distro
    Gutsy Gibbon Testing

    Re: Programming in Ubuntu

    Quote Originally Posted by suki View Post
    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?
    you can install netbeans5.5 on your ubuntu box and try to compile/launch this prog from it (since it was originally compiled on netbeans/windows). if its a jar try from the console java -jar xxx.

    good luck
    Ubuntu 7.10 Gutsy - Laptop: F-S Amilo M-1437 - Everything working (only the modem is not!)-
    Linux registered user # 438061 | Ubuntu registered user # 10651

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

    Re: Programming in Ubuntu

    I don't understand what you mean by GUI popup. No compiler I've used has done anything except give a text output. Do you mean 'will it compile a GUI program'? The answer is yes. You need to RUN the compiled program, however.

  6. #16
    Join Date
    Oct 2004
    Beans
    2,324

    Re: Programming in Ubuntu

    Quote Originally Posted by moma View Post
    Start with the Code::Blocks IDE: http://codeblocks.org/

    This is how to tame the Code::Blocks IDE for C/C++ programming in Ubuntu 6.06/6.10.

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

    $ sudo apt-get install automake1.9 autoconf libtool

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

    $ 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
    hi, thanks!!
    Many useful. May i suggest an extra option?

    Replacing 'sudo make install' with 'sudo checkinstall -D' will create an deb packages
    that make it easier to install and uninstall and/or distribute.
    Just need to run and change at the option [2] - name: trunk -> codeblocks
    and [3] - Version: 'unacceptable several lines of trunk numbers' -> something your prefer on one line, like -r3511 or 20070120-3511.

    And a nice manageable deb will be produced
    Last edited by Rui Pais; January 20th, 2007 at 10:58 AM.
    ___________________________________
    ESTRAGON: We've lost our rights?

  7. #17
    Join Date
    Jun 2005
    Beans
    2
    Distro
    The Feisty Fawn Testing

    Re: Programming in Ubuntu

    While trying to compile Code::Blocks from svn, the g++ keeps on finding errors like:
    ../../../src/include/safedelete.h:18: error: extra ';'
    and so on for many other header files...
    Is there something wrong with g++ 4.1.2?
    Is there some "known" fix for this or just hand fixing all the header files?

    thanks

Page 2 of 2 FirstFirst 12

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
  •