Giter Club home page Giter Club logo

cabor's Introduction

Cabor C

How to build

The build dependencies are

  • CMake 3.22 or newer
  • C99 compiler

Building on Windows

In order to build the project on windows you'll need

if you have all these then you should be able to build the project by running

build.bat

and after the build is completed successfully the program can be run with

cabor.bat

alternatively, the executables can be found at build/bin/Debug or build/bin/Release. The cabor.bat script runs the release build by default.

Building on Linux/macOS

For Linux/macOS just make sure you have Git, CMake and Xcode/GCC installed using your package manager of choice. For macOS the easiest options is probably to use homebrew to install the said packages. On macOS you could also use Xcode (Apple Clang) to build the project. CMake can generate XCode project for you.

./build.sh

and after the build is completed successfully the program can be run with

./cabor.sh

alternatively, the executables can be found at build/release/bin and build/debug/bin. The script cabor.sh runs the release build by default.

Building on fresh Ubuntu 2022.04 LTS

For Ubuntu 2022.04 LTS it's possible to run this script to build the project without having any of the dependencies. It's not recommended that you run this as it has the side effect of doing full system upgrade but in case you're running a vm this could be used.

curl --output b.sh --url https://raw.githubusercontent.com/Tykky/cabor/main/ci/bootsrap-ubuntu202204LTS.sh && sudo chmod +x b.sh && sudo ./b.sh && cd cabor && sudo chmod +x build.sh && sudo chmod +x cabor.sh && sudo ./build.sh

after doing that the program can be run as usual

./cabor.sh

Building on fresh Windows Server 2022 Datacenter core (20240111)

For Windows (using cmd.exe) there is a similar script that does everything for you. Again it's only really recommended if you're building this on a VM. The script will download chocolatey and install git, cmake and visual studio build tools using the package manager.

curl.exe --output b.bat --url https://raw.githubusercontent.com/Tykky/cabor/main/ci/bootstrap-win2022.bat & b.bat & build.bat

Afer running that you should be able to run the program as usual:

cabor.bat

Building on fresh macOS Sonoma 14.3

For macOS there is script that works for both Apple silicon and x64 using Sonoma 14.3:

curl --output b.sh --url https://raw.githubusercontent.com/Tykky/cabor/main/ci/bootsrap-macos12.sh && chmod +x b.sh && ./b.sh && cd cabor && chmod +x build.sh && chmod +x cabor.sh && ./build.sh

the scripts install the homebrew package manager and install required dependencies. Again this is not recommended but if your running this on some throw-away cloud instance it could be used. After running that you should be able to run the program with

./cabor.sh

cabor's People

Contributors

tykky avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.