Menu

Compiling from Source

Compiling your individual Scite

- Where to get the Sources ?

myScites development is done on GitHub.
The current branches Tip can be downloaded here (zip)

- Build myScite Windows with MSYS2

Im quite pleased with MSYS2 x86-64 (Mingw32 and -Mingw64)
In the first run, you might want to issue some initial Commands to the package System.
The first one will install any MSYS2 updates, The second will give you some well known friends:

pacman -Su
pacman -Sy git tar diffutils patch patchutils

Now, we will install the windows 32bit and 64bit toolchains for you.

pacman -Sy mingw-w64-i686-toolchain
pacman -Sy mingw-w64-x86_64-toolchain

... Everything went OK ? Then -your set for now. :)

- Using MSYS2 Shell:
  • Find the home/username folder within MSYS2 root and copy myscites src folder to it.
    • Then, within the MinGW32/64 shell, chdir to src.lua53/scintilla/win32 and issue mingw32-make.
    • When scintilla has been build its finest - chdir to src.lua53/scite/win32 and again - do a mingw32-make.
    • If everything went fine, you will find SciTE.exe and SciLexer.dll within eg. src/3.7.5/scite/bin
- Using MSYS2 and the batchfiles

The above binary can be also comiled by simply utilizing the contained batchfiles:
- src/.make_release_with_MinGW.cmd
- please define the path to either mingw32 or mingw64 bin's folder.
- strange: had to rename mingw64 folder in order to get a valid win32 built ?

- Using MSVC

grab and install a sufficient sdk
- Add vcvarsall.bat to your systems Path eg C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ - (Update: Now optional because we use registry based force_vc_version.cmd)
- src/.make_release_with_VC.cmd
- edit the job and define which platform to use. Choose either x64 or x86

- Build myScite GTK on linux

First get your build chain and libgtk.

sudo aptitude install build-essentials
sudo aptitude install libgtk2.0-dev
# [luaLibs] If you plan to (re)compile Lualibs (scite.a), you'll also need:
# win32 sudo aptitude install binutils-mingw-w64-x86
# win64 sudo aptitude install binutils-mingw-w64-x86-64

Now change to scintilla/gtk and scite/gtk and do

make
- Build myScite for linux with "Windows Subsystem for Linux"
  • Open PowerShell as Administrator and run:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

OR

Click Settings->Apps and Features->Programs and Features
- Install Ubuntus Subsystem for linux

THEN
Install the Ubuntu Distribution https://www.microsoft.com/de-DE/store/p/ubuntu/9nblggh4msv6?rtc=1
- After installing, do

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install aptitude
sudo aptitude install build-essentials
sudo aptitude install libgtk2.0-dev
sudo aptitude install binutils-mingw-w64-x86-64
--- Now change to scintilla/gtk and scite/gtk and do
make
  • Tipp Screenshot
    When Ubuntu for Windows has been sucessfully set up, you can also compile mySciTE with a windows shell:
bash -c make
- Settings for MinGW and SciTE

The source tree also comes with an included MinGW SciTE Project file, which can be used with eg MSYS2 MinGW.

- Settings for Code::Blocks

Compiling Scintilla and SciTE with CodeBlocks is pretty easy.

Within Blocks
- just create an "empty project" and
- choose "Add Files recursively" from the "project" Menu.

If you want it really simple and straightforward,
- open the projects properties
- choose scintillas makefile (located within either scintilla/gtk or for windows: scintilla/win32)
- duplicate the "release" target, name it "all" and you are set.

- Settings for Visual Studio Code

Just clone the tree and choose it as the workspace area. VSCode Settings are included.

- Where are the Patches for Scite Mainline ?

No worries- they are all there

Note: if you are about to patch using an MSYS/CygWin/GITBash or alike,
make sure to deactivate Windows automatic case conversion "Feature"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
"DontPrettyPath"=dword:00000001

--


Related

Information: AboutSciteWebdev

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.