Here is the walkthrough for Mac OS X.
This walkthrough assumes that you have the developer tools installed. If you don't have the developer tools installed, then start terminal and type g++ (see below for instructions on how to start terminal). This should start the developer tools installation since g++ is not installed by default.
Once the developer tools are installed, you can run through these following steps to compile and run the 3mf to stl code:
1. Start Terminal
- press command+space then type terminal
2. Install libzip (do this once):
- type ruby -e "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
- type brew install libzip
3. Create program directory (do this once):
- type cd Desktop
- type mkdir 3mf_to_stl
- type cd 3mf_to_stl
4. Install source (do this once):
- unzip the source zip file cp13.zip (
https://www.shapeways.com/forum/attachments/cp13-zip.164708/) into the Desktop/3mf_to_stl directory
5. Compile source (do this once):
- type g++ *.cpp -I/usr/local/Cellar/libzip/1.1.2/include -I/usr/local/Cellar/libzip/1.1.2/lib/libzip/include -L/usr/local/Cellar/libzip/1.1.2/lib -lzip
Note: the libzip version number that I'm using (1.1.2) might not be the version you're using.
6. Run program (do this many times):
- type ./a.out Lion_Cookie_Cutter.3mf Lion_Cookie_Cutter.stl
At this point you should be able to double-click on the Lion_Cookie_Cutter.stl file to preview it, at least on Mac OS X El Capitan anyway. Or, use MeshLab, which is even better.
All hail the mighty lion.