Mail Archives: cygwin/2004/02/24/00:37:12
Another option for you to try is using Tcl::Tk module from CPAN which uses
existing Tcl/Tk installation and therefore should be easier to use, because
its tiny.
> -----Original Message-----
> From: linda w [mailto:cygwin AT tlinx DOT org]
> Sent: Friday, February 20, 2004 4:24 AM
> To: cygwin AT cygwin DOT com; module-authors AT perl DOT org
> Subject: Tk usage with / from perl in Cygwin env
>
>
> Has anyone tried using Tk from perl?
>
> I was using a simple script example that used Tk for graphics
> interaction.
> It wouldn't run because it wanted Tk, so I cpanned /
> downloaded the Tk perl
> libs and ran an a make and got:
> /bin/perl.exe /usr/lib/perl5/5.8.2/ExtUtils/xsubpp -typemap
> /usr/lib/perl5/5.8.
> 2/ExtUtils/typemap -typemap
> //ishtar/share/CPAN/build-win/Tk-804.025_beta14/Tk/t
> ypemap Xlib.xs > Xlib.xsc && mv Xlib.xsc Xlib.c
> gcc -c -I.. -I../pTk/mTk/xlib -DPERL_USE_SAFE_PUTENV
> -fno-strict-aliasing -DUSE
> IMPORTLIB -O2 -DVERSION=\"804.025\" -DXS_VERSION=\"804.025\"
> "-I/usr/lib/perl
> 5/5.8.2/cygwin-thread-multi-64int/CORE" -D__WIN32__ -D_WIN32 -Wall
> -Wno-implici
> t-int -Wno-comment -Wno-unused -D__USE_FIXED_PROTOTYPES__ Xlib.c
> Xlib.xs:13: error: syntax error before '*' token
> Xlib.xs:13: warning: data definition has no type or storage class
> Xlib.xs: In function `boot_Tk__Xlib':
> Xlib.xs:378: warning: cast to pointer from integer of different size
> Xlib.xs:378: warning: cast to pointer from integer of different size
> Xlib.xs:378: warning: cast to pointer from integer of different size
> Xlib.xs:378: warning: cast to pointer from integer of different size
> Xlib.xs:378: warning: cast to pointer from integer of different size
> Xlib.xs:378: warning: cast to pointer from integer of different size
> Xlib.xs:378: warning: cast to pointer from integer of different size
> Xlib.xs:378: warning: cast to pointer from integer of different size
> Xlib.xs:378: warning: cast to pointer from integer of different size
> Xlib.xs:378: error: `XlibVtab' undeclared (first use in this function)
> Xlib.xs:378: error: (Each undeclared identifier is reported only once
> Xlib.xs:378: error: for each function it appears in.)
> Xlib.xs:378: error: syntax error before ')' token
> make[1]: *** [Xlib.o] Error 1
> make[1]: Leaving directory
> `//ishtar/share/CPAN/build-win/Tk-804.025_beta14/Xlib
> '
> make: *** [subdirs] Error 2
> /usr/bin/make -- NOT OK
> Running make test
> Can't test without successful make
> Running make install
> make had returned bad status, install seems impossible
> ================
> My perl -V shows:
> Summary of my perl5 (revision 5.0 version 8 subversion 2)
> configuration:
> Platform:
> osname=cygwin, osvers=1.5.5(0.9432),
> archname=cygwin-thread-multi-64int
> uname='cygwin_nt-5.0 troubardix 1.5.5(0.9432) 2003-09-20
> 16:31 i686
> unknown
> unknown cygwin '
> config_args='-de -Dmksymlinks -Duse64bitint -Dusethreads
> -Doptimize=-O2 -Dma
> n3ext=3pm'
> hint=recommended, useposix=true, d_sigaction=define
> usethreads=define use5005threads=undef useithreads=define
> usemultiplicity=de
> fine
> useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
> use64bitint=define use64bitall=undef uselongdouble=undef
> usemymalloc=y, bincompat5005=undef
> Compiler:
> cc='gcc', ccflags ='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing',
> optimize='-O2',
> cppflags='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing'
> ccversion='', gccversion='3.3.1 (cygming special)',
> gccosandvers=''
> intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
> d_longlong=define, longlongsize=8, d_longdbl=define,
> longdblsize=12
> ivtype='long long', ivsize=8, nvtype='double', nvsize=8,
> Off_t='off_t', lsee
> ksize=8
> alignbytes=8, prototype=define
> Linker and Libraries:
> ld='ld2', ldflags =' -s -L/usr/local/lib'
> libpth=/usr/local/lib /usr/lib /lib
> libs=-lgdbm -ldb -lcrypt -lgdbm_compat
> perllibs=-lcrypt -lgdbm_compat
> libc=/usr/lib/libc.a, so=dll, useshrplib=true, libperl=libperl.a
> gnulibc_version=''
> Dynamic Linking:
> dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' -s'
> cccdlflags=' ', lddlflags=' -s -L/usr/local/lib'
>
>
> Characteristics of this binary (from libperl):
> Compile-time options: MULTIPLICITY USE_ITHREADS USE_64_BIT_INT
> USE_LARGE_FILES
> PERL_IMPLICIT_CONTEXT
> Built under cygwin
> Compiled at Nov 7 2003 12:06:28
> %ENV:
> PERL5LIB="/usr/local/lib/perl/5.8"
> CYGWIN=""
> @INC:
> /usr/local/lib/perl/5.8
> /usr/lib/perl5/5.8.2/cygwin-thread-multi-64int
> /usr/lib/perl5/5.8.2
> /usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int
> /usr/lib/perl5/site_perl/5.8.2
> /usr/lib/perl5/site_perl
> .
>
> --
> In the marketplace of "Real goods", capitalism is limited
> by safety
> regulations, consumer protection laws, and product liability. In
> the computer industry, what protects the consumer?
>
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -