Giter Club home page Giter Club logo

moderncpp's People

Contributors

till213 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

scls19fr

moderncpp's Issues

Provide a Vagrant environment to give Modern C++ a try (without too much install hassle)

Hello,

I did some C++ (very few) 15 years ago (with Qt) and wanted to give a try to "Modern C++".
Working with Windows I would prefer not to install a C++ compiler and CMake but work in a virtualized environment using Vagrant https://www.vagrantup.com/ (installed using Chocolatey https://chocolatey.org/)

Here is my Vagrantfile

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|

    hostname = "cpp.box"

    # Box
    config.vm.box = "ubuntu/impish64"

    # Shared folder
    config.vm.synced_folder ".", "/srv"

    # Change directory to shared folder directory when connecting using vagrant ssh
    config.ssh.extra_args = ["-t", "cd /srv; bash --login"]

    # Setup
    config.vm.provision "setup", type: "shell", inline: <<-SHELL
        touch .hushlogin
        if ! grep -q "cd /srv" ~/.bashrc ; then 
            echo "cd /srv" >> ~/.bashrc 
        fi
        hostnamectl set-hostname #{hostname}
        apt-get update --fix-missing
        apt-get install -q -y build-essential libreadline-dev unzip g++ make cmake git curl vim
    SHELL

    # Lang
    ## Cpp
    #config.vm.provision "cpp", type: "shell", inline: <<-SHELL
    #    # compiling all examples
    #    make
    #SHELL

end

I did

vagrant up

to build the virtualized dev machine (Ubuntu Impish) and

vagrant ssh

to log in

inside the box I did

$ make
cd build && cmake ../.
-- PLATFORM="Linux"
CMake Error at src/language/CMakeLists.txt:4 (add_subdirectory):
  The source directory

    /srv/src/language/CMakeFiles

  does not contain a CMakeLists.txt file.


CMake Error at src/templates/CMakeLists.txt:5 (add_subdirectory):
  The source directory

    /srv/src/templates/CMakeFiles

  does not contain a CMakeLists.txt file.


-- Configuring incomplete, errors occurred!
See also "/srv/CMakeFiles/CMakeOutput.log".
make: *** [Makefile:18: cmakestep] Error 1

Any idea what is wrong?

Thanks for your help!
(You can provide a Vagrantfile for others users if you want (inspired by this one or an other one)

Kind regards

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.