Python Image Library (PIL) build error on Cygwin

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steve Holden

    Python Image Library (PIL) build error on Cygwin

    Does anyone know the workaround for this error, encountered when trying
    to build PIL 1.1.4 from source under cygwin (Python 2.3.3)?

    [...]

    running build_ext
    building '_imaging' extension
    gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
    -IlibImaging
    -I/usr/include/python2.3 -c encode.c -o
    build/temp.cygwin-1.5.9-i686-2.3/encode.o
    C:\cygwin\bin\p ython2.3.exe (2352): *** unable to remap
    C:\cygwin\bin\t k84.dll to same address as parent(0x6F0000 ) != 0xB40000
    5 [main] python 1996 sync_with_child : child 2352(0x224) died
    before initialization with status code 0x1
    385 [main] python 1996 sync_with_child : *** child state child
    loading dlls
    error: Resource temporarily unavailable

    Erk. I *hate* having to mess around with stuff like this.

    regards
    Steve
  • Jason Tishler

    #2
    Re: Python Image Library (PIL) build error on Cygwin

    Steve,

    On Thu, Apr 29, 2004 at 04:31:54PM -0400, Steve Holden wrote:[color=blue]
    > Does anyone know the workaround for this error, encountered when
    > trying to build PIL 1.1.4 from source under cygwin (Python 2.3.3)?[/color]

    Rebasing your system should fix the problem. See the following:



    Jason

    --
    PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
    Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6

    Comment

    • Steve Holden

      #3
      Re: Python Image Library (PIL) build error on Cygwin

      Jason Tishler wrote:[color=blue]
      > Steve,
      >
      > On Thu, Apr 29, 2004 at 04:31:54PM -0400, Steve Holden wrote:
      >[color=green]
      >>Does anyone know the workaround for this error, encountered when
      >>trying to build PIL 1.1.4 from source under cygwin (Python 2.3.3)?[/color]
      >
      >
      > Rebasing your system should fix the problem. See the following:
      >
      > http://www.tishler.net/jason/softwar...ase-2.3.README
      >
      > Jason
      >[/color]
      Yup, now I can't find the Tk library, but the load errors are gone and
      the rest is fixable. This all seems very esoteric, I'm glad it's going
      away ...

      regards
      Steve

      Comment

      • Jason Tishler

        #4
        Re: Python Image Library (PIL) build error on Cygwin

        Steve,

        On Fri, Apr 30, 2004 at 12:40:48PM -0400, Steve Holden wrote:[color=blue]
        > Yup, now I can't find the Tk library,[/color]

        Does the following from the Cygwin Python README help?

        4. _tkinter users should note that Cygwin tcltk is really a Win32
        package and hence, does *not* understand Cygwin style paths. To use
        the _tkinter module you must define the following environment
        variables:

        $ export TCL_LIBRARY=$(c ygpath -w /usr/share/tcl$version)
        $ export TK_LIBRARY=$(cy gpath -w /usr/share/tk$version)

        Jason

        --
        PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
        Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6

        Comment

        • Steve Holden

          #5
          Re: Python Image Library (PIL) build error on Cygwin

          Jason Tishler wrote:
          [color=blue]
          >Steve,
          >
          >On Fri, Apr 30, 2004 at 12:40:48PM -0400, Steve Holden wrote:
          >
          >[color=green]
          >>Yup, now I can't find the Tk library,
          >>
          >>[/color]
          >
          >Does the following from the Cygwin Python README help?
          >
          > 4. _tkinter users should note that Cygwin tcltk is really a Win32
          > package and hence, does *not* understand Cygwin style paths. To use
          > the _tkinter module you must define the following environment
          > variables:
          >
          > $ export TCL_LIBRARY=$(c ygpath -w /usr/share/tcl$version)
          > $ export TK_LIBRARY=$(cy gpath -w /usr/share/tk$version)
          >[/color]

          Unfortunately that doesn't seem to help:

          sholden@DELLBOY ~/install/Imaging-1.1.4
          $ export TCL_LIBRARY=$(c ygpath -w /usr/share/tcl8.4)

          sholden@DELLBOY ~/install/Imaging-1.1.4
          $ export TK_LIBRARY=$(cy gpath -w /usr/share/tk8.4)

          sholden@DELLBOY ~/install/Imaging-1.1.4
          $ python setup.py build
          running build
          running build_py
          running build_ext
          building '_imagingtk' extension
          gcc -shared -Wl,--enable-auto-image-base
          build/temp.cygwin-1.5.9-i686-2.3/_imagingtk.o
          build/temp.cygwin-1.5.9-i686-2.3/Tk/tkImaging.o -LlibImaging
          -L/usr/lib/python2.3/config -lImaging -ltk8.4 -ltcl8.4 -lpython2.3 -o
          build/lib.cygwin-1.5.9
          -i686-2.3/_imagingtk.dll
          /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld:
          cannot find -ltk8.4
          collect2: ld returned 1 exit status
          error: command 'gcc' failed with exit status 1

          I'm wondering if I might need to download extra libraries, but I can't
          see anything appropriate.

          regards
          Steve



          Comment

          • Jason Tishler

            #6
            Re: Python Image Library (PIL) build error on Cygwin

            Steve,

            On Fri, Apr 30, 2004 at 03:38:04PM -0400, Steve Holden wrote:[color=blue]
            > Unfortunately that doesn't seem to help:[/color]

            The following may be helpful:



            Jason

            --
            PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
            Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6

            Comment

            • Norman Vine

              #7
              Re: Python Image Library (PIL) build error on Cygwin


              "Steve Holden writes:[color=blue]
              >
              > sholden@DELLBOY ~/install/Imaging-1.1.4
              > $ python setup.py build
              > running build
              > running build_py
              > running build_ext
              > building '_imagingtk' extension
              > gcc -shared -Wl,--enable-auto-image-base
              > build/temp.cygwin-1.5.9-i686-2.3/_imagingtk.o
              > build/temp.cygwin-1.5.9-i686-2.3/Tk/tkImaging.o -LlibImaging
              > -L/usr/lib/python2.3/config -lImaging -ltk8.4 -ltcl8.4 -lpython2.3 -o
              > build/lib.cygwin-1.5.9
              > -i686-2.3/_imagingtk.dll
              > /usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld:
              > cannot find -ltk8.4
              > collect2: ld returned 1 exit status
              > error: command 'gcc' failed with exit status 1
              >
              > I'm wondering if I might need to download extra libraries, but I can't
              > see anything appropriate.[/color]

              Try

              cd /usr/lib
              ln -s libtk84.a libtk8.4.a
              ln -s libtcl84.a libtcl8.4.aHTHN orman


              Comment

              Working...