mikemag / MonkeyCAM

CAD/CAM software for ski and snowboard design and G-code program generation.
Apache License 2.0
38 stars 15 forks source link

problem executing on MAC???? see issue details for how to work around this.... #22

Closed splitn2 closed 9 years ago

splitn2 commented 9 years ago

Rileys-iMac:MonkeyCAM-4.0.3 new$ ./bin/MonkeyCam --board ./example/board-def.json --machine ./example/machine-tool-def.json MonkeyCAM v4.0.3, Copyright (C) 2013-2014 Michael M. Magruder This is free software; see the source for license information. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Using board './example/board-def.json', machine './example/machine-tool-def.json' Building board shapes... Generating G-code programs to './'... Sample-snowboard-top-profile.nc Assertion failed: (o.is_open()), function write, file /Users/Mike/dev/MonkeyCAM/core/gcode-writer.cpp, line 412. Abort trap: 6 Rileys-iMac:MonkeyCAM-4.0.3 new$

running OSX 10.9.5

I mounted the dwg file and its all there, and its executing but bombing out, i tried various relative and absolute pathnames working out of the MonkeyCAM root or in MonkeyCAM/bin directories and it made no difference. Need the guru input now Mike!!!!

splitn2 commented 9 years ago

ok so I found if I run the executable and the config files all from the same directory it works, I created a directory under Documents and copied the bin and example files all under the one directory.....

Rileys-iMac:Monkey CAM new$ ls MonkeyCAM board-def.json machine-tool-def.json Rileys-iMac:Monkey CAM new$ ./MonkeyCam --board board-def.json --machine machine-tool-def.json MonkeyCAM v4.0.3, Copyright (C) 2013-2014 Michael M. Magruder This is free software; see the source for license information. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Using board 'board-def.json', machine 'machine-tool-def.json' Building board shapes... Generating G-code programs to './'... Sample-snowboard-top-profile.nc Sample-snowboard-edge-trench.nc Sample-snowboard-core-edge-groove.nc Sample-snowboard-nose-tail-spacers.nc Sample-snowboard-guide-holes.nc Sample-snowboard-core-alignment-marks.nc Sample-snowboard-base-cutout.nc Sample-snowboard-core-insert-holes.nc Sample-snowboard-top-cutout.nc Generating HTML overview ./Sample-snowboard-overview.html Done. Rileys-iMac:Monkey CAM new$ ls -l total 9792 -rwxr-xr-x@ 1 new staff 4004000 4 Dec 12:47 MonkeyCAM -rw-r--r-- 1 new staff 22178 4 Dec 12:57 Sample-snowboard-base-cutout.nc -rw-r--r-- 1 new staff 3214 4 Dec 12:57 Sample-snowboard-core-alignment-marks.nc -rw-r--r-- 1 new staff 26472 4 Dec 12:57 Sample-snowboard-core-edge-groove.nc -rw-r--r-- 1 new staff 86572 4 Dec 12:57 Sample-snowboard-core-insert-holes.nc -rw-r--r-- 1 new staff 85976 4 Dec 12:57 Sample-snowboard-edge-trench.nc -rw-r--r-- 1 new staff 4774 4 Dec 12:57 Sample-snowboard-guide-holes.nc -rw-r--r-- 1 new staff 18354 4 Dec 12:57 Sample-snowboard-nose-tail-spacers.nc -rw-r--r-- 1 new staff 470248 4 Dec 12:57 Sample-snowboard-overview.html -rw-r--r-- 1 new staff 96831 4 Dec 12:57 Sample-snowboard-top-cutout.nc -rw-r--r-- 1 new staff 165321 4 Dec 12:57 Sample-snowboard-top-profile.nc -rw-r--r--@ 1 new staff 1295 4 Dec 12:47 board-def.json -rw-r--r--@ 1 new staff 1754 4 Dec 12:47 machine-tool-def.json

mikemag commented 9 years ago

The issue here is that the DMG file is read-only, but the command above tried to get MonkeyCAM to write into the DMG. You can use the --outdir option to specify a different destination if necessary.