Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 03-18-2005, 09:50 AM   #1
LQ Newbie
Registered: Oct 2003
Distribution: Fedora Core 3
Posts: 8

Rep: Reputation: 0
gtkglarea compiling program problem

i have downloaded and installed the gtkglarea rpm (version 1.2.2). When i try and compile one of the example programs i get the following error.

gcc  simple.c -o simple `pkg-config --cflags gtk+-2.0 --libs` -Wl,-rpath,/usr/lib -lgtkgl -lGLU -lGL
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../ undefined reference to `gtk_type_is_a'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../ undefined reference to `gtk_widget_pop_visual'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../ undefined reference to `gdk_pixmap_ref'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../ undefined reference to `gdk_pixmap_unref'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../ undefined reference to `gdk_window_get_type'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../ undefined reference to `gtk_type_check_object_cast'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../ undefined reference to `gtk_type_check_class_cast'
/usr/lib/gcc/i386-redhat-linux/3.4.2/../../../ undefined reference to `gtk_widget_push_visual'
collect2: ld returned 1 exit status
make: *** [simple] Error 1
After viewing another thread,

my feeling is the problem could be solved by updating gtkglarea, however when i try and install the latest rpm it spits back that OpenGL isn't installed :S This can't be right since i can compile and run other opengl programs.

Could this be a linking problem? Anyone have any suggestions? I am running FC3 and the latest xorg drivers from ati if that helps...

I downloaded a precompiled version of the program i am trying to compile (simple.c - an example gtkglarea program ) and i ran "ldd simple" to determine what libraries it is linking to. Turns out that it is linking to "" whereas my problem seems to stem from "". Not sure if this helps any, but thought i'd add it anyways.

Many Thanks!

Last edited by vas_dee; 03-18-2005 at 08:30 PM.
Old 03-18-2005, 10:02 PM   #2
LQ Newbie
Registered: Oct 2003
Distribution: Fedora Core 3
Posts: 8

Original Poster
Rep: Reputation: 0
my girlfriend knows more about linux than me.. even though i profess to be a linux guru. it took her 2 mins to figure out the problem :P

make install

My question is this. How do i compile a gtkglarea program on the command line? what flags do i need to include?

Last edited by vas_dee; 03-18-2005 at 10:25 PM.
Old 03-19-2005, 05:23 AM   #3
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
if you did ./configure, make, make install, by default this installs it in the prefix /usr/local. check /usr/local/doc for a gtkglarea directory conaining documentation on it's use ( not all apps/libs do this, so there may be nothing there).

If you cannot find any documentation, you'll need to find out what implementation the library uses to pass the flags back to the compiler. There are several implementations out there, some being config scripts ( like the gtk-config or glib-config for the older gnome libraries), pkg-config ( all the newer ( 2.x) gnome libraries use this method, as well as some other libs), and manually passing the flags to the compiler. Since it's using gtk, check /usr/local/lib/pkgconfig for a gtkglarea.pc file ( or something similar) which would be the pkg-config system.


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
problem compiling kde and another program poboy975 Linux - Software 3 01-18-2005 12:41 AM
BZedit won't compile because of gtkglarea derfaust Linux - Software 8 06-30-2004 03:03 PM
Compiling Program Star3132 Linux - General 8 06-29-2004 05:35 AM
Problem with compiling my program. Zeth_htp Linux - Newbie 4 04-04-2003 10:12 PM
QT3 Problem when compiling a program PaladinCowboy75 Linux - Software 0 10-23-2002 09:53 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:13 AM.

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