1README for building of Scintilla and SciTE 2 3Scintilla can be built by itself. 4To build SciTE, Scintilla must first be built. 5 6Lexers can be either compiled into Scintilla or built separately into a Lexilla 7shared library. 8A separate Lexilla is the preferred option and will become the only supported 9direction in Scintilla 5.0. 10See lexilla/src/README for information on building Lexilla. 11 12*** GTK+/Linux version *** 13 14You must first have GTK+ 2.24 or later and GCC (7.1 or better) installed. 15Clang may be used by adding CLANG=1 to the make command line. 16Other C++ compilers may work but may require tweaking the make file. 17Either GTK+ 2.x or 3.x may be used with 2.x the default and 3.x 18chosen with the make argument GTK3=1. 19 20To build Scintilla, use the makefile located in the scintilla/gtk directory 21 cd scintilla/gtk 22 make 23 cd ../.. 24 25To build and install SciTE, use the makefile located in the scite/gtk directory 26 cd scite/gtk 27 make 28 sudo make install 29 30This installs SciTE into $prefix/bin. The value of $prefix is determined from 31the location of Gnome if it is installed. This is usually /usr if installed 32with Linux or /usr/local if built from source. If Gnome is not installed 33/usr/bin is used as the prefix. The prefix can be overridden on the command 34line like "make prefix=/opt" but the same value should be used for both make 35and make install as this location is compiled into the executable. The global 36properties file is installed at $prefix/share/scite/SciTEGlobal.properties. 37The language specific properties files are also installed into this directory. 38 39To remove SciTE 40 sudo make uninstall 41 42To clean the object files which may be needed to change $prefix 43 make clean 44 45The current make file only supports static linking between SciTE and Scintilla. 46 47 48*** Windows version *** 49 50A C++ 17 compiler is required. 51Visual Studio 2017 is the development system used for most development 52although Mingw-w64 7.1 is also supported. 53 54There are versions of Scintilla with lexers (SciLexer.DLL) and without lexers 55(Scintilla.DLL). Make builds both versions. 56 57To build Scintilla, make in the scintilla/win32 directory 58 cd scintilla\win32 59GCC: mingw32-make 60Visual C++: nmake -f scintilla.mak 61 cd ..\.. 62 63To build SciTE, use the makefiles located in the scite/win32 directory 64 cd scite\win32 65GCC: mingw32-make 66Visual C++: nmake -f scite.mak 67 68An executable SciTE will now be in scite/bin. 69 70*** GTK+/Windows version *** 71 72Mingw-w64 is known to work. Other compilers will probably not work. 73 74Only Scintilla will build with GTK+ on Windows. SciTE will not work. 75 76Make builds both a static library version of Scintilla with lexers (scintilla.a) and 77a shared library without lexers (libscintilla.so or or libscintilla.dll). 78 79To build Scintilla, make in the scintilla/gtk directory 80 cd scintilla\gtk 81 mingw32-make 82 83*** macOS Cocoa version *** 84 85Xcode 9.2 or later may be used to build Scintilla on macOS. 86 87There is no open source version of SciTE for macOS but there is a commercial 88version available through the App Store. 89 90There are versions of Scintilla.framework with lexers (ScintillaFramework) and 91without lexers (Scintilla). 92 93To build Scintilla, run xcodebuild in the scintilla/cocoa/ScintillaFramework or 94scintilla/cocoa/Scintilla directory 95 96 cd cocoa/Scintilla 97 or 98 cd cocoa/ScintillaFramework 99 100 xcodebuild 101 102*** Qt version *** 103 104See the qt/README file to build Scintilla with Qt. 105