Started to experiment with GTK programming few days ago after submitting my dissertation. I began with the 'sweet pair' gedit and terminal and ended up referring functions and define in the libraries. eclipse was always good when I used Java, now for more libraries I wanted an IDE to suggest function names. I've worked it out from various blogs and googling, and finally wanted to blog it up.
2. Install Eclipse IDE, you can download everything from the Synaptic PM (or) Ubuntu software center.
3. Open project Properties > C/C++ Build > Settings. Under Tool settings - GCC C++ Compiler - directories, Add the following include directory path from files system.
/usr/include/gtk-2.0
/usr/include/glib-2.0
/usr/include/glib-2.0/glib
4. If you are programming in C you could add the above directories in the GCC C Compiler
5. Add the following line in Expert settings - command line parameters under GCC C++ Compiler
`pkg-config --cflags --libs gtk+-2.0`
5. Finally, add the following line in the GCC C++ Linker - Libraries
/usr/lib/gtk-2.0
/usr/lib32/glib-2.0
Build, Run and start writing programs..
No comments:
Post a Comment