Re: Re: PerlQt on cygwin?
"Gerrit P. Haase" <[email protected]> Tue, 6 Jul 2004 16:22:22 +0200
| Newsgroups | gmane.os.cygwin.perl |
|---|---|
| Organization | Esse keine toten Tiere |
| Message-ID | <[email protected]> |
Yaakov wrote:
> Gerrit P. Haase wrote:
> | PerlQt-3.008 binary release for testing available:
> | http://anfaenger.de/cygwin-1.5/perl/qt/
> |
> | This requires the QT package qt-3.2.3-3-gcc3 from the kde-cygwin
> | project and of course perl-5.8.2:
> | http://prdownloads.sourceforge.net/kde-cygwin/qt-3.2.3-3-gcc3.tar.bz2?download
> I tried building this myself, and libsmokeqt builds fine, but I get
> compilation errors on Qt.c (generated from Qt.xs). Could you post a
> source package or patch that you used to build this? Thanks!
Have you used exactly the same source package or is there a QT update
available which may be different?
For me it fails currently with an error similar to this when linking
libsmokeqt (though I have it already installed and it should not be
rebuilt IIRC):
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.1/../../../../i686-pc-cygwin/bin/ld:
out of memory allocating 10076 bytes after a total of 400805888 bytes
port)
So I don't come to the point where Qt.c is created at all.
I retried now with specifying the relevant library path for configure:
export LDFLAGS='-L/usr/local/lib' && \
perl Makefile.PL --prefix=/usr --disable-closure \
--with-extra-includes=/usr/local/include \
--with-extra-libs=/usr/local/lib --with-x
and now I got this:
/usr/bin/perl.exe /usr/lib/perl5/5.8.2/ExtUtils/xsubpp -C++ -typemap /usr/lib/perl5/5.8.2/ExtUtils/typemap Qt.xs > Qt.xsc && mv Qt.xsc Qt.c
g++ -c -I/opt/qt3/include -I/usr/X11R6/include -I/usr/local/include -I. -I../smoke -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -DUSEIMPORTLIB -O2 -DVERSION=\"3.008\" -DXS_VERSION=\"3.008\" "-I/usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/CORE" -Wnon-virtual-dtor -Wno-long-long -Wundef -W -Wpointer-arith -Wmissing-prototypes -O2 -fno-exceptions -fno-check-new -fno-common Qt.c
Qt.xs: In function `SV* getPointerObject(void*)':
Qt.xs:142: warning: cast from pointer to integer of different size
Qt.xs: In function `void unmapPointer(smokeperl_object*, short int, void*)':
Qt.xs:163: warning: cast from pointer to integer of different size
Qt.xs: In function `void mapPointer(SV*, smokeperl_object*, HV*, short int,
void*)':
Qt.xs:184: warning: cast from pointer to integer of different size
Qt.xs: In function `void XS_AUTOLOAD(PerlInterpreter*, CV*)':
Qt.xs:936: warning: `SV*old_this' might be used uninitialized in this function
Qt.xs:967: warning: `SV*old_this' might be used uninitialized in this function
Qt.xs:1020: warning: `SV*old_this' might be used uninitialized in this function
Qt.xs: In function `MocArgument* getmetainfo(GV*, const char*, int&, int&,
int&)':
Qt.xs:1177: warning: cast to pointer from integer of different size
Qt.xs: In function `MocArgument* getslotinfo(GV*, int, char*&, int&, int&,
bool)':
Qt.xs:1219: warning: cast to pointer from integer of different size
Qt.xs: In function `void XS_qt_invoke(PerlInterpreter*, CV*)':
Qt.xs:1261: warning: cast to pointer from integer of different size
Qt.xs: In function `void XS_Qt___internal__QString_FETCH(PerlInterpreter*, CV*)
':
Qt.xs:1303: warning: cast to pointer from integer of different size
Qt.xs: In function `void XS_Qt___internal__QString_STORE(PerlInterpreter*, CV*)
':
Qt.xs:1330: warning: cast to pointer from integer of different size
Qt.xs: In function `void XS_Qt___internal__QString_DESTROY(PerlInterpreter*,
CV*)':
Qt.xs:1348: warning: cast to pointer from integer of different size
Qt.xs: In function `void XS_Qt___internal__QByteArray_FETCH(PerlInterpreter*,
CV*)':
Qt.xs:1361: warning: cast to pointer from integer of different size
Qt.xs: In function `void XS_Qt___internal__QByteArray_STORE(PerlInterpreter*,
CV*)':
Qt.xs:1380: warning: cast to pointer from integer of different size
Qt.xs: In function `void XS_Qt___internal__QByteArray_DESTROY(PerlInterpreter*,
CV*)':
Qt.xs:1397: warning: cast to pointer from integer of different size
Qt.xs: In function `void XS_Qt___internal__QRgbStar_FETCH(PerlInterpreter*,
CV*)':
Qt.xs:1410: warning: cast to pointer from integer of different size
Qt.xs: In function `void XS_Qt___internal__QRgbStar_STORE(PerlInterpreter*,
CV*)':
Qt.xs:1430: warning: cast to pointer from integer of different size
Qt.xs: In function `void XS_Qt___internal__QRgbStar_DESTROY(PerlInterpreter*,
CV*)':
Qt.xs:1460: warning: cast to pointer from integer of different size
Qt.xs: In function `void XS_Qt___internal_make_QUMethod(PerlInterpreter*, CV*)
':
Qt.xs:1689: warning: cast to pointer from integer of different size
Qt.xs: In function `void XS_Qt___internal_make_QMetaData_tbl(PerlInterpreter*,
CV*)':
Qt.xs:1714: warning: cast to pointer from integer of different size
Qt.xs: In function `void XS_Qt___internal_dumpObjects(PerlInterpreter*, CV*)':
Qt.xs:1770: warning: comparison of unsigned expression >= 0 is always true
g++ -c -I/opt/qt3/include -I/usr/X11R6/include -I/usr/local/include -I. -I../smoke -DPERL_USE_SAFE_PUTENV -fno-strict-aliasing -DUSEIMPORTLIB -O2 -DVERSION=\"3.008\" -DXS_VERSION=\"3.008\" "-I/usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/CORE" -Wnon-virtual-dtor -Wno-long-long -Wundef -W -Wpointer-arith -Wmissing-prototypes -O2 -fno-exceptions -fno-check-new -fno-common handlers.cpp
handlers.cpp:86: warning: missing initializer for member `mgvtbl::svt_copy'
handlers.cpp:86: warning: missing initializer for member `mgvtbl::svt_dup'
handlers.cpp: In function `void marshall_ucharP(Marshall*)':
handlers.cpp:454: warning: cast to pointer from integer of different size
handlers.cpp: In function `void marshall_QString(Marshall*)':
handlers.cpp:508: warning: cast to pointer from integer of different size
handlers.cpp: In function `void marshall_QByteArray(Marshall*)':
handlers.cpp:586: warning: cast to pointer from integer of different size
handlers.cpp: In function `void marshall_voidP(Marshall*)':
handlers.cpp:1028: warning: cast to pointer from integer of different size
handlers.cpp:1035: warning: cast from pointer to integer of different size
handlers.cpp: In function `void marshall_QRgb_array(Marshall*)':
handlers.cpp:1056: warning: cast to pointer from integer of different size
handlers.cpp: In function `void install_handlers(TypeHandler*)':
handlers.cpp:1317: warning: cast from pointer to integer of different size
handlers.cpp: In function `void (* getMarshallFn(const SmokeType&))(Marshall*)
':
handlers.cpp:1343: warning: cast to pointer from integer of different size
Running Mkbootstrap for Qt ()
chmod 644 Qt.bs
rm -f blib/arch/auto/Qt/Qt.dll
LD_RUN_PATH=":/usr/lib" ld2 -s -L/usr/local/lib Qt.o handlers.o -Wl,--rpath -Wl,/usr/lib -Wl,--rpath -Wl,/opt/qt3/lib -o blib/arch/auto/Qt/Qt.dll /usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/CORE/libperl.dll.a -L/usr/X11R6/lib -L/opt/qt3/lib -L/usr/local/lib -L/opt/PerlQt-3.008/smoke/qt/.libs -lsmokeqt -lcrypt -lqt-mt -lresolv -lpng -lz -lm -lXext -lX11 -lSM -lICE -lpthread
gcc -shared -o Qt.dll -Wl,--out-implib=libQt.dll.a -Wl,--export-all-symbols -Wl,--enable-auto-import -Wl,--stack,8388608 \
-s -L/usr/local/lib Qt.o handlers.o -Wl,--rpath -Wl,/usr/lib -Wl,--rpath -Wl,/opt/qt3/lib /usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/CORE/libperl.dll.a -L/usr/X11R6/lib -L/opt/qt3/lib -L/usr/local/lib -L/opt/PerlQt-3.008/smoke/qt/.libs -lsmokeqt -lcrypt -lqt-mt -lresolv -lpng -lz -lm -lXext -lX11 -lSM -lICE -lpthread
Creating library file: libQt.dll.a
mv Qt.dll libQt.dll.a blib/arch/auto/Qt/
chmod 755 blib/arch/auto/Qt/Qt.dll
cp Qt.bs blib/arch/auto/Qt/Qt.bs
chmod 644 blib/arch/auto/Qt/Qt.bs
make[2]: Leaving directory `/opt/PerlQt-3.008/PerlQt'
[...]
Lots of warnings, but no errors.
What should I include in the diff?
Gerrit
--
=^..^=
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/ndFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/cygwin-perl/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/