[ Prev ] [ Index ] [ Next ]

Sciter.JS in CodeBlocks

Created Wednesday 12 January 2022


CodeBlocks IDE installation

  1. Download CodeBlocks IDE: https://www.fosshub.com/Code-Blocks.html?dwl=codeblocks-20.03mingw-setup.exe - this installation package includes IDE and GCC compiler.
  2. Install CodeBlocks with default settings (press Next → Next → etc)
  3. Alternatively you can check for newer version at https://www.codeblocks.org/downloads/binaries/
  4. Run CodeBlocks IDE
  5. For "Compilers auto-detection" and "File associations" dialogs press "OK" button.



Sciter.JS SDK installation

  1. Download Sciter.JS SDK: https://github.com/c-smile/sciter-js-sdk/archive/refs/heads/main.zip
  2. Unpack main.zip archive to some directory, for example C:\MY\
  3. After unpack ensure that directory C:\MY\sciter-js-sdk-main\include\ exists

Creating C++ project with Sciter.JS SDK

  1. Run CodeBlocks IDE
  2. Open File → New → Project...


  1. Select "Console application" and press "Go" button


  1. Check "Skip this page next time" and press "Next"


  1. Leave C++ without change and press "Next"


  1. Use button near "Folder to create project in" and navigate to "C:\MY\" (or other directory you are using), enter project title "test"


  1. Leave default settings and press "Next"


  1. Press F9 and check if console application compiles:


  1. Copy C:\MY\sciter-js-sdk-main\bin\windows\packfolder.exe file to C:\MY\test\ folder
  2. Copy C:\MY\sciter-js-sdk-main\bin\windows\x64\sciter.dll to C:\MY\test\bin\Debug\ and C:\MY\test\bin\Release\
  3. Open Project → Build options...
  4. Double-click on project name "test" to make changes work for both Debug and Release configurations
  5. Under "Compiler settings" tab check "Static linking [-static]"


  1. Under "Linker settings" tab add winmm, ws2_32 and libole32 to link libraries and -municode option to linker options


  1. Under "Search directories" tab add path to C:\MY\sciter-js-sdk-main\include\


  1. Under "Pre/post" build steps add Pre-build command packfolder.exe resources resources.cpp -v "resources"


  1. Use "C:\MY\test\resources\index.html" and replace main.cpp with files from this demo project: .\sciter_codeblocks.zip

  1. Press F9 to build and run this program.