LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   GTK+/GNOME programming (https://www.linuxquestions.org/questions/linux-newbie-8/gtk-gnome-programming-668874/)

IshanJ 09-10-2008 05:08 AM

GTK+/GNOME programming
 
I have a few questions about gtk+/GNOME programming:
  1. I read in a book that if I one is using GNOME, all the libraries needed for GNOME programming is available in that system. Is that true for all the cases?
  2. Can I use something like #include <sys/gtk.h> or #include <gnome.h> in my programs?
  3. I'm using ubuntu 7.04 and when I tried to #include some headers in a program, there was an error message from the compiler saying that the header gnome.h was not found. Can I find that header in my system? Or should I have to install everything needed for GNOME programming from the beginning? If so what should I do?
  4. In the other case, when I tried to install gtk+1.2.6, again there was an error saying that the path for the GLIB(LD_LIBRARY_PATH) was not found. Does this variable(LD_LIBRARY_PATH) exist in the configure file? But I already had installed glib 1.2.4(as I remember). And apparently it was installed in /usr/local. What is reason for this error message?
  5. Isn't glib a default library in a GNOME environment?

Whyte 09-10-2008 05:45 AM

In most distributions, libraries are split in two packages: one with the actual "runtime" library files (.so), and one with the files needed to develop applications for that library (headers, .a files, etc).

So if you're looking for "libfoo3.0", you may want to also install "libfoo-3.0-dev", or "libfoo-3.0-devel", or whatever name your distro uses.


All times are GMT -5. The time now is 09:53 PM.