Development environment & Libraries

  1. Build environment
  2. How to build (Quick Start)
    1. Checkout source code
    2. Build
  3. How to build (Detail)
    1. Clone source code
    2. Build libaries
    3. Build Tera Term
    4. Build TTSSH
    5. Build TTProxy
    6. Build TTXKanjiMenu
    7. Build TTXSamples
    8. Build TeraTerm Menu
    9. Build CygTerm
    10. Build Cyglaunch
    11. Build HTML help file
    12. Create installer

Build environment

You can install new tools for Tera Term, but you can also choice using existing tools for build Tera Term.
If installer\release.bat cannot find a installed tool, copy installer\toolinfo_sample.bat as installer\toolinfo.bat, and edit it.
And if necessary, copy buildtools\svnrev\toolinfo_sample.txt as buildtools\svnrev\toolinfo.txt, and edit it.

How to build (Quick Start)

Checkout source code

Clone source code from GitHub (https://github.com/TeraTermProject/teraterm).

Build

Run installer\release.bat, and select 3.

How to build (Detail)

Clone source code

Clone source code from GitHub (https://github.com/TeraTermProject/teraterm).

Build libaries

Launch "x86 Native Tools Command Prompt for VS 2022" batch file from start menu, or set appropriate directory to PATH.
You can run libs\buildall.bat to build all libraries instead of run each batch files. *

Build Tera Term

  1. Open teraterm\ttermpro.sln with Visual Studio.
    The linefeed code of .sln file must be "CR+LF".
  2. Build Tera Term solution.
  3. Tera Term execution program files will be generated in teraterm\Debug / teraterm\Release directory if the building is successful.

Build TTSSH

common_static.lib must be built beforehand by teraterm\ttermpro.sln.
  1. Open ttssh2\ttssh.sln with Visual Studio.
  2. Build TTSSH solution.
  3. TTSSH DLL module will be generated in ttssh2\ttxssh\Debug / ttssh2\ttxssh\Release directory if the building is successful.

Build TTProxy

common_static.lib must be built beforehand by teraterm\ttermpro.sln.
  1. Open TTProxy\TTProxy.sln with Visual Studio.
  2. Build TTProxy solution.
  3. TTProxy DLL module will be generated in TTProxy\Debug / TTProxy\Release directory if the building is successful.

Build TTXKanjiMenu

common_static.lib must be built beforehand by teraterm\ttermpro.sln.
  1. Open TTXKanjiMenu\ttxkanjimenu.sln with Visual Studio.
  2. Build TTXKanjiMenu solution.
  3. Ttxkanjimenu DLL module will be generated in TTXKanjiMenu\Debug / TTXKanjiMenu\Release directory if the building is successful.

Build TTXSamples

common_static.lib must be built beforehand by teraterm\ttermpro.sln.
  1. Open TTXSamples\TTXSamples.sln with Visual Studio.
  2. Build TTXSamples solution.
  3. DLL modules will be generated in TTXSamples\Debug / TTXSamples\Release directory if the building is successful.

Build TeraTerm Menu

common_static.lib must be built beforehand by teraterm\ttermpro.sln.
  1. Open ttpmenu\ttpmenu.sln with Visual Studio.
  2. Build ttpmenu solution.
  3. ttpmenu.exe will be generated in ttpmenu\Debug / ttpmenu\Release directory if the building is successful.

Build CygTerm+

  1. Launch Cygwin shell and go to cygterm directory.
    # cd cygterm
    
  2. Compile CygTerm+.
    # make
    
  3. cygterm.exe will be generated.

Build Cyglaunch

common_static.lib must be built beforehand by teraterm\ttermpro.sln.
  1. Open cygwin\cygwin.sln with Visual Studio.
  2. Build cygwin solution.
  3. cyglaunch.exe will be generated in cygwin\Debug / cygwin\Release directory if the building is successful.

Build HTML help file

  1. Run doc\makechm.bat.

Create installer

When use AppVeyor
Run "NEW BUILD" in AppVeyor.
installer\release.bat is called.
When use installer\release.bat
Run installer\release.bat to create installer and zip.
File name is constructed from buildtool\svnrev\sourcetree_info.bat. It is written by buildtools\svnrev\svnrev.bat from teraterm\common\tt-version.h.
When use Inno Script Studio
It is easier to use installer\release.bat when create an RC,release.
Debugging installer is easy to use Inno Script Studio. File name of installer is constructed from definition of installer\teraterm.iss. File name of portable version is constructed from buildtool\svnrev\sourcetree_info.bat.