The following is command-line based build instructions around building a minimal example of Sciter (such as the "ulayered" example app in the SDK).
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.
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
.