Skip to content

Commit fe2ecc2

Browse files
authored
Revised Windows instructions
Symlinking the binary doesn't work properly (breaks include paths). I've put instructions to modify your bash profile instead.
1 parent ad97b83 commit fe2ecc2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

COMPILE.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ To build all the STL files (NB you don't need to print all of these, there are s
88
I was happy to find out that [you can use make in MSYS](https://gist.github.com/evanwill/0207876c3243bbb6863e65ec5dc3f058), which comes bundled with Git for Windows. If you install Git for Windows, you can then download a copy of the executable file for make and put it in the bin directory. For me, this was ``C:\Users\me\AppData\Local\Programs\Git\mingw64\bin`` though your installation may be different. NB to start MSYS on Windows, look for "Git Bash" in your Start menu.
99

1010
## OpenSCAD command line
11-
You'll need to make sure OpenSCAD is in your executable path. This is probably the case on Linux, but on Windows I just ran ``PATH="$PATH:/c/Program Files/OpenSCAD/"`` before running make. A more permanent solution is to symlink the OpenSCAD binary into your path. I used the following command line (from within MSYS), which ought to work for most people though you may need to tweak the folders:
12-
```
13-
cd /mingw64/bin
14-
ln -s /c/Program\ Files/OpenSCAD/openscad.exe openscad.exe
15-
```
16-
NB this must be run from MSYS (aka "Git Bash") *not* the usual Windows command prompt.
11+
You'll need to make sure OpenSCAD is in your executable path so the build script can [run it from the command line](https://en.wikibooks.org/wiki/OpenSCAD_User_Manual/Using_OpenSCAD_in_a_command_line_environment). This is probably the case on Linux, but on Windows I just ran ``PATH="$PATH:/c/Program Files/OpenSCAD/"`` before running make. A more permanent solution is to put that command line into a text file ``.bash_profile`` in your home directory (i.e. ``C:\Users\me\.bash_profile``). If it doesn't exist, just create a new text file with that as the only line. Once you've done this, OpenSCAD will automatically be added to your path every time you start MSYS (aka Git Bash). NB the filename does not have a ``.txt`` extension, and it won't work if you leave one there. Symlinking the OpenSCAD binary into your mingw64 binaries folder seems to break things like the OpenSCAD includes directory, so use the method above in preference if you can.
1712

1813
On mac, you may need to add a symlink as well, probably from ``/usr/local/bin/openscad`` -> ``/Applications/OpenSCAD.app/Contents/MacOS/OpenSCAD`` (I've not checked these paths but they should be approximately right).

0 commit comments

Comments
 (0)