Re: Solaris works! New problem.

From: Joern Clausen (jc@Genetik.Uni-Bielefeld.DE)
Date: Fri Feb 09 2001 - 00:24:32 PST

  • Next message: Oliver Rauch: "Re: scanimage works, but not xscanimage or xsane"

    Hi!

    > Now, new problem. The command line version of scanimage works but I'm
    > having some trouble getting xscanimage to compile. During the configure
    > I get this message:
    >
    > checking for gtk-config... /opt/gtk/bin/gtk-config
    > checking for GTK - version >= 0.99.13... no
    > *** Could not run GTK test program, checking why...
    > *** The test program compiled, but did not run. This usually means
    > *** that the run-time linker is not finding GTK or finding the wrong
    > *** version of GTK. If it is not finding GTK, you'll need to set your
    > *** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point
    > *** to the installed location Also, make sure you have run ldconfig if that
    > *** is required on your system
    > ***
    > *** If you have an old version installed, it is best to remove it, although
    > *** you may also be able to get things to work by modifying LD_LIBRARY_PATH
    > ***
    > *** If you have a RedHat 5.0 system, you should remove the GTK package that
    > *** came with the system with the command
    > ***
    > *** rpm --erase --nodeps gtk gtk-devel
    >
    >
    > The gtk libraries ARE installed in /opt/gtk/lib:
    >
    > $ ls /opt/gtk/lib/libgtk*
    > /opt/gtk/lib/libgtk-1.2.so.0 /opt/gtk/lib/libgtk.so
    > /opt/gtk/lib/libgtk-1.2.so.0.5.1 /opt/gtk/lib/libgtk.so.1
    > /opt/gtk/lib/libgtk.a /opt/gtk/lib/libgtk.so.1.0.4
    > /opt/gtk/lib/libgtk.la
    >
    >
    > And they ARE newer than the version it's looking for.
    > I also did check my LD_LIBRARY_PATH:
    >
    > $ echo $LD_LIBRARY_PATH
    > /usr/X11R6/lib:/usr/openwin/lib:/usr/local/lib:/usr/local/xpm/lib:/usr/local/kde/lib:/opt/gtk/lib

    On the one hand, LD_LIBRARY_PATH does not work in this case, you would
    have to set LD_RUN_PATH. On the other hand, these two environment
    variables are IMHO the wrong solution under Solaris. I personally have
    tweaked all those xyz-config scripts that come with Gtk, Gimp, Imlib etc,
    to return parallel to the -L option the -R option, when called with --libs.
    My gtk-config returns

    fasil:/homes/jc> gtk-config --libs
    -L/vol/gtk-1.2.8/lib -R/vol/gtk-1.2.8/lib -L/usr/openwin/lib -R/usr/openwin/lib -lgtk -lgdk -lgmodule -lglib -ldl -lXext -lX11 -lsocket -lnsl -lm

    and usually configure scripts work out of the box. Ok, Gimp's don't,
    because the developers decided to parse the result of gtk-config and
    throw out everything that does not look like '-L...', but that's a
    different, though sad story.

    -- 
    ----------------------------------------------------------------------------
     Joern Clausen                                        Computer Support Team 
     jc@Genetik.Uni-Bielefeld.DE                    Dept. of Biology / Genetics
     +49 (0)521/106-4826                                University of Bielefeld
    

    -- Source code, list archive, and docs: http://www.mostang.com/sane/ To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com



    This archive was generated by hypermail 2b29 : Fri Feb 09 2001 - 00:29:25 PST