in reply to Re^6: wxbase28u_gcc_custom.dll Error
in thread wxbase28u_gcc_custom.dll Error

Ummmmm. How did you install it? If you compiled Perl Wx or Wx yourself, you saw the console log. Perl Wx requires a module called Alien::WxWidgets, you must install that, that provides the actual WxWidget C++ libraries for Wx:: to load.

Is wxbase28u_gcc_custom.dll anywhere on your hard drive? I looked at my Wx:: install which I compiled using MS VC, I dont have that file. I have a file called wxbase28_vc_custom.dll . Did you really compile Perl Wx or Wx yourself or are you using binary zips/rars? Sounds like you are mixing a Mingw Wx:: with no Wx C++ dlls, or you are mixing a Mingw Wx:: with Visual C Wx C++ dlls. What Perl are you using, ActivePerl or Strawberry Perl?

Replies are listed 'Best First'.
Re^8: wxbase28u_gcc_custom.dll Error
by bedohave9 (Acolyte) on Aug 27, 2012 at 23:23 UTC

    Sorry for the delay. I am using the Strawberry Perl. Actually, I have used CPAN to install Wx. I have ran the Mingw before too. Here is the error when I run the program :

    C:\Users\xyz\Desktop\Perl>simpleapp.pl Can't load 'C:\Users\xyz~1\perl5\lib\perl5\MSWin32-x64-multi-thread/au +to/Wx/Wx.dll' for module Wx: load_file:The specified module could not + be foun d at C:/strawberry/perl/lib/DynaLoader.pm line 190. at C:\Users\xyz\Desktop\Perl\simpleapp.pl line 5 Compilation failed in require at C:\Users\xyz\Desktop\Perl\simpleapp.p +l line 5. BEGIN failed--compilation aborted at C:\Users\xyz\Desktop\Perl\simplea +pp.pl line 5.
      You need to find that dll and place it next to your other wxbase28*********.dll files. Is wxbase28u_gcc_custom.dll anywhere on your hard drive? I suggest you use http://www.dependencywalker.com/ and do a profile-start profiling. It will show you in the bottom 3rd log window exactly how Wx.dll loaded and what dependency failed. Here is a cut version of the loading log from my Wx.
      LoadLibraryExA("c:\perl512\site\lib\auto\Wx\Wx.dll", 0x00000000, LOAD_ +WITH_ALTERED_SEARCH_PATH) called from "c:\perl512\bin\PERL512.DLL" at + address 0x281E56E1. Loaded "c:\perl512\site\lib\auto\wx\WX.DLL" at address 0x00B20000. Su +ccessfully hooked module. Loaded "c:\perl512\site\lib\alien\wxwidgets\msw_2_8_12_cl_7_1\lib\WXMS +W28_CORE_VC_CUSTOM.DLL" at address 0x00EC0000. Successfully hooked m +odule. Loaded "c:\windows\system32\COMDLG32.DLL" at address 0x763B0000. Succ +essfully hooked module. Loaded "c:\windows\system32\SHELL32.DLL" at address 0x7C9C0000. Succe +ssfully hooked module. Loaded "c:\windows\system32\WINSPOOL.DRV" at address 0x73000000. Succ +essfully hooked module. Loaded "c:\windows\system32\OLE32.DLL" at address 0x774E0000. Success +fully hooked module. Loaded "c:\windows\system32\OLEAUT32.DLL" at address 0x77120000. Succ +essfully hooked module. Loaded "c:\perl512\site\lib\alien\wxwidgets\msw_2_8_12_cl_7_1\lib\WXBA +SE28_VC_CUSTOM.DLL" at address 0x01180000. Successfully hooked modul +e. Loaded "c:\windows\system32\MSVCP71.DLL" at address 0x7C3C0000. Succe +ssfully hooked module. Loaded "c:\perl512\site\lib\alien\wxwidgets\msw_2_8_12_cl_7_1\lib\WXMS +W28_ADV_VC_CUSTOM.DLL" at address 0x012A0000. Successfully hooked mo +dule. Loaded "c:\windows\system32\WINMM.DLL" at address 0x76B40000. Success +fully hooked module. DllMain(0x7C9C0000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\windows\sys +tem32\SHELL32.DLL" called. GetProcAddress(0x7C800000 [c:\windows\system32\KERNEL32.DLL], "CreateA +ctCtxW") called from "c:\windows\system32\SHELL32.DLL" at address 0x7 +C9FABDE and returned 0x7C8154FC. GetProcAddress(0x7C800000 [c:\windows\system32\KERNEL32.DLL], "Activat +eActCtx") called from "c:\windows\system32\SHELL32.DLL" at address 0x +7C9E7689 and returned 0x7C80A6E4. LoadLibraryW("comctl32.dll") called from "c:\windows\system32\SHELL32. +DLL" at address 0x7C9FA814. LoadLibraryW("comctl32.dll") returned 0x773D0000. GetProcAddress(0x7C800000 [c:\windows\system32\KERNEL32.DLL], "Deactiv +ateActCtx") called from "c:\windows\system32\SHELL32.DLL" at address +0x7C9E76F4 and returned 0x7C80A715. LoadLibraryW("comctl32.dll") called from "c:\windows\system32\SHELL32. +DLL" at address 0x7C9FA946. LoadLibraryW("comctl32.dll") returned 0x773D0000. GetProcAddress(0x773D0000 [c:\windows\winsxs\x86_microsoft.windows.com +mon-controls_6595b64144ccf1df_6.0.2600.5512_x-ww_35d4ce83\COMCTL32.DL +L], "InitCommonControlsEx") called from "c:\windows\system32\SHELL32. +DLL" at address 0x7C9FA956 and returned 0x773D4088. DllMain(0x7C9C0000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\windows\sys +tem32\SHELL32.DLL" returned 1 (0x1). DllMain(0x763B0000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\windows\sys +tem32\COMDLG32.DLL" called. DllMain(0x763B0000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\windows\sys +tem32\COMDLG32.DLL" returned 1 (0x1). DllMain(0x73000000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\windows\sys +tem32\WINSPOOL.DRV" called. DllMain(0x73000000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\windows\sys +tem32\WINSPOOL.DRV" returned 1 (0x1). DllMain(0x774E0000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\windows\sys +tem32\OLE32.DLL" called. DllMain(0x774E0000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\windows\sys +tem32\OLE32.DLL" returned 1 (0x1). DllMain(0x77120000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\windows\sys +tem32\OLEAUT32.DLL" called. DllMain(0x77120000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\windows\sys +tem32\OLEAUT32.DLL" returned 1 (0x1). DllMain(0x7C3C0000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\windows\sys +tem32\MSVCP71.DLL" called. DllMain(0x7C3C0000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\windows\sys +tem32\MSVCP71.DLL" returned 1 (0x1). DllMain(0x01180000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\perl512\sit +e\lib\alien\wxwidgets\msw_2_8_12_cl_7_1\lib\WXBASE28_VC_CUSTOM.DLL" c +alled. DllMain(0x01180000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\perl512\sit +e\lib\alien\wxwidgets\msw_2_8_12_cl_7_1\lib\WXBASE28_VC_CUSTOM.DLL" r +eturned 1 (0x1). DllMain(0x00EC0000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\perl512\sit +e\lib\alien\wxwidgets\msw_2_8_12_cl_7_1\lib\WXMSW28_CORE_VC_CUSTOM.DL +L" called. DllMain(0x00EC0000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\perl512\sit +e\lib\alien\wxwidgets\msw_2_8_12_cl_7_1\lib\WXMSW28_CORE_VC_CUSTOM.DL +L" returned 1 (0x1). DllMain(0x76B40000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\windows\sys +tem32\WINMM.DLL" called. DllMain(0x76B40000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\windows\sys +tem32\WINMM.DLL" returned 1 (0x1). DllMain(0x012A0000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\perl512\sit +e\lib\alien\wxwidgets\msw_2_8_12_cl_7_1\lib\WXMSW28_ADV_VC_CUSTOM.DLL +" called. DllMain(0x012A0000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\perl512\sit +e\lib\alien\wxwidgets\msw_2_8_12_cl_7_1\lib\WXMSW28_ADV_VC_CUSTOM.DLL +" returned 1 (0x1). DllMain(0x00B20000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\perl512\sit +e\lib\auto\wx\WX.DLL" called. DllMain(0x00B20000, DLL_PROCESS_ATTACH, 0x00000000) in "c:\perl512\sit +e\lib\auto\wx\WX.DLL" returned 1 (0x1). LoadLibraryExA("c:\perl512\site\lib\auto\Wx\Wx.dll", 0x00000000, LOAD_ +WITH_ALTERED_SEARCH_PATH) returned 0x00B20000. GetProcAddress(0x00B20000 [c:\perl512\site\lib\auto\wx\WX.DLL], "boot_ +Wx") called from "c:\perl512\bin\PERL512.DLL" at address 0x281EC26F a +nd returned 0x00B238FA.
      Can't load 'C:\Users\xyz~1\perl5\lib\perl5\MSWin32-x64-multi-thread/au +to/Wx/Wx.dll' for module Wx: load_file:The specified module could not + be foun d at C:/strawberry/perl/lib/DynaLoader.pm line 190.
      I also see you have a non-standard installation location. Does the file C:\Users\xyz~1\perl5\lib\perl5\MSWin32-x64-multi-thread/auto/Wx/Wx.dll exist? I suggest you also open that particular Wx.dll file using Dependency Walker and look at what perl5**.dll it wants, and make that exact dll by name is in your C:/strawberry/perl/bin folder. I dont know what happens on VC Perl or Strawberry Perl if you install Wx:: into a non-standard location. Have you tried adding the folder with wxbase*.dll files to your PATH? I am looking at this line https://metacpan.org/source/MDOOTSON/Wx-0.9911/Wx.pm#L94 and this https://metacpan.org/source/MDOOTSON/Wx-0.9911/lib/Wx/Mini.pm#L44.

      Here is the error when I did the wx::install.

      cpan> wx::install Catching error: "Can't locate object method \"install\" via package \" +wx\" (perhaps you forgot to load \"wx\"?) at C:/Perl64/lib/CPAN.pm li +ne 375, <IN > line 3.\cJ" at C:/Perl64/lib/CPAN.pm line 391 CPAN::shell() called at C:/Perl64/lib/App/Cpan.pm line 295 App::Cpan::_process_options('App::Cpan') called at C:/Perl64/l +ib/App/Cpan.pm line 364 App::Cpan::run('App::Cpan') called at C:\Perl64\bin/cpan.bat l +ine 24
        That is not valid syntax for CPAN shell and that did not install Wx:: (well, you did install some part of Wx since you got Dynaloader and Windows to complain about a missing DLL import dependency on the XS part of Wx:: module). The correct command is "install Wx". As I rarely use CPAN shell, I can't help you any further. I dont think you installed the modules that you think you installed or you installed them with "copy and paste" which probably doesn't work.
Re^8: wxbase28u_gcc_custom.dll Error
by bedohave9 (Acolyte) on Aug 27, 2012 at 23:35 UTC

    I have installed the Alien::WxWidgets and Wx:: to load, but the console still throwing the same error.

      I have installed the Alien::WxWidgets and Wx:: to load, but the console still throwing the same error.

      But did you install Alien::WxWidgets and Wx successfully ?

      Try

      cpanp -i Alien::WxWidgets Wx --allow_build_interactivity=0 --skiptest=0 --verbose --write_install_log --prereqs=1 >blah.log 2>&1

      Then check blah.log or grep blah.log for name of .log file to check

      Tail the file to see what got installed, it should be a list of files

      Installing ... Installing ... Installing ...

        I just executed the 'cpanp -i Alien::WxWidgets Wx'. Here is the log for the execution. Please let me know what is needed to be done for a successful installation.

        C:\strawberry>cpanp -i Alien::WxWidgets Wx Set up gcc environment - 4.4.7 20111023 (prerelease) [svn/rev.180339 - + mingw-w64/oz] [ERROR] 'Alien::WxWidgets' does not contain an author part [ERROR] Cannot find 'Alien::WxWidgets' in the module tree No such module: Alien::WxWidgets Installing Wx (0.9911) Running [C:\Perl64\bin\perl.exe -e use strict; BEGIN { my $old = selec +t STDERR; $|++; select $old; $|++; $0 = shift(@ARGV); my $rv = do($0) +; die $@ if $@; } C:\Users\spullabhotla\.cpanplus\5.14.2\build\Wx-0.9911\Makefile +.PL]... Set up gcc environment - 4.4.7 20111023 (prerelease) [svn/rev.180339 - + mingw-w64/oz] c:/strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/4.4.7/../../../../x8 +6_64-w64-mingw32/bin/ld.exe: cannot find -lbufferoverflowU collect2: ld returned 1 exit status c:/strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/4.4.7/../../../../x8 +6_64-w64-mingw32/bin/ld.exe: cannot find -lbufferoverflowU collect2: ld returned 1 exit status Searching configuration for: wxWidgets (any version) for (any toolkit); compiler compatibility: gcc + 3.4; Available configurations: No wxWidgets build found Compilation failed in require at C:\Users\spullabhotla\.cpanplus\5.14. +2\build\Wx-0.9911\Makefile.PL line 21. BEGIN failed--compilation aborted at C:\Users\spullabhotla\.cpanplus\5 +.14.2\build\Wx-0.9911\Makefile.PL line 21. BEGIN failed--compilation aborted at -e line 1. [ERROR] Could not run 'C:\Perl64\bin\perl.exe Makefile.PL': Set up gcc + environment - 4.4.7 20111023 (prerelease) [svn/rev.180339 - mingw-w6 +4/oz] c:/strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/4.4.7/../../../../x8 +6_64-w64-mingw32/bin/ld.exe: cannot find -lbufferoverflowU collect2: ld returned 1 exit status c:/strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/4.4.7/../../../../x8 +6_64-w64-mingw32/bin/ld.exe: cannot find -lbufferoverflowU collect2: ld returned 1 exit status Searching configuration for: wxWidgets (any version) for (any toolkit); compiler compatibility: gcc + 3.4; Available configurations: No wxWidgets build found Compilation failed in require at C:\Users\spullabhotla\.cpanplus\5.14. +2\build\Wx-0.9911\Makefile.PL line 21. BEGIN failed--compilation aborted at C:\Users\spullabhotla\.cpanplus\5 +.14.2\build\Wx-0.9911\Makefile.PL line 21. BEGIN failed--compilation aborted at -e line 1. -- cannot continue [ERROR] Unable to create a new distribution object for 'Wx' -- cannot +continue [ERROR] IPC::Run version '0.55' is required on MSWin32 in order to cap +ture buffers. The logfile generated may not contain any useful data, +until it is installed *** Install log written to: C:\Users\spullabhotla\.cpanplus\install-logs\Wx-0.9911-1346175642.lo +g Error installing 'Wx' Problem installing one or more modules

        Here is the error, I was trying to reinstall the Wx

        Set up gcc environment - 4.4.7 20111023 (prerelease) [svn/rev.180339 - + mingw-w64/oz] c:/strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/4.4.7/../../../../x8 +6_64-w64-mingw32/bin/ld.exe: cannot find -lbufferoverflowU collect2: ld returned 1 exit status c:/strawberry/c/bin/../lib/gcc/x86_64-w64-mingw32/4.4.7/../../../../x8 +6_64-w64-mingw32/bin/ld.exe: cannot find -lbufferoverflowU collect2: ld returned 1 exit status Searching configuration for: wxWidgets (any version) for (any toolkit); compiler compatibility: gcc + 3.4; Available configurations: No wxWidgets build found Compilation failed in require at Makefile.PL line 21. BEGIN failed--compilation aborted at Makefile.PL line 21. Warning: No success on command[C:\Perl64\bin\perl.exe Makefile.PL INST +ALLDIRS=site] MDOOTSON/Wx-0.9911.tar.gz C:\Perl64\bin\perl.exe Makefile.PL INSTALLDIRS=site -- 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 prerequisites Failed during this command: MDOOTSON/Wx-0.9911.tar.gz : writemakefile NO 'C:\P +erl64\bin\perl.exe Makefile.PL INSTALLDIRS=site' returned status 512