Code Monkey home page Code Monkey logo

accu2017setup's Introduction

Environment setup instruction for ACCU2017 "The Art of Writing Reasonable Concurrent Code"

Please clone this repository.

Linux

The following assumes a Debian based Linux (I hope for other distributions the setup is similar.)

  • Have cmake installed, e.g. sudo apt-get install cmake
  • Have gcc 6 or later installed, e.g. sudo apt-get install gcc-6 (the latest released clang compiler currently does not work together with the nana library)
  • Have the libraries libx11-dev and libxft-dev installed, e.g. sudo apt-get install libx11-dev libxft-dev
  • Have boost version 1.60.0 or later installed (http://boost.org) It is not necessary to compile any libraries, because only headers are needed
  • Further it is assumed that the repository was cloned into ~/accu2017setup
  • Create a build folder "mkdir accu2017setup_build"
  • Change into the folder "cd accu2017setup_build"
  • Create the makefiles with "cmake -D CMAKE_C_COMPILER=gcc-6 -D CMAKE_CXX_COMPILER=g++-6 ../accu2017setup"
  • Run make
  • Run both ./SetupNanaTest/SetupNanaTest and ./SetupStlabTest/SetupStlabTest. The first should display a small window and the second should output 42.

MacOS

Ismail Pazarbasi was so kind to get the environment running with clang. If you want to go his direction, please follow: https://github.com/ipazarbasi/accu2017setup.

Or follow the steps below:

  • Have homebrew installed (https://brew.sh/)
  • Have cmake installed (http://cmake)
  • Have gcc6 installed, e.g. "brew install gcc-6" (clang and mac's own compiler currently do not work together with the nana library)
  • Have the freetype library installed, e.g. "brew install freetype"
  • Have xQuarz installed (https://www.xquartz.org/)
  • Have boost version 1.60.0 or later installed (http://boost.org) It is not necessary to compile any libraries, because only headers are needed
  • Further it is assumed that the repository was cloned into ~/accu2017setup
  • Create a build folder "mkdir accu2017setup_build"
  • Change into the folder "cd accu2017setup_build"
  • Create the makefiles with "cmake -D CMAKE_C_COMPILER=gcc-6 -D CMAKE_CXX_COMPILER=g++-6 ../accu2017setup"
  • Run make
  • Run both ./SetupNanaTest/SetupNanaTest and ./SetupStlabTest/SetupStlabTest. The first should display a small window and the second should output 42.

Windows

  • Have Visual Studio 2015 Update 3 or Visual Studio 2017 installed (previous versions will not work, because of lack of C++14 features)
  • Have a recent cmake installed (http://cmake.org) (VS 2017 requires the very latest version)
  • Have boost 1.60.0 or later installed (http://boost.org) It is not necessary to compile any libraries, because only headers are needed
  • Further it is assumed that the repository was cloned into d:\accu2017setup and boost was installed into d:\boost
  • Open a "VS 2015 x64 Native Tools Command Prompt"
  • Change to D:\
  • Create a build folder "md accu2017setup_build"
  • Change into the folder "cd accu2017setup_build"
  • Create the Visual Studio Solution with "cmake -G "Visual Studio 14 2015 Win64" -D BOOST_ROOT=d:\boost d:\accu2017setup" for VS 2015 or "cmake -G "Visual Studio 15 Win64" -DBOOST_ROOT=d:\boost d:\accu2017setup" for VS 2017
  • Open the created solution "devenv accu2017setup.sln" and build all
  • Run both SetupNanaTest and SetupStlabTest. The first should display a small window and the second should output 42.

accu2017setup's People

Contributors

felixpetriconi avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

ipazarbasi tbble

accu2017setup's Issues

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.