Fatal Error Gtk/gtk.h Ubuntu
Contents |
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers
Gtk.h Download
to any questions you might have Meta Discuss the workings gtk/gtk.h no such file or directory fedora and policies of this site About Us Learn more about Stack Overflow the company Business Learn gtk/gtk.h' file not found mac more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer
Gdk/gdk.h No Such File Or Directory
site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top “fatal error: gtk/gtk.h: No such file or directory” using make up vote 5 down
Ubuntu Gtk/gtk.h: No Such File Or Directory
vote favorite 3 I am trying to use make command to build. I am following this. I am compiling a code using GTK+2 and C language hp@ubuntu:~/amhello$ make make all-recursive make[1]: Entering directory `/home/hp/amhello' Making all in src make[2]: Entering directory `/home/hp/amhello/src' gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c main.c:3:20: fatal error: gtk/gtk.h: No such file or directory compilation terminated. make[2]: *** [main.o] Error 1 make[2]: Leaving directory `/home/hp/amhello/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/hp/amhello' make: *** [all] Error 2 this is the main.c code #include
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta gdk/gdk.h not found Discuss the workings and policies of this site About Us Learn
Fatal Error Gio/gio.h No Such File Or Directory
more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us fatal error: glibconfig.h: no such file or directory Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like http://askubuntu.com/questions/397432/fatal-error-gtk-gtk-h-no-such-file-or-directory-using-make you, helping each other. Join them; it only takes a minute: Sign up gtk/gtk.h not found on Ubuntu c++ up vote 6 down vote favorite I'm rather new to programming and especially when it comes to how to including libraries and alike activities. I've been programming a bit using Python in the past and I've been using http://stackoverflow.com/questions/24955686/gtk-gtk-h-not-found-on-ubuntu-c GTK to create windows, something I've intended to do when programming with c++ as well. To get things started, here's my code: #include
Things LocationTech Long-Term Support PolarSys Science OpenMDM More Community Marketplace Events Planet Eclipse Newsletter Videos Participate Report a Bug Forums Mailing Lists Wiki IRC How to Contribute Working Groups Automotive Internet of https://www.eclipse.org/forums/index.php/t/822618/ Things LocationTech Long-Term Support PolarSys Science OpenMDM Toggle navigation Home Projects Forums Eclipse Community Forums Forum Search: Search Help Register Login Home Home» Language IDEs» C / C++ http://naveenubuntu.blogspot.com/2011/02/configuring-codeblocks-to-compile-gtk.html IDE (CDT)» GTK/GTK.h - No such file or directory(GTK Library) Show: Today's Messages :: Show Polls :: Message Navigator GTK/GTK.h - No such file or directory [message #1435479] Wed, 01 October no such 2014 14:56 Lawrence HerskowitzMessages: 1Registered: October 2014 Junior Member I am using Eclipse IDE for C/C++ Developers version Kepler on a windows 7 machine.. I am trying to compile a simple GTK example. I get an error before compiling saying unresolved inclusion for gtk/gtk.h. After compiling I get an error saying fatal error: gtk/gtk.h no such file or directory. I tried to include the library no such file by going to Project -> properties -> C/C++ Build -> Settings -> Tool Settings -> Cross GCC Compiler -> Includes I typed in the location for the gtk-3.0 library. (C:/GTK/include/gtk-3.0). After doing that I get an error saying glib-2.0 no such file or directory. So I do the same thing (add the library location in include) . Then I get the same no file or directory message for glibconfig.h. So I include that library location. But when I build the proejct I get 4724 errors most of them saying expected ';' or ','... I must be doing something wrong when including the GTK library. Report message to a moderator Re: GTK/GTK.h - No such file or directory [message #1558448 is a reply to message #1435479] Sun, 11 January 2015 13:32 Thorsten BoekerMessages: 1Registered: January 2015 Junior Member Hi Lawrence, I encountered a similar problem at first but then found help here: www.eclipse.org/forums/index.php?t=msg&th=74717&goto=233377msg_233377 However, this only solved the issue of adding all the header files manually. Now I encounter errors like "Function 'G_CALLBACK' could not be resolved". I tried to compile my source-code (the first example of the GTK
can be benefited from it. Pages Home Search Sunday, February 6, 2011 Configuring Codeblocks to compile Gtk based programs Problem: Getting "ERROR: gtk/gtk.h: No such file or directory" while trying to compile code using Gtk library. Information:The problem with above error is that the code which you have written asks to insert gtk/gtk.h contents, but the preprocessor is unable to find that file. The compiler goes through the search path defined by your IDE and could not find the file. This problem can come when either your system does not contain these files and/or the search path is not defined properly.To solve the first issue,you need to download the Gtk+-2.0 development package. Then add search path to find the gtk.h file. Once you have done this, expect it to work as far as compiling process. The linker will then complain about "undefined references". This will indicate that the compiler correctly understood the name and prototypes of all the functions, but now the linker cannot actually find the libraries (actual already compiled libraries) that contain those functions. At this point, you will have to find the setting in your IDE that dictates which libraries you are linking against. Then you need to add search path to find the necessary libraries in LIKER option. To help in searching path a toll called pkg-config can be used.pkg-config will automatically look for the Gtk libraries and will provide an easy mechanism to compile the Gtk programs. Steps: 1) Downloading the gtk+-2.0 development package: Open the synaptic manager and install the 'libgtk2.0-dev' package from it. 2) 2.1) If you want to compile the code from the terminal type the following command(in red color) gcc `pkg-config --cflags --libs gtk+-2.0` 1.c -o hello to compile the .c file There should not be any error after this. 2.2) Configuring Code::blocks I set up options globally since I wanted to use codeblocks just to practice gtk. Go to Settings->Compilers and Debuggers and added: To edit comp