PDA

View Full Version : Programing Programs for Linux



Elite_Gamer04
29th June 2004, 02:02 AM
Just wondering if someone could point me in the right direction for a Program to write/compile C and C++ code on Fedora Core 2 or better still all Distro's of Linux?

Zathrus
29th June 2004, 02:22 AM
gcc/g++ will happily compile C/C++ (respectively) code. If you don't have it installed you can install it from the CD/DVD under the "Developlment" section.

If you want a GUI -- don't ask me. I code on Unix for a living, but it's all command line.

Elite_Gamer04
29th June 2004, 02:37 AM
Ah Im afford Im looking for GUI atm atleast as Im only beginning but thanks anyways ;)

ghaefb
29th June 2004, 02:42 AM
You can start here: http://ghaefb.fedorausers.org/tutorials.html

And I'm working on GTK+ tutorials. GUI programming.. comming soon :)

You can check out: http://www.gtk.org or http://www.gtkmm.org
look for tutorials and stuf
hope it helps

Elite_Gamer04
29th June 2004, 02:54 AM
Thanks very much, yet again ur tutorials come in handy :P. Just 1 more thing, Where can I grab GCC compiler you state I need in ur tutorial from?

ilja
29th June 2004, 03:00 AM
yum install gcc
???

ghaefb
29th June 2004, 04:41 AM
Almost every Linux distro comes with gcc compiler, you can find it under Development tools or something similar.

rogue
29th June 2004, 05:36 AM
As you might have found from following the gtk links, Glade2 (GTK+ interface builder), Anjuta (GTK/GNOME IDE), and KDevelop (KDE IDE) are some of the favored Linux desktop development tools... they can be found on the Fedora CD's and/or here (http://dag.wieers.com/packages/).

Ug
30th June 2004, 08:21 PM
In order to get gcc, you just have to install the "Development" category, when installing Fedora. Or by using the "Add/Remove Programs" GUI to install the category.

crackers
1st July 2004, 04:11 PM
And then you get to decide which windowing toolkit to use: GTK, KDE/QT, wxWindows, Motif (yuck - just my opinion), etc. Or you could go "neutral" and use Java... :D

ewdi
1st July 2004, 04:12 PM
gtk got my vote :p i would try qt if there is more flexible licensing :)

Ug
1st July 2004, 06:15 PM
gtk got my vote :p i would try qt if there is more flexible licensing :)aye, gtk is my preference

David
2nd July 2004, 01:10 AM
Glade interface designer is really nice for developing s/w interfaces using the gtk+ widget toolkit. It's an IDE, a bit like Borland Delphi or c++ Builder. I think I installed it like so: yum install glade. I also recently found SDL developers kit which is cool for interfacing with your hardware, enabling you to use your video card, sound card, joystick etc. So if you want to output to your GUI this is at least one way of doing it. I think yum install SDL-devel should get you that. Then you can #include"SDL.h" in your c/pp programs. Google for SDL tutorials to get started with it.

You should also learn to compile files with make. It will be important if you start to write larger projects. There's a good tutorial for it here (http://www.eng.hawaii.edu/Tutor/Make/).

If you're just starting out (or even if you're not) this (http://newdata.box.sk/bx/c/htm/fm.htm) is a good book to read.

If you're looking for an actual IDE-type developer kit I'm afraid I can't help you, but I believe Borland are developing Linux versions of both Delphi and C++ Builder. But, to be honest, I don't think much of them anyway. I bought C++ Builder a while back and just couldn't get to grips with it. It's nice having everything hidden behind a friendly interface at first, but sooner or later you're going to have to add your own code and if you've not had any practice (cos the damn IDE's been doing it all for you) you're only going to struggle. In the end I stopped using it and started using Cygwin for windows instead. I'm sure I'm in the minority (they're certainly popular tools) but they just didn't work for me. Btw, C++ Builder also has support for gtk+ widgets.

So I'd recommend using a straight forward text editor like gedit or emacs. I actually prefer vim myself but I'm told emacs has some nice linux-friendly features. Gedit's probably the simplest and easiest to use though.

Ug
2nd July 2004, 04:14 AM
Glade can also be installed off the FC Cd's. ;)

Viro
11th July 2004, 12:13 AM
If you're learning C++ code under Linux, use the commandline tools like gcc/g++ and a good text editor. I've found these to be much easier to use than the huge do it all KDevelop. Besides, what are you learning to do? To program or just to use an IDE?

crackers
11th July 2004, 04:30 AM
Besides, what are you learning to do? To program or just to use an IDE?
Exactly - this is the same advice I (and many other) long-time developers give to people just starting out, especially in Java. Learn the language first, then you can use an IDE to make yourself more productive.

micha
11th July 2004, 05:41 AM
I use C++ and FLTK for my software. This has the advantage to quickly build the GUI (thanks to fluid) and to be multiplateform (compile under Windows without changing a line of code). My software are all 3D computer graphics software, so I focus on OpenGl not on the GUI. FLTK is a light, simple toolkit, and it works very well.

lightismagic
12th July 2004, 01:28 PM
micha,
I installed the fltk-rpm today for using it with the OpenEXR software from ILM. Now ./configure in OpenEXR gives me the message that the exrdisplay will not be installed because my version of fltk (1.1.4) does not support OpenGL. Do you know if the rpm-package install fltk with or without OpenGL support and do I have to reinstall fltk again from source?
thanks
lightismagic

Elite_Gamer04
13th July 2004, 02:23 AM
I've decided to go "command line" so can anyone tell me what text editor to use and what to save it as and also what/how to compile it in C++? I've installed all development packages so I just need some professional linux programmer to give a beginner a hand :)

ghaefb
13th July 2004, 02:44 AM
You can use any text editor. I use emacs. Gedit is good for beginners.

Here you have some beginner info -> http://ghaefb.fedorausers.org/tutorials.html

micha
13th July 2004, 07:26 AM
micha,
I installed the fltk-rpm today for using it with the OpenEXR software from ILM. Now ./configure in OpenEXR gives me the message that the exrdisplay will not be installed because my version of fltk (1.1.4) does not support OpenGL. Do you know if the rpm-package install fltk with or without OpenGL support and do I have to reinstall fltk again from source?
thanks
lightismagicYou have to use the FLTK packages from the official Fedora Core 2 servers:
http://download.fedora.us/fedora/fedora/2/i386/RPMS.stable/
You'll get FLTK with OpenGL support, but I don't know about OpenEXR.

lightismagic
13th July 2004, 08:26 AM
Thanks micha! Sorry, forgot to mention that I'm running the x86_64 version of FC 2. I installed fltk via yum out of the dag repository. I'm not shure if there is any difference to the i386 version of this package or the rpm on the official fedora servers. OpenEXR is High dynamic-range picture file format developed by Industrial, Light and Magic (ILM) used in film and animation production. I just want to play around a little with to see how it works and also to find out if it's running on 64-bit linux. So when I suppose that the fltk install is ok the problem may also be elsewhere in the configuration of my machine. The still not available 64-bit ATI drivers are a main disadvantage....

kind regards

Drine
6th December 2004, 03:43 PM
Is there anywhere I can download some graphics card drivers for RHL9?

Drine
6th December 2004, 03:48 PM
If anyone Know where to find some decent info on programing or some pre written code i'd be grate full i've tried Planet source code but i'm still confused.

crackers
7th December 2004, 04:37 AM
You're not going to learn how to program by looking at source code - you have to understand what you're doing first. I'd go to a bookstore and find a book on beginning or introductory programming. There's a decent book on "How to Program" using Python - can't remember the title - that will at least get your feet wet and let you determine whether or not you want to continue.

lech
8th December 2004, 10:48 PM
Hi,

I'm new to developing on linux(gcc) and I installed a nice clean FC3 but now I have trouble installing the development packages with the install applications tool... it keeps going on about dependancies... I tried yum to install the packages it depends on (like libselinux) but it tells me they are allready installed... :S

Lech

lionel
9th January 2005, 03:21 PM
Need help with software development (http://www.rent-a-pro.com/)?

Looking for independent contractors (http://www.rent-a-pro.com/) ?

Rent-A-Pro.COM consulting and outsourcing marketplace, where you can post your work request free and receive bids from a global pool of knowledge workers and service providers.

freelance coders (http://www.rent-a-pro.com/)
IT Outsourcing (http://www.rent-a-pro.com/)

rogue
9th January 2005, 07:01 PM
wow... that's quite spammy of you lionel. I sure won't ever visit the site.

TSUtiger
2nd February 2005, 03:29 AM
Can anyone point me in the right direction to using fedora commands such as useradd password. I am trying to write a program in C++ that will create user accounts, but I don't know how to use the commands in the program. I can use the commands in the shell just not sure how to implement them in C++. Please Help! Email anything is greatly appreciated.

Void Main
2nd February 2005, 03:39 AM
All you need is vim, vim. vim is all you need. Oh, and gcc. :)

crackers
2nd February 2005, 04:56 AM
You can execute command-line programs in C/C++ through system or one of the exec methods. Although wrapping those up in a C++ program is pretty much like using an elephant gun on a fly...