![]() ![]() Just be sure to have Perl 64 bit installed, then install Tcl::pTk (this will install also Tcl.pm which is the linking part between Perl and Tk). I work on Windows using latest ActiveTcl (only 64 bit available), Tcl::pTk (to have access to Tk from Perl), and Strawberry Perl (64bit). another way is to use Tcl::Tk which is small sufficient and gives you perl/Tk syntax, but requires more changes to your already existing perlTk code.suggested by chrstphrchvz Tcl::pTk is probably most easy transition, and probably the best advice in your particular case.also Tkx is not recommended, because its syntax too much noisy and requires full rewrite.but you better switch to BAWT binaries of tcl/tk, which is alternative to ActiveTCL.probably this is 32/64 bit not linking together.I sent an email to the perl-tcltk mailing list to inform others who might be able to help. However, I think there is a strong likelihood that the issue you've encountered here will affect the other Tcl/Tk wrappers. (I have some notes on using Tcl::pTk::TkHijack in another PerlMonks thread.) If you become "committed" to using Tcl::pTk over Perl/Tk, then another option is prefixing common widget types with ttk (e.g. ![]() All of these wrappers allow using pure Tcl syntax as well.įor existing Perl/Tk programs, you might first give Tcl::pTk::Facelift and Tcl::pTk::TkHijack a try. Tkinter for Python), it might be better to stick with Tkx and follow the tutorials on. For anyone not familiar with Perl/Tk, or familiar with Tcl/Tk or wrappers on other programming languages (e.g. Those familiar with Perl/Tk might try Tcl::Tk and Tcl::pTk: Tcl::Tk is simpler and probably better for new projects not depending on any Perl/Tk extensions, while Tcl::pTk tries to work with existing Perl/Tk programs (they might not work on the first try, but I think the effort of getting them working in Tcl::pTk likely beats rewriting them in Tkx or Tcl syntax). I have more info on comparing the wrappers in an answer on StackOverflow. However I think which one to use depends on what you're familiar with and whether you're working on an existing Perl/Tk program. You can use Ttk widgets from any Tcl/Tk wrappers: Tkx, Tcl::Tk, Tcl::pTk, and even Tcl.pm by itself (disclosure: I now maintain Tcl::pTk and Tkx). Really, all I'm looking to do is to be able to use Ttk modules as opposed to Tk modules in Perl. Edit: My issue was something much different: bad default values in tclConfig.sh in both ActiveTcl and MagicSplat-not a 32/64-bit mismatch.) (I might follow up later if I have more info, because I may have encountered this issue myself recently, but did not investigate it much before trying MagicSplat instead. I want to quickly point out that this could be an issue between ActiveTcl and Tcl.pm (which is where the failed dlopen(…) message comes from), rather than Tkx specifically. Going to write about this to Jeff Hobbs, who should be aware of such problems in ActiveTCL , which is also recommended resource for seekers of perl/Tk wisdom :) ![]() I found this binary while searching in Tclers wiki at ![]() which then solved all my problems, there are 32 and 64 bit versions, with lots of modules included Strawberry or ActivePerl) would be needed instead.īTW I experienced some another problem on Windows 7 with 32bit ActiveTcl, so it took me some effort but then I switched to So I think you're right that this issue is due to a bitness mismatch, and a 64-bit Perl distribution (e.g. The available releases of ActiveTcl 8.6 Community Edition for Windows are all 64-bit, while DWIM Perl for Windows is 32-bit. Unable to initialize Tcl at C:/Dwimperl/perl/lib/XSLoader.pm line 95.Ĭompilation failed in require at C:\Dwimperl\cpan\build\Tkx-1.09-NoNmn z\blib\lib/Tkx.pm line 215.īEGIN failed-compilation aborted at C:\Dwimperl\cpan\build\Tkx-1.09-N oNmnz\blib\lib/Tkx.pm line 215.Ĭompilation failed in require at t/LabEntry.t line 8.īEGIN failed-compilation aborted at t/LabEntry.t line 8. failed dlopen(C:/ActiveTcl/bin/tcl86t.dll.) įailed dlopen(C:/ActiveTcl/bin/tcl86t.dll.) įailed all posible tcl vers 8.x from 9 down to 0 at C:/Dwimperl/perl/l ib/XSLoader.pm line 95.įailed to load Tcl dll! at C:/Dwimperl/perl/lib/XSLoader.pm line 95. C:\Dwimperl\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_har ness(0, 'blib\lib', 'blib\arch')" t/*.t ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |