Here is how I build rtext on all the three supported platforms.
Prerequisites:
- Tcl (trunk branch) must be in (rtextlocation)/../tcl
- Tk (trunk branch) must be in (rtextlocation)/../tk
Then the build and test steps are (for me - you should adapt according to your setup):
-------------------------- -- Windows (VS2022) -------------------------- set MYTCL="C:\Users\francois\Documents\Development\tcltk-fossil\tcl" set MYTK="C:\Users\francois\Documents\Development\tcltk-fossil\tk" set MYTCLTK="C:\Users\francois\Documents\Development\tcltk-fossil\tcltk" REM set DEBUGRELEASE="none" set DEBUGRELEASE="symbols" CALL "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64 cd C:\Users\francois\Documents\Development\tcltk-fossil\rtext\win nmake -f makefile.vc TCLDIR=%MYTCL% TKDIR=%MYTK% INSTALLDIR=%MYTCLTK% OPTS=%DEBUGRELEASE% clean nmake -f makefile.vc TCLDIR=%MYTCL% TKDIR=%MYTK% INSTALLDIR=%MYTCLTK% OPTS=%DEBUGRELEASE% nmake -f makefile.vc TCLDIR=%MYTCL% TKDIR=%MYTK% INSTALLDIR=%MYTCLTK% OPTS=%DEBUGRELEASE% install nmake -f makefile.vc INSTALLDIR=%MYTCLTK% OPTS=%DEBUGRELEASE% test TESTFLAGS="-verbose be" -------------------------- -- Linux -------------------------- procs=$(getconf _NPROCESSORS_ONLN) cd ~/Documents/tcltk/fossil/rtext rm ./configure autoconf ./configure --enable-symbols make clean make -j $procs make install make test -------------------------- -- macOS (XQuartz or aqua) -------------------------- export CFLAGS="-ObjC" ; # needed for aqua only procs=$(getconf _NPROCESSORS_ONLN) cd ~/Documents/tcltk/fossil/rtext rm ./configure autoconf ./configure --enable-symbols make clean make -j $procs make install make test ; # or (XQuartz): DISPLAY=:0 make test --------------------------------- -- Basic instanciation from tclsh --------------------------------- package require Tk package require rtext rtext::build-info ::tk::text .lt ; # legacy text widget text .rt ; # revised text widget