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.
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
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).
gcc is one of the staples here.
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
Javac is a command line utility, you compile stuff like this:
orCode:javac myFile.javato compile all .java files in the current directory. It's generally pretty fast unless your processor is slow. There's no graphical popup.Code:javac *.java
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?
Please stop with the python evangelism. If he wants to use C/C++/Java, then that's his choice.
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.
Intel Pentium M Processor 740
Intel PRO/Wireless 2200BG
Realtek ALC250
Bookmarks