arc_of_descent has asked for the wisdom of the Perl Monks concerning the following question:


Greetings

I am very frustrated trying to get perl/Tk to work
on cygwin. I have tried searching google, this site, etc but in vain
And I sincerely hope that I'm not repeating a beaten topic.

I have perl 5.8.0 installed on my Win XP m/c from the cygwin distro.
I downloaded the latest perl/Tk file from CPAN, and the README.cygwin
says that just issuing ./configure should compile for native Win32 GUI calls.
But on issuing make, I get the error that "X11/X11.h", etc.... not found.

Any help or pointers would be appreciated
I tried downloading the binary perl/Tk distro for cygwin
from perltk.org, but it does not work with perl 5.8.0
--
arc_of_descent

Replies are listed 'Best First'.
Re: Compiling perl/Tk on cygwin
by PodMaster (Abbot) on Feb 12, 2003 at 09:39 UTC
    Tk is a GUI toolkit. You need http://www.cygwin.com/xfree/ to use it.


    MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
    ** The Third rule of perl club is a statement of fact: pod is sexy.


      I'm not so sure.
      The README.cygwin in the Tk-800.024 distrubution says, that
      you can compile Tk to use the native Win32 GUI calls.

      I'm so confused!

      --
      arc_of_descent

        Then it wouldn't/shouldn't be looking for X11/* (aka the stuff I pointed out earlier).

        update: maybe you should read a little closer? (rhetorical).

        README.cygwin says

        CONFIGURE/BUILD
        
            Use native Win32 GUI calls:
        
                perl Makefile.PL
        
            Use X11 client libraries (and requires a X server):
        
                Precompiled X11 client libraries can be downloaded from
                ftp://sourceware.cygnus.com/pub/cygwin/xfree/xc-4-binaries/
                    xfree86-4.0-DLLs.tar.bz2
                    xfree86-4.0-devel.tar.bz2
        
                NOTE: Your DISPLAY must be 127.0.0.1:0.0
                      Your PATH must include the DLL directory, /usr/X11R6/bin
        
                perl Makefile.PL x
        
            make
        
        I don't see any mention of ./configure in README.cygwin, which leads me to conclude that you should read README.cygwin again, so please do so.


        MJD says you can't just make shit up and expect the computer to know what you mean, retardo!
        ** The Third rule of perl club is a statement of fact: pod is sexy.

      Tk can use native Windows GUI - so I find your post a bit disinforming.
Re: Compiling perl/Tk on cygwin
by zby (Vicar) on Mar 07, 2003 at 13:33 UTC
    I would really like to know how did you solve this problem. I had the same as you - but I did compile perl/Tk for native Windows GUI for the previous perl version (5.6).

    UPDATE: To sort things out I did this, after upacking the Tk800.023 distribution:

    • perl Makefile.PL then make with the same result as the root node.
    • perl Makefile.PL x then make with some incompatible definition error.
    So I was not able to compile it with nor without X, perhaps I will try soon with a fresh cygwin install (with the current one I have some permitions problems - but this is another subject).

    UPDATE: I have just compiled Tk800.024 with the patch from home.att.net/~perlspinr/perlproj/pTk. With no X includes.