LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-22-2012, 12:00 PM   #1
gurkan
LQ Newbie
 
Registered: May 2012
Posts: 2

Rep: Reputation: Disabled
facing errors while compiling GTK on Pardus


Here is a code below that I try to compile...

#include <gtk/gtk.h>

int main( int argc, char *argv[])
{
GtkWidget *window;

gtk_init(&argc, &argv);

window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_widget_show(window);

gtk_main();

return 0;
}

This code seems very easy but error message while I try to compile isn't simple.

The error message is below;
**********************************************************************
compiling line:
gcc -Wall -g den1.c -o den1 `pkg-config --cflags gtk+-2.0 pkg-config --libs gtk+-2.0`
**********************************************************************
end result is too below:

Package xcb-shm was not found in the pkg-config search path.
Perhaps you should add the directory containing `xcb-shm.pc'
to the PKG_CONFIG_PATH environment variable
Package 'xcb-shm', required by 'cairo', not found
/tmp/ccGKXJ4V.o: In function `main':
/home/gurkan/Belgeler/gtkc-den/den1.c:7: undefined reference to `gtk_init'
/home/gurkan/Belgeler/gtkc-den/den1.c:9: undefined reference to `gtk_window_new'
/home/gurkan/Belgeler/gtkc-den/den1.c:10: undefined reference to `gtk_widget_show'
/home/gurkan/Belgeler/gtkc-den/den1.c:12: undefined reference to `gtk_main'
collect2: ld returned 1 exit status
***********************************************************
It mentions "you haven't library that its called "xcb-shm" or couldn't find location (but there isn't a packet in my system _ I'm using Pardus 2011). Are there anybody which facing similar problem like me?
 
Old 05-22-2012, 12:07 PM   #2
Grady
LQ Newbie
 
Registered: Aug 2007
Posts: 15

Rep: Reputation: 10
Try looking for a package named 'simply 'xcb' or 'libxcb'. That should help. Not sure how Pardus works, but you might have to compile that, then recompile cairo so it has xcb support, and /then/ move back to gtk. But then you might not. Hope that helps.
 
1 members found this post helpful.
Old 05-23-2012, 04:14 PM   #3
gurkan
LQ Newbie
 
Registered: May 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you Grady!

I tried the way that you offer.. It's working but another problem appears on my screen.. It's like a fishing muddy lake.. So you own all hardware in order to dive too, but it doesn't work.. Keeping try...
 
  


Reply



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
[SOLVED] facing serious gtk problems with icon-/image-loading .Lightning Slackware 3 10-06-2011 12:26 PM
facing problem while compiling sc92031.c'. dham_sizzy Linux - Hardware 5 01-19-2009 12:09 PM
Strange errors when compiling GTK progs??? sharma_deepak83 Programming 1 11-21-2004 12:44 AM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 05:03 AM
compiling gaim/ gtk error (two versions of gtk) webazoid Linux - Software 0 07-06-2004 06:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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