Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm getting a serious problem with GTK+. All applications refuse to compile, even the simplest.
It never worked out. I'm using a 64-bit version, so I think he doesn't find his labraries. SuSE sucks really as they move things to other locations. I noticed two GTK versions too. Does anyone have a solution for this?
thanx all.
If you posted the errors you're getting, it would be alot easier. The last 20 lines or so when you execute 'make' is usually sufficient. Also tell us what package(s) you're trying to install.
Last edited by weibullguy; 11-01-2006 at 06:22 PM.
Well... It was a sample demo of GTK+ which I tried to compile and run without makefile, just using g++. Adding the library in the command-line of g++ doesn't help. This is the code :
#include <gtk/gtk.h>
int main (int argc, char **argv)
{
/* Initialize i18n support */
gtk_set_locale ();
/* Initialize the widget set */
gtk_init (&argc, &argv);
/* Create the main window */
mainwin = gtk_window_new (GTK_WINDOW_TOPLEVEL);
/* Set up no GUI elements */
/* Show the application window */
gtk_widget_show_all (mainwin);
/* Enter the main event loop, and wait for user interaction */
gtk_main ();
/* The user lost interest */
exit 0
}
Calling the compiler with g++ testgtk.cpp gives (last lines) :
/usr/local/include/gtk/gtkuimanager.h:144: error: expected constructor, destruct or, or type conversion before ‘*’ token
/usr/local/include/gtk/gtkuimanager.h:145: error: variable or field ‘gtk_ui_mana ger_ensure_update’ declared void
/usr/local/include/gtk/gtkuimanager.h:145: error: ‘GtkUIManager’ was not declare d in this scope
/usr/local/include/gtk/gtkuimanager.h:145: error: ‘self’ was not declared in thi s scope
/usr/local/include/gtk/gtkuimanager.h:146: error: ‘guint’ does not name a type
/usr/local/include/gtk/gtkuimanager.h:148: error: ‘G_END_DECLS’ does not name a type
/usr/local/include/gtk/gtkvbbox.h:50: error: ‘GtkButtonBox’ does not name a type
/usr/local/include/gtk/gtkvbbox.h:59: error: ‘GType’ does not name a type
/usr/local/include/gtk/gtkvbbox.h:73: error: ‘G_END_DECLS’ does not name a type
/usr/local/include/gtk/gtkvpaned.h:49: error: ‘GtkPaned’ does not name a type
/usr/local/include/gtk/gtkvpaned.h:57: error: ‘GType’ does not name a type
/usr/local/include/gtk/gtkvpaned.h:61: error: ‘G_END_DECLS’ does not name a type
/usr/local/include/gtk/gtkvruler.h:61: error: ‘GtkRuler’ does not name a type
/usr/local/include/gtk/gtkvruler.h:70: error: ‘GType’ does not name a type
/usr/local/include/gtk/gtkvruler.h:74: error: ‘G_END_DECLS’ does not name a type
/usr/local/include/gtk/gtkvscale.h:51: error: ‘GtkScale’ does not name a type
/usr/local/include/gtk/gtkvscale.h:60: error: ‘GType’ does not name a type
/usr/local/include/gtk/gtkvscale.h:61: error: ‘GtkAdjustment’ was not declared i n this scope
/usr/local/include/gtk/gtkvscale.h:61: error: ‘adjustment’ was not declared in t his scope
/usr/local/include/gtk/gtkvscale.h:62: error: ‘gdouble’ was not declared in this scope
/usr/local/include/gtk/gtkvscale.h:63: error: ‘gdouble’ was not declared in this scope
/usr/local/include/gtk/gtkvscale.h:64: error: ‘gdouble’ was not declared in this scope
/usr/local/include/gtk/gtkvscale.h:64: error: initializer expression list treate d as compound expression
/usr/local/include/gtk/gtkvscale.h:67: error: ‘G_END_DECLS’ does not name a type
/usr/local/include/gtk/gtkvseparator.h:51: error: ‘GtkSeparator’ does not name a type
/usr/local/include/gtk/gtkvseparator.h:60: error: ‘GType’ does not name a type
testgtk.cpp:3: error: expected constructor, destructor, or type conversion befor e ‘int’
It seems it doesn't find its libraries. Should I remove and re-install GTK or is there a 64-bit problem (e.g. pointer format 64 bits instead of 32)? Is the compiler call OK?
Checked installed packages : some parts of glade were missing. I Wonder if GTK is complete. Building a GTK-application with glade seems ok, except... After closing the main window it doesn't kill its process... (did ps -A). I only provide a main window. Checked C++ builder under Windows but the structures seem to be the same. However I can't check the code for the widgets there. Any ideas for the reason of this hanging?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.