Compile tcl and tk, and with tkd

These two things are separate. In the official website to the next 两个, or compile a long time, how only one tclof it?
Use vs2017x86自带的命令行快捷方式Open Directory. Compiler can not otherwise tcl
then there are points buildall.vc.bat, compiled a few here,
then compiled tk.'Re looking first tclof table of Contents:

if "%INSTALLDIR%" == "" set INSTALLDIR=G:\tcl8.6.10
if "%TCLDIR%" == "" set TCLDIR=..\..\tcl8.6.10

Changed, at winanother point in the directory build....bat, do not toss. And came out a few.
The tcl与tk的8.6.10following libraryare copied into the current directory.

import tkd.tkdapplication;                               // Import Tkd.

class Application : TkdApplication                       // Extend TkdApplication.
{
	private void exitCommand(CommandArgs args)           // Create a callback.
	{
		this.exit();                                     // Exit the application.
	}

	override protected void initInterface()              // Initialise user interface.
	{
		auto frame = new Frame(2, ReliefStyle.groove)    // Create a frame.
			.pack(10);                                   // Place the frame.

		auto label = new Label(frame, "Hello World!")    // Create a label.
			.pack(10);                                   // Place the label.

		auto exitButton = new Button(frame, "Exit")      // Create a button.
			.setCommand(&this.exitCommand)               // Use the callback.
			.pack(10);                                   // Place the button.
	}
}

void main(string[] args)
{
	auto app = new Application();                        // Create the application.
	app.run();                                           // Run the application.
}

dub.sdlContents of the file:

name "tk"
dependency "tkd" version="1.1.13"
sourceFiles "b.d"
targetType "executable"

Command dub2(即dub复制到ldc2目录的bin下), dubthe link in question.

Published 440 original articles · won praise 29 · views 110 000 +

Guess you like

Origin blog.csdn.net/fqbqrr/article/details/104755210
TCL