![]() |
![]() OCAU News - Wiki - PC Database - QuickLinks - Job Search - Pix - Sponsors |
|
|
#1 |
|
Member
Join Date: Jan 2002
Location: Melbourne
Posts: 4,194
|
I recently installed Ubuntu and was expecting it to come with a c/c++ development environment, but can't see one installed.
I'm new to Linus, and I want to be able to do some basic c and c++ programming, maybe some GUI stuff and communication via serial port and ethernet, so can anyone suggest a good environment/compiler to use? |
|
|
|
|
|
#2 |
|
Member
Join Date: Jan 2002
Location: The Cocos Islands
Posts: 2,090
|
You;ll neet to install the C and C++ compilers as well as automake (amongst other things) if they weren't selected when you installed Ubuntu.
apt-get install <package name>
__________________
Listing computer details in your signature is like describing your genitals to complete strangers on the street. |
|
|
|
|
|
#3 |
|
Member
Join Date: Jan 2003
Location: Briz Vegas
Posts: 2,013
|
google the following
GCC GTK+ Gnome
__________________
Q6600 @ 3.6GHz Scythe Ninja | Gigabyte GA-EP43-DS3R | 4GB PNY 6400 @ 1000Mhz| Zotac GTX275 |
|
|
|
|
|
#4 |
|
They're in the kernel!
Join Date: Jun 2002
Location: Melbourne
Posts: 7,721
|
If you only want to do basic C programming, all you'll need is gcc, as well as your favourite text editor, eg. vim, which of course should already be installed.
If you're familiar with those tools and want to use them, you may want to make sure that make is installed as well as the debuggers such as gdb or ddd, and your favourite revision control system such as subversion (svn), git, cvs etc, although you don't need any of these things installed if you're just starting out with programming in a Linux/Unix environment. Of course many of the things I have already mentioned are probably already installed. I don't know anything about GUI programming personally, everything I program runs within the shell.
__________________
"How is anyone supposed to know that this isn't just a bunch of crap?" - Richard Feynman.
|
|
|
|
|
|
#5 |
|
Member
Join Date: Jan 2002
Location: Melbourne
Posts: 4,194
|
I didn't actually see any options when I installed Ubuntu. I set up my partitions and followed the instructions... perhaps there was an "advanced user option" that I didn't see.
I've used GCC when programming Atmel microcontrollers. |
|
|
|
|
|
#6 |
|
Member
Join Date: Jul 2002
Location: Rutherford, NSW
Posts: 2,446
|
Code:
sudo apt-get install build-essential Code:
sudo apt-get install anjuta
__________________
~::DEEPSPRING::~
anti-deity, superstar Last edited by deepspring; 3rd November 2009 at 4:42 PM. |
|
|
|
|
|
#7 |
|
Member
Join Date: Jan 2002
Location: Melbourne
Posts: 4,194
|
I just installed "build-essential" using that apt-get command, and used the "Ubuntu Software Center" to install Anjuta.
Linux noob questions: What exactly is "build-essential"? How do I know where it is installed? How do I even know if it has been installed (say if I forget about it later and want to know if I have installed it)? How do I know if "make" is installed? When I type "make" into the terminal, I get the below response, which I assume means that it is installed. Code:
make: *** No targets specified and no makefile found. Stop. I remember using KDevelop at uni to do some basic programming. Is it any good? |
|
|
|
|
|
#8 |
|
Member
Join Date: Nov 2006
Posts: 294
|
Yes, make is installed. You can verify this by running the program itself:
Code:
make -v Code:
which make Code:
dpkg -l make Code:
dpkg --list |
|
|
|
|
|
#9 |
|
Member
Join Date: Jul 2002
Location: Rutherford, NSW
Posts: 2,446
|
build-essential is just a package mask that automatically installs all the standard GNU C/C++ compilers, development libraries, headers, and various utilities needed to write C/C++ programs in Ubuntu/Debian linux without having to manually install them individually.
Extra development packages (kernel, ncurses, GTK, SDL, Oyster, Boost, etc) can be manually installed via the Synaptic Package Manager (I think it is located: System > Administration > Synaptic Package Manager). You shouldn't need any of these if you are writing simple console based C/C++ programs. If you want to write Gnome applications, you need to install GLADE and the relevant Gnome development packages. KDevelop is a very good IDE. However, it is targeted at KDE desktop environment development more than anything. If you want to use it, you can install it like so: Code:
sudo apt-get install kdevelop
__________________
~::DEEPSPRING::~
anti-deity, superstar Last edited by deepspring; 4th November 2009 at 5:11 AM. |
|
|
|
|
|
#10 |
|
New Member
Join Date: Sep 2009
Location: Sydney
Posts: 102
|
imo you should be asking this question in the forum dedicated to the distro, You will get fast and reliable answers there.
Not saying you won't here, Just saying it will probably be more efficient. I used to work with linux a bit and whenever I had questions I would just ask the forum dedicated to the distro I was using. Theres at least a few guru's for each distro and that's where they will probably be.
__________________
||Q9550 @ 3.4||TT Blue orb II-Temporary||4x2GB XMS2 DDR2 800||EP45-DS3R||HD4870 1GB XpertVision||Lancool A-64 |
|
|
|
|
|
#11 |
|
Member
Join Date: Jul 2005
Location: Melb
Posts: 145
|
For linux I recommend the Eclipse IDE, with the CDT (C/C++ Development Tools) extension
|
|
|
|
|
|
#12 |
|
Member
Join Date: Jul 2001
Location: Hillcrest, Logan
Posts: 1,676
|
Isn't that a list of what's installed, not what's available?
__________________
"Loyalty to the country always. Loyalty to the government when it deserves it." -Mark Twain "Say what you want and be who you are because those who mind don't matter and those who matter don't mind." -Dr. Seuss |
|
|
|
|
|
#13 |
|
Member
Join Date: Nov 2006
Posts: 294
|
|
|
|
|
|
|
#14 | |
|
Member
Join Date: Jun 2001
Location: Canberra
Posts: 3,445
|
Quote:
Gah! What a monster! vim + exuberant ctags = win. |
|
|
|
|
|
|
#15 |
|
Member
Join Date: Mar 2004
Location: Cydonia
Posts: 587
|
I think I'd have a heart attack if I had to code from command line again.
IDEs all the way! |
|
|
|
![]() |
| Bookmarks |
|
Sign up for a free OCAU account and this ad will go away! |
| Thread Tools | |
|
|