Welcome to the 4coder community repository.
- Setup the MSVC toolchain in your environment, this can be done with the
code/custom/bin/setup_cl_x64.bat
script - call the
package.bat
script from the code directory (this builds a distribution in thedistributions
directory with all the non-binary dependencies)$ cd 4cc\code
.\bin\package.bat
- You can also use the
build.bat
script if you want just build the binaries (this produces the build artifacts in thebuild
directory, this doesn't produce a functional distribution)$ cd 4cc\code
$ .\bin\build.bat
tested on Ubuntu 22.04:
-
Get required libraries (apt names):
$ sudo apt install build-essential libx11-dev libxfixes-dev libglx-dev mesa-common-dev libasound2-dev libfreetype-dev libfontconfig-dev
-
Use the
package-linux.sh
script from the code directory (this builds a distribution in thedistributions
directory with all the non-binary dependencies)$ cd 4cc/code
$ ./bin/package-linux.sh
-
You can also use the
build-linux.sh
script if you want just build the binaries, (this produces the build artifacts in thebuild
directory, this doesn't produce a functional distribution)$ cd 4cc/code
$ ./bin/build-linux.sh
- The steps should be the same as linux but replace the
*-linux.sh
with their*-mac.sh
equivalents.