Re: [gtkmm] (no subject)



On Wednesday 13 August 2003 9:52 pm, nkorde engin umich edu wrote:
> > i am using suse 8.x to compile gtkmm progs. the sample prog intutorial
> > did compile  but when I tried to run it this is what i get this
> > 'error while loading shared libraries: libgtkmm-2.0.so.1: Cannot open
> > shared object file: No such file or directory'
> > But that file is there sitting in my /usr/local/lib
> > What can I do to get it loaded ?
>
> Make sure /usr/local/lib is listed in /etc/ld.so.conf and re-run
> /sbin/ldconfig
>
> Hope that helps,
> ~Ainsley
>
> Well i did it.. i ran /sbin/ldconfig and ran /etc/ldconfig as root. Then
> recompiles the simple.cc fron tutorials, it did compile but when i run it
> as root i get
>
> Xlib: Connection to ":0.0" refused by server
> Xlib: No protocol specified
>
>
> (simple:1286):Gtk-WARNING: ** Cannot open display:
> Then if i compile it as non-rrot and run it i get
> /simple

Why are you running it as root, and what does "get /simple" mean?  Are you 
trying to do execute it from the command line in a X terminal after changing 
to root after running su?  If so, trying doing the following before running 
su:

xhost +localhost

Chris.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]