monicelli
monicelli copied to clipboard
Vagrant support
To prevent problems with installation and compilation (on Mac OS X and Windows, for example), I added a simple vagrant configuration that compile mcc and mcrt in a clean ubuntu virtual machine. The provisioning script provides all required libraries.
"Only" Virtualbox and Vagrant required :)
Instructions to compile with vagrant:
~$ cd [monicelli folder path]
~$ vagrant up # to start, configure virtual machine and compile monicelli - only first execution requires internet connection and a few minutes to complete
[...]
~$ vagrant ssh # to enter virtual machine
[...]
vagrant[...]$ cd /opt/monicelli/examples
vagrant[...]$ mcc mandelbrot.mc
vagrant[...]$ llc-3.5 mandelbrot.bc
vagrant[...]$ cc mandelbrot.s /usr/local/lib/libmcrt.a -o mandelbrot
vagrant[...]$ ./mandelbrot # ENJOY
[...]
vagrant[...]$ exit # to exit virtual machine
[...]
~$ vagrant halt # to halt virtual machine
Cool, I will review this asap :)
Although Moniceli compiles smoothly on Mac OS X and Windows thanks to some CMake magic, this could be nice for experimenting anyway.
Thank you. Unfortunately I had a bit 'of trouble building monicelli on my Mac with XCode 6.2 and Homebrew. Maybe this can help less experienced users (like me) :)
Thanks for this! I had trouble compiling mcc as I reported in the issue section, I tried the Vagrant image and it worked! Since this is really useful I would suggest to the maintainers to merge this pull request.
Great! Thank you!