LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-14-2014, 06:35 PM   #1
tekra
Member
 
Registered: Aug 2010
Location: Brisbane, Australia
Distribution: Gentoo, Slackware, PCLOS, Debian
Posts: 230
Blog Entries: 2

Rep: Reputation: 50
Best IDE for occasional coding of Gtk in C. [SOLVED]


Most of my time goes in hardware design and assembler, but I need to write a GUI interface for use by a PC running Linux to control a peripheral via a USB port.

I've tried Glade a couple of times, but feel that the effort involved would be better spent further back up the chain. Having copied some exercizes off the Net to create simple GUI screens using C and Gtk, I'm thinking that an IDE might help keep things together between coding sessions that are often several months apart.

Netbeans looks interesting, and I'm sorting out installation conflicts, but thought I'd post this to get feedback from those with more experience. Nothing that relies on KDE/Qt4, please - too big and clumsy for my Gentoo/Openbox setup.

Any suggestions or favourites for a C-Gtk IDE?

Last edited by tekra; 08-16-2014 at 01:51 PM.
 
Old 08-14-2014, 06:54 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
I use Vim/gVim and occasionally Geany. I'm sure someone(s) will also recommend emacs.

You can also check out the results of the LQ member's choice awards http://www.linuxquestions.org/questions/2013mca.php. Just scroll down to the IDE results.
 
Old 08-14-2014, 07:01 PM   #3
tekra
Member
 
Registered: Aug 2010
Location: Brisbane, Australia
Distribution: Gentoo, Slackware, PCLOS, Debian
Posts: 230

Original Poster
Blog Entries: 2

Rep: Reputation: 50
I've never come to terms with Vim, not sure about Geany, and regard Emacs as a religion, not an app.

I've long used Nedit for pretty much everything, since microcontroller code assembly is still best done using commandline tools IMHO.

But thanks for pointing out the elephants.
 
Old 08-14-2014, 07:07 PM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Geany is lightweight comparing to other IDE. I like its simplicity
http://www.geany.org

Last edited by keefaz; 08-14-2014 at 07:10 PM. Reason: added geany url
 
Old 08-14-2014, 07:09 PM   #5
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
Quote:
Originally Posted by tekra View Post
I've long used Nedit for pretty much everything
Sounds like you've answered your own question.
 
Old 08-14-2014, 07:12 PM   #6
tekra
Member
 
Registered: Aug 2010
Location: Brisbane, Australia
Distribution: Gentoo, Slackware, PCLOS, Debian
Posts: 230

Original Poster
Blog Entries: 2

Rep: Reputation: 50
Desperately seeking a bit of variety, but resigned to status quo in perptuum.
 
Old 08-14-2014, 07:41 PM   #7
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
Although you seem to have discounted Vim, I would urge you to reconsider it as the editor for your development environment - really hard to beat and not actually difficult to learn if you can dedicate maybe an hour to vimtutor and a little experimentation.

Other than Vim, my own "IDE" consists of Tmux with rxvt-unicode plus Vim as editor (but you could just as easily use any shell editor). All shell based but browsable via simple keyboard strokes.

If you are not familiar with Tmux then think of it as a friendlier Screen. If not familiar with screen then you will have no mental blocks to overcome! It is probably available for your development host system.

I have scripted my login to start tmux with sessions for all my active projects plus admin tasks and remote shells. When I begin a new project I copy/paste/configure a simple shell script to start the necessary tmux terminals I will need, and add it to my login tmux script. When a project becomes inactive I simply chmod -x the corresponding script and the tmux session is no longer opened, but easily restored.

Within each session the paths are set, database clients opened if applicable - life is good!
 
Old 08-14-2014, 08:08 PM   #8
tekra
Member
 
Registered: Aug 2010
Location: Brisbane, Australia
Distribution: Gentoo, Slackware, PCLOS, Debian
Posts: 230

Original Poster
Blog Entries: 2

Rep: Reputation: 50
Thanks for this insightful post. I'll certainly give it some thought, and Tmux a try; it's in the Gentoo repo.
 
Old 08-14-2014, 08:15 PM   #9
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
Quote:
Originally Posted by tekra View Post
Thanks for this insightful post. I'll certainly give it some thought, and Tmux a try; it's in the Gentoo repo.
I think that you will like it!

It really allows you to manage complex projects with simple shells and already available editors, etc.

It is worth creating a ~/.tmux.conf other than the deafult, in particular change the command bind key to Ctl-a, much easier on the fingers than Ctrl-b:

Code:
In ~/.tmux.conf:

#Enable next lines to use ^a instead of ^b as the control sequence start char
set-option -g prefix C-a
unbind C-b
If you get it running and are interested I'll post the essentials of how I script my sessions and maybe a few tricks I have learned or figured out. Very easy, I don't know how I ever lived without it!

Good luck!
 
Old 08-14-2014, 08:21 PM   #10
tekra
Member
 
Registered: Aug 2010
Location: Brisbane, Australia
Distribution: Gentoo, Slackware, PCLOS, Debian
Posts: 230

Original Poster
Blog Entries: 2

Rep: Reputation: 50
OK, I'm about to hit the "upgrade the lot" button, so after I've sorted the inevitable mess I'll put the above to work and post back. Much appreciated.
 
Old 08-14-2014, 08:26 PM   #11
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206Reputation: 4206
Great!

I'll be out for the next couple of hours but will check for progress when I return.
 
Old 08-14-2014, 08:35 PM   #12
tekra
Member
 
Registered: Aug 2010
Location: Brisbane, Australia
Distribution: Gentoo, Slackware, PCLOS, Debian
Posts: 230

Original Poster
Blog Entries: 2

Rep: Reputation: 50
Please, no hurry. A couple of days given my schedule: writing first, electronics whenever. But I've got a round tuit, so it WILL happen.
 
Old 08-16-2014, 01:50 PM   #13
tekra
Member
 
Registered: Aug 2010
Location: Brisbane, Australia
Distribution: Gentoo, Slackware, PCLOS, Debian
Posts: 230

Original Poster
Blog Entries: 2

Rep: Reputation: 50
First up, Tmux looks to be useful in allowing my Raspberry Pi to be set to work compiling code via a network connection, and then detaching from it, so thanks to Astrogeek for that suggestion.

As to the main topic, after reviewing what's on offer, I realized that all are merely GUI front-ends to my established commandline procedures, and hence redundant. This caused me to think more closely about what I was really wanting, which turns out to be something that professional - i.e. full-time - coders would never want or need.

To explain, the last time I wrote C code was eight months ago; before that six months; and this is typical of several of my activities. What I need is a way to re-establish the necessary "mind-set" or mental environment needed to write code. I do this by digging out a heap of info scattered across my hard drive, and in the past have done it the "slacker's way". The resulting waste of time has now become frustrating, needing a solution. What attracted my interest was the phrase "Integrated Development Environment". I regard this info and organized access to it as part of my own "Development Environment", but of course it's not what IDE's are about. Full time code cutters maintain this mind-set as part of their daily work; it's only part-timers like me who need periodic "quick refreshers".

With the increasing popularity of things like Arduino's, Rpi's and the like, this requirement could become more common, which is why I thought this post might be useful. On the other hand, it's a highly individual thing, and trying to standardize it may be neither possible nor desirable. I've adapted my hardware info access methodology as a solution, and that's evolved over many years.

So it seems I'm already living in Code Cutter's Paradise.

But where are my seventy-two virgins?

Last edited by tekra; 08-16-2014 at 01:52 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Coding platform more universal than GTK? Xeratul Programming 16 10-28-2011 05:27 PM
GTK coding style MTK358 Programming 7 05-21-2010 08:27 PM
gtk coding... Zerodark Programming 4 08-21-2003 05:49 AM
raid array ida/c0d0 jcpw Linux - General 0 12-02-2001 05:40 AM
Apache: default.ida ?? jharris Linux - Networking 5 08-10-2001 01:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration