http://www.perlmonks.org?node_id=938350

Lion-Tiger has asked for the wisdom of the Perl Monks concerning the following question:

Help me please install PerlQt on windows!
I wish my programs to have gui, made in nice GUI builder like Qt one.

I can install PerlQt only on linux (Ubuntu), but I need programs compiled also for windows with windows specific style (forms buttons)...
Or is it possible to compile program on Ubuntu to run on windows (make exe file). PAR Packer (pp) packs only for platform that it is running on...

Or you can also advise me other ways how to add GUI to my Perl progs...

Replies are listed 'Best First'.
Re: PerlQt on Windows
by Anonymous Monk on Nov 16, 2011 at 11:13 UTC
      Yep I tried cburel's version of qt, but it needs cmake, and even if I install cmake with adding to path variable, while I install package through cpan, it says:
      cpan> install CBUREL/Qt-0.96.0.tar.gz Running make for C/CB/CBUREL/Qt-0.96.0.tar.gz Fetching with LWP: http://cpan.strawberryperl.com/authors/id/C/CB/CBUREL/Qt-0.96.0.tar.gz Fetching with LWP: http://cpan.strawberryperl.com/authors/id/C/CB/CBUREL/CHECKSUMS Checksum for C:\strawberry\cpan\sources\authors\id\C\CB\CBUREL\Qt-0.96 +.0.tar.gz ok Scanning cache C:\strawberry\cpan\build for sizes ...................................................................... +......DONE CPAN.pm: Going to build C/CB/CBUREL/Qt-0.96.0.tar.gz You must have cmake installed to compile PerlQt4. at Makefile.PL line +47. Warning: No success on command[C:\strawberry\perl\bin\perl.exe Makefil +e.PL] CBUREL/Qt-0.96.0.tar.gz C:\strawberry\perl\bin\perl.exe Makefile.PL -- NOT OK Running make test Make had some problems, won't test Running make install Make had some problems, won't install Could not read metadata file. Falling back to other methods to determi +ne prerequ isites Failed during this command: CBUREL/Qt-0.96.0.tar.gz : writemakefile NO 'C:\s +trawberry\ perl\bin\perl.exe Makefile.PL' returned status 512
Re: PerlQt on Windows
by runrig (Abbot) on Nov 16, 2011 at 16:02 UTC
    In one of the reviews, it says:
    it relies on Alien::SmokeQt but does not mention it as a prerequisite.

    Does that help?

    Or you can also advise me other ways how to add GUI to my Perl progs...

    There are plenty of GUI toolkits to choose from. See (GUI) Windows Programming FAQ

      Alien::SmokeQt also fails to install with the same problem - can't find cmake installed.
      I tried to install PerlQt from old windows distrbution, but it says it needs Qt-3.dll and I think some other dlls.
      Tried to install through cpan and myself from sources, but the problem is that it needs to run "configure" file to make all work, but we can't write in cmd "./configure"
      It's only for Unix systems...

      I can't believe no one wanted to write GUI for Perl apps with Qt and on Windows...

        Alien::SmokeQt also fails to install with the same problem - can't find cmake installed.

        Maybe you should read and edit Makefile.PL

        That of course requires you to stop trying to install it as-is directly from cpan

        I can't believe no one wanted to write GUI for Perl apps with Qt and on Windows...

        I'm not :) It appears the current maintainer is unaware of cpan-testers or ppm (and probably perlport)

        Kobesearch says there is some version of Qt available from the bribes dot org repository ( perl/ppm/PerlQt.ppd ), but doesn't look very useful, as it appears to be missing lots of files (hello doesn't run, missing QColor.pm)

        It appears to be the version from PerlQt sourceforge project

        That version might be available via cygwin

        In any case, there are hours and hours of work in this, for a maybe

        Ok, I'll look more in that way, but after a deeper look at Qt features, I'd rather prefer combination of Perl and Java, mainly because of Swing components and it's neat layout system...
        Anyway thanks! ;)
Re: PerlQt on Windows
by admiral_grinder (Pilgrim) on Nov 17, 2011 at 15:59 UTC

    I would suggest going with Wx. I have used it in the past and it works great in both Windows (Activestate and Strawberry) and Linux. One of the project goals for Wx is native looks. The documentation is a little rough since it is written for C++ but it isn't too hard to navigate and is pretty complete.

    There is a demo app of Wx on CPAN but I didn't find it helpful at all.

      There is a demo app of Wx on CPAN but I didn't find it helpful at all.

      Why not?

      I find easier to navigate , and more comprehensive, than the tk demo app "widget".

      See also my wxWidgets / wxPerl / wxGlade tutorial

        It has been years since I looked at it. It does demo things well, but if you dive into the source to see how they are done then it gets muddy. At the time I was used to Dojo test suite.

        You page looks pretty good, I'll bookmark it for future ref

Re: PerlQt on Windows
by Anonymous Monk on Feb 14, 2012 at 03:50 UTC
    Hi there, I'm the developer of the Perl Qt4 project, and only recently have I gotten the project to compile on Windows. There's an open bug about it: http://code.google.com/p/perlqt4/issues/detail?id=39

    There should be a new release coming soon with the fixes for Windows support. I've been testing with ActiveState's Perl, so hopefully Strawberry Perl works as well. I'm also hoping to put out some Windows binaries for XP and Vista (I don't have Windows 7), so that might work for you as well.