Re: Cygwin and PerlQt

"Gerrit P. Haase" <[email protected]> Tue, 3 Aug 2004 11:46:02 +0200
Newsgroups gmane.os.cygwin.perl
Organization Esse keine toten Tiere
Message-ID <[email protected]>
Tomek schrieb:


> On Aug 02, 2004, at 10:25 PM, Gerrit P. Haase wrote:

>> Tomek wrote:
>>
>>> Hello,
>>
>>> I would like to know if there is any official effort to make PerlQt
>>> work under cygwin.
>>
>>> After trawling through many FAQs and mailing lists and spending hours
>>> trying to first compile it and then install binary packages I found on
>>> the net I am still no closer to getting PerlQt to work. I would really
>>> appreciate any info on this subject.
>>
>> Do you got my binary version (and take a look at the patch):
>> http://anfaenger.de/cygwin/cygwin-1.5/perl/qt/
>>

> Hi,

> I tried installing the binaries but they don't work. Unfortunately I 
> know nothing about Windows so I don't even know where to start with 
> this problem. I'm including some files for you to look at if you have 
> some spare time.

The error is:

Can't load '/usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int/auto/Qt/Qt.dll' for module Qt: dlopen: Win32 error 126 at /usr/lib/perl5/5.8.2/cygwin-thread-multi-64int/XSLoader.pm line 68.
 at /usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int/Qt.pm line 883
Compilation failed in require at /usr/bin/pqtsh line 23.
BEGIN failed--compilation aborted at /usr/bin/pqtsh line 23.

I found this:

egrep '126' /usr/include/w32api/winerror.h
#define ERROR_MOD_NOT_FOUND 126L

cygcheck /usr/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int/auto/Qt/Qt.dll
C:/cygwin/lib/perl5/site_perl/5.8.2/cygwin-thread-multi-64int/auto/Qt/Qt.dll
  C:\cygwin\bin\cygwin1.dll
    C:\WINNT\system32\ADVAPI32.DLL
      C:\WINNT\system32\NTDLL.DLL
      C:\WINNT\system32\KERNEL32.DLL
      C:\WINNT\system32\RPCRT4.DLL
  C:\cygwin\bin\cygperl5_8_2.dll
    C:\cygwin\bin\cygcrypt-0.dll
Error: could not find cygqt-mt-3.dll

The error is that the QT DLL is not in PATH and after adding it to
PATH there is an additional bug in my package, libsmokeqt.dll.a is
searched to load, but it is just a symlink to the real DLL, this doesn't
work with Windows, so libsmokeqt.dll.a needs to be the same as the real
DLL. 

Solution:

startxwin.sh
cp /usr/local/bin/cygsmokeqt-1.dll /usr/local/bin/libsmokeqt.dll.a
export PATH=/opt/qt/3.2/bin:$PATH >> ~/.bashrc
pqtsh &


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/