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


in reply to Win32::GUI on 64bit Windows?

Hi

You can not install Win32 modules in x64 bit perl. I use Win32::Gui in Windows 7 machine (x64). What I did is,
1. Install 32 bit perl 5.14 (ActivePerl)
2. Install the compiled Win32::GUI via ActivePerl's PPM tool
5. Enjoy.

Thanks & Regards,
Bakkiaraj M
My Perl Gtk2 technology demo project - http://code.google.com/p/saaral-soft-search-spider/ , contributions are welcome.

Replies are listed 'Best First'.
Re^2: Win32::GUI on 64bit Windows?
by marto (Cardinal) on Nov 20, 2012 at 11:56 UTC

    A couple of comments:

    "2. You dont find Win32::Gui in Active Perl's PPM"

    True, thought it's available from other repositories. See PPM::Repositories to add more, or they could download directly and install via the instructions in the module README.

    "3. Setup MinGW GCC, dmake then compile Win32::GUI your self. Compilation perfectly works."

    ppm MinGW Will do the setup of MinGW and make tools to save the bother of doing it manually.

    Update: removing the points I quote achieves what exactly?

      Hi marto

      Yes. you are correct. I was thinking of Win32::GuiTest module while replying. Sorry. Indeed Win32 is available in PPM. I had corrected my post looks like some where it is still showing the old post.
      Thanks for letting me know x64 perl can have Win32 modules. I did not know.

      Thanks & Regards,
      Bakkiaraj M
      My Perl Gtk2 technology demo project - http://code.google.com/p/saaral-soft-search-spider/ , contributions are welcome.

        Indeed Win32 is available in PPM.

        Your sentence is unclear. What Win32 module are you referring to? This one?
Re^2: Win32::GUI on 64bit Windows?
by dasgar (Priest) on Nov 20, 2012 at 16:44 UTC
    You can not install Win32 modules in x64 bit perl.

    I beg to differ on that. It's been a while, but I seem to recall being able to install Win32 modules in 64-bit Perl before without any issues.

    Ok, so maybe you don't want to take my word for it. Here's some links to release notes of 64-bit Strawberry Perl that includes various Win32 modules in the list of included modules.

    If I remember correctly, ActiveState's releases of 64-bit version of their ActivePerl do not include Win32 modules. However, that does not mean that Win32 modules cannot be installed in 64-bit Perl.

      Hi dasgar

      Thanks for the information. I use only Active Perl in Windows. I was thinking Win32 modules are not supported in x64 perl.

      Thanks & Regards,
      Bakkiaraj M
      My Perl Gtk2 technology demo project - http://code.google.com/p/saaral-soft-search-spider/ , contributions are welcome.

        You'll need to build Win32::GUI yourself for a 64 bit machine. But it's simple enough if you are using the late version of Activestate's perl.

        ppm install mingw

        Will install the 64 bit compiler suite, then download the latest sourcecode for Win32::GUI, NOT from cpan, but from:

        http://sourceforge.net/projects/perl-win32-gui/

        It contains the various patches needed for 64 bit.

        Follow the instructions on building (it's simple enough)

        Enjoy:)

      64 bit ActivePerl comes with alot of Win32::* modules out of the box. Dumping my 64 bit ActivePerl's folders.
      API API.pm AuthenticateUser.pm ChangeNotify.pm Clipboard.pm Console Console.pm DBIODBC.pm Event.pm EventLog.pm File.pm FileSecurity.pm Internet.pm IPC.pm Job.pm Mutex.pm NetAdmin.pm NetResource.pm ODBC.pm OLE OLE.pm PerfLib.pm Pipe.pm Process.pm Registry.pm Semaphore.pm Service.pm Shortcut.pm Sound.pm TieRegistry.pm WinError.pm
      List of Win32::* XS modules.
      C:\Perl64\lib\auto\Win32>dir /b API AuthenticateUser ChangeNotify Clipboard Console Event EventLog File FileSecurity Internet IPC Job Mutex NetAdmin NetResource ODBC OLE PerfLib Pipe Process Registry Semaphore Service Shortcut Sound TieRegistry Win32.dll Win32.pdb WinError
Re^2: Win32::GUI on 64bit Windows?
by bulk88 (Priest) on Nov 21, 2012 at 07:38 UTC
    You can not install Win32 modules in x64 bit perl.

    What?

    The Win32::* modules in general compile and run on x64 Windows Perl. Properly written "Win32" C code compiles and runs transparently on x64. All Windows 64 bit Perls can have XS modules. XS and Dynaloader are not disabled as a security feature in Win64 Perls. Of course there are some Win32::* modules that have been abandoned for close to a decade and whether these will compile or not is random. The fixes are often small and easy if someone is inclined with C knowledge.