ActiveState / tdk

Tcl Dev Kit (TDK)
BSD 3-Clause "New" or "Revised" License
68 stars 36 forks source link

How to compile into an executable TDK program #10

Open mujinjia opened 2 years ago

mujinjia commented 2 years ago

Is there a build introduction? How to compile into an executable TDK program I need to compile TCL to bytecode, I compiled lib/tclcompiler and got a .so file, then I compiled tcl to tbc file by lib/tclcompiler/tests/test_jump_rewrite.tcl, but after I loaded the tbc file with tbcload 1.7 I can't use the tcl functions written with Can anyone show me how to compile a complete TDK program?

cyangy commented 1 year ago

I just take a few days to make it works, please refer to this link. To compile a .exe program, you should use the tclapp, and try this link, if it works, you can use the tclkit as the ‘prefix’ of tclapp to build you own program, for more detail, read the tclapp document which located in tdk/docs/official-help-files/index.html

bandoti commented 3 months ago

I have created a pull request which will address these issues. Please see #11 for details. It links to my "fix-build" branch which you can simply configure/make and it will auto-generate starkits or starpacks.