Professional Web Applications Themes

GTK compile trouble - Linux Setup, Configuration & Administration

On Tue, 15 Jul 2003 BJ wrote: >It is a little complicated because I do not have access to root, but I >have made a directory $HOME/usr which I have been installing all my >software... so the libraries for the dependencies are in $HOME/usr/lib >and $HOME/usr/include ect. > >To get the gtk compile script to recognize everything I have created >the following enviroment variables: > >LD_LIBRARY_PATH=/home/s03bpa/usr/lib:/usr/lib:/usr/kerberos/lib:/usr/X11R6/lib:/usr/lib/sane >C_INCLUDE_PATH=/home/s03bpa/usr/include >CPLUS_INCLUDE_PATH=/home/s03bpa/usr/include >LDFLAGS=-L /home/s03bpa/usr/lib > >I use ./configure --prefix=$HOME/usr/local --exec-prefix=$HOME/usr >and the configure script executes fine, but then when I type make, it >goes into the gtk+-2.2.2/gdk-pixbuf/pixops directory, and the make >program stopps with ...

  1. #1

    Default Re: GTK compile trouble

    On Tue, 15 Jul 2003 BJ wrote:
    >It is a little complicated because I do not have access to root, but I
    >have made a directory $HOME/usr which I have been installing all my
    >software... so the libraries for the dependencies are in $HOME/usr/lib
    >and $HOME/usr/include ect.
    >
    >To get the gtk compile script to recognize everything I have created
    >the following enviroment variables:
    >
    >LD_LIBRARY_PATH=/home/s03bpa/usr/lib:/usr/lib:/usr/kerberos/lib:/usr/X11R6/lib:/usr/lib/sane
    >C_INCLUDE_PATH=/home/s03bpa/usr/include
    >CPLUS_INCLUDE_PATH=/home/s03bpa/usr/include
    >LDFLAGS=-L /home/s03bpa/usr/lib
    >
    >I use ./configure --prefix=$HOME/usr/local --exec-prefix=$HOME/usr
    >and the configure script executes fine, but then when I type make, it
    >goes into the gtk+-2.2.2/gdk-pixbuf/pixops directory, and the make
    >program stopps with the following output:
    >
    [..snip..]
    >
    >/home/s03bpa/usr//lib/libgobject-2.0.so
    >/home/s03bpa/usr//lib/libgmodule-2.0.so -ldl
    >/home/s03bpa/usr//lib/libgthread-2.0.so -lpthread
    >/home/s03bpa/usr//lib/libglib-2.0.so -lm -Wl,--rpath
    >
    [..snip..]
    >
    Why is there double slash // ?

    I guess you are adding a slash when you pass the prefix, you are doing
    something like

    ../configure --prefix=$HOME/usr/

    When it should be

    ../configure --prefix=$HOME/usr

    I maybe wrong.


    V.
    Vwakes Guest

  2. #2

    Default Re: GTK compile trouble

    On Tue, 15 Jul 2003 BJ wrote:

    [Ignore my previous msg]
    >It is a little complicated because I do not have access to root, but I
    >have made a directory $HOME/usr which I have been installing all my
    >software... so the libraries for the dependencies are in $HOME/usr/lib
    >and $HOME/usr/include ect.
    >
    >To get the gtk compile script to recognize everything I have created
    >the following enviroment variables:
    >
    >LD_LIBRARY_PATH=/home/s03bpa/usr/lib:/usr/lib:/usr/kerberos/lib:/usr/X11R6/lib:/usr/lib/sane
    >C_INCLUDE_PATH=/home/s03bpa/usr/include
    >CPLUS_INCLUDE_PATH=/home/s03bpa/usr/include
    >LDFLAGS=-L /home/s03bpa/usr/lib
    Probably your LDFLAGS is not correct, give it double quotes

    LDFLAGS="-L /home/s03bpa/usr/lib"

    Coz see below, there should be a space after '-L' and two // appear.
    >-L/home/s03bpa/usr/src/gtk/gtk+-2.2.2/gdk-pixbuf/pixops
    >../.libs/libpixops.a -L/home/s03bpa/usr//lib
    So it's not able to find the file. The path is passed wrong.

    V
    >/home/s03bpa/usr//lib/libgobject-2.0.so
    >/home/s03bpa/usr//lib/libgmodule-2.0.so -ldl
    >/home/s03bpa/usr//lib/libgthread-2.0.so -lpthread
    >/home/s03bpa/usr//lib/libglib-2.0.so -lm -Wl,--rpath
    >-Wl,/home/s03bpa/usr//lib -Wl,--rpath -Wl,/home/s03bpa/usr//lib
    >/home/s03bpa/usr/lib: file not recognized: Is a directory
    >
    >
    Vwakes Guest

  3. #3

    Default Re: GTK compile trouble

    -Glenn- <amjgoleafsnetscape.net> wrote in message news:<dhjRa.1571$N17.159695read2.cgocable.net>...
    >
    > /usr/lib:/usr/kerberos/lib:/usr/X11R6/lib:/usr/lib/sane
    >
    > do the file permissions permit you to access/execute in these
    > directories - as far as I know, these are system style directories & the
    > files are usually only accessible to root for compiling purposes, not
    > users, which you, in this case, are.
    >
    Thanks for the help guys, my user had access to those files, but not
    write access... I was just including them for good measure anyway,
    most of the libraries I needed were in $HOME/usr/lib

    Anyway, it seems that th LDFLAGS variable was defined poorly and that
    was putting some error in the ./configure script that wasn't popping
    up until I tried to make it. So I just redefined LDFLAGS and tried it
    over again and it worked.

    Again, thanks for the answers.

    Brian
    BJ Guest

Similar Threads

  1. e4x and (&&) won't compile
    By maxrahder in forum Macromedia Flex General Discussion
    Replies: 2
    Last Post: April 14th, 06:22 PM
  2. compile to CGI
    By Owen Cook in forum PERL Beginners
    Replies: 1
    Last Post: December 25th, 06:06 PM
  3. Compile help...
    By Scott V Nipp in forum PERL Beginners
    Replies: 2
    Last Post: December 4th, 03:40 PM
  4. compile php 4.3.3 with gd
    By kecebong in forum PHP Development
    Replies: 7
    Last Post: October 28th, 12:22 PM
  5. Replies: 1
    Last Post: July 18th, 09:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139