http://qs321.pair.com?node_id=1214814


in reply to Re^2: Tk vs Tcl::pTk speed image
in thread Tk vs Tcl::pTk speed image

thank you. I am starting to grasp the "behind the scenes"... However, I stillave problems in operationalizing it: in the module documentation I read:

Second method Copy installed Tcl/Tk binaries to some location, then install Perl mod +ule Tcl with a special action to make Tcl.pm know of this location. This appro +ach makes sure that only chosen Tcl installation is used.

No mention however how to accomplish it. Google doesn't help too. I am surely not very fit in this kind of things, but a bit more documentation would help. So, I again would very much appreciate any suggestion

Replies are listed 'Best First'.
Re^4: Tk vs Tcl::pTk speed image
by Anonymous Monk on May 18, 2018 at 22:10 UTC
    https://metacpan.org/source/VKON/Tcl-1.05/Makefile.PL tries to be helpful by taking non standard arguments ( not ExtUtils::MakeMaker )
    GetOptions("tclsh=s", \$tclsh, # Use this tclsh executable as +a # base to find the lib info nee +ded "tclconfig=s", \$tclconfig, # Use the specified Tcl config file # instead of basing the values +on # the tclsh exe found "buildspec", \$buildspec, # Used with --tclconfig, use the # build (instead of install) va +lues # for determining lib info "usestubs!", \$usestubs, # we want to use the Tcl stubs # mechanism by default "library=s", \$libpath, # Use this specific Tcl library "include=s", \$incpath, # Use this specific include path "define=s", \$defs, # Use this specific set of defines ) || _die <<EOT; Usage: perl Makefile.PL [--tclsh <path>] [--tclconfig <path>] [--buildspec] [--nousestubs] [<makemaker opts> +...] or for expert compilation: perl --library=-l/path/to/tcl(stub).a --include=-I/path/to/tcl/ +include --define="-DLIB_RUNTIME_DIR=... -DTCL_LIB_FILE=..." EOT