Skip to content

Instantly share code, notes, and snippets.

@arbalest
Created February 8, 2018 22:36
Show Gist options
  • Save arbalest/f5b3d132be85051401a97aedfe223261 to your computer and use it in GitHub Desktop.
Save arbalest/f5b3d132be85051401a97aedfe223261 to your computer and use it in GitHub Desktop.
Instructions for building a Sciter app in Windows using the command prompt

Sciter Windows Build Instructions

Description

The following is command-line based build instructions around building a minimal example of Sciter (such as the "ulayered" example app in the SDK).

Requirements

This guide requires Visual C++'s "cl" compiler on the command line, which is obtained by installing Visual Studio with Visual C++ (VS 2015 used), and then opening the VS developer command prompt (e.g. Start menu > Visual Studio 2015 > Visual Studio Tools > Developer Command Prompt).

Then, download the SDK available on the Sciter homepage.

Compiling the ulayered example

Copy the following into a new folder, from sciter-sdk/demos/ulayered:

* pack-resources.bat
* stdafx.h
* ulayered.cpp
* res/
* all files under "res/"

Edit pack-resources.bat so that the path to packfolder.exe is correct, which means finding the bin folder under sciter-sdk relative to the folder in which we're building our example app.

Run pack-resources.bat to produce resources.cpp based on the items inside the res folder.

Next, compile the main program with the following:

cl ulayered.cpp <path_to_sciter-sdk>\include\sciter-win-main.cpp /I.\ 
/I<path_to_sciter-sdk>\include /link /DYNAMICBASE /DYNAMICBASE "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi32.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "odbc32.lib" "odbccp32.lib"
/LIBPATH:"<path_to_sciter-sdk>\bin\32"

This should compile ulayered.exe.

Finally, to run the compiled program, copy <path_to_sciter-sdk>\sciter.dll into the folder containing ulayered.exe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment