Code Monkey home page Code Monkey logo

libsol's Introduction

Building libsol

Building libsol only requires a C compiler (preferably Clang or GCC) and a few dependencies.

Requirements

To build libsol, you'll need to have the following installed on your system:

  • libYAML - a C YAML parser
  • libuv - a C event library, originally designed for use in Node.js

If you're running Debian, you can get libYAML from the lib-yaml-0-2 and lib-yaml-dev packages. libuv does not currently distribute packages, so it will need to be built from source (see the libuv readme).

Building

The libsol project can be built using CMake. It is installed to the /usr/local directories. Currently, most Unix-based operating systems should be supported, including Linux and Mac OS X.

It is recommended that you keep all build files in a subdirectory to avoid cluttering the repository. The build folder is automatically ignored in the .gitignore file, so you could build the project using GNU Make like this:

cd libsol
mkdir build
cd build
cmake ..
make
sudo make install

Alternatively, you can specify other generators to use other build systems. For example, you could generate an Xcode project with the following command:

cmake -G Xcode ..

Compiling Sol Programs

In order to compile a sol program, you will need to have generated a C source file from a standard sol source file. This can be done with the solc utility. This will output a .c file, which can then be compiled with the following command (using Clang):

clang -lsol -o my-program my-program.c

This should generate a standard executable which can be run view the command line as usual.

libsol's People

Stargazers

Ettore Forigo avatar D. Ben Knoble avatar  avatar Iñaki Garay avatar Federico Carrone avatar DiGiTAL_CuRSe avatar arc0re avatar Alex Shatberashvili avatar JonasCz avatar Issac Kim avatar Charles E. Lehner avatar

Watchers

Alexis King avatar  avatar

Forkers

caifazhou

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.