< OpenSCAD User Manual
This page is currently under development - the goal is that it will describe how to set up a functional development environment for OpenSCAD on Windows.
Parameters in the Hidden tab (with first letter uppercase) will never be displayed. Not even the tab will be shown. This prevents global variables that have not been parameterized for the Thingiverse or OpenSCAD Customizer from showing up in the Customizer interface. OpenSCAD Open Source parametric design tool Executables for Windows, Mac, Linux Free to distribute, free to use, crossÂplatform Converts textual instructions into 3D shapes Supports Constructive Solid Geometry (CSG) modeling.
- 2Installation
- 2.5Modify .bashrc
Downloads[edit]
- MSYS2 (Download)
Download the 'msys2 installer' matching your Windows system (32bit or 64bit). The following description follows the 64bit installation, so if you have a 32bit Windows, some of the package names need to be changed for the 32bit versions of the packages (usually that's i686 instead of x86_64).
Installation[edit]
MSYS2[edit]
Start by installing MYSYS2 following the documentation on the download page.
After installation a bash window will appear, all the following step will be done from inside this MSYS console window.
Install packages with needed dependencies and the QtCreator IDE:
or for those who have trouble copy and pasting:
If you want to start the MSYS2 environment later, use the MinGW-32 (for 32bit Systems) or MinGW-64 links in the start menu to open the console window.
Note that MSYS2 also provides a precompiled OpenSCAD package. This can be installed using
Updating MSYS2[edit]
Update the packages to the latest version in the MSYS2 repository, follow the steps in the MSYS2 wiki. It's important to update the core packages first.
OpenSCAD[edit]
Get the OpenSCAD sourcecode using GIT:
Compiling[edit]
Modify .bashrc[edit]
Openscad Manual Pdf
For some reason msys2 has qmake install in /mingw64/bin ( cross compile issue maybe? ) which is not in the path. Grab a text editor such as nano and open .bashrc.
Add the following line to the very end then save and exit.
Note you can git a list of editor with:
If you don't do this, you get 'command qmake not found' when you try to execute qmake as shown below.
What Is Openscad
Commandline[edit]
Currently it's not possible to use the debug build with the library provided by MSYS2 as linking release QScintilla and debug Qt will cause OpenSCAD to crash. See 'Building Debug Version' for how to manually build a debug version of QScintilla.
Change to the folder the OpenSCAD repository is cloned to and run qmake to create the Makefiles and compile using make.
The resource lookup does not yet work with the file layout created with that build. The easiest way is to move the compiled openscad.exe to the root folder of the OpenSCAD source code.
To accentually run the executable, you can then use:
QtCreator[edit]
To compile and run OpenSCAD, just open the main project file openscad.pro which is located in the top folder of the cloned github project.
The Build-Type must be changed to 'Release'.
Press Ctrl+B to build.
In some cases the build fails when generating the parser code using flex and bison. In that case disabling the 'Shadow Build' (see Project tab / General Settings) can help.
Building Debug Version[edit]
Currently the QScintilla package only provides a release version of the library. Using this with a debug build of OpenSCAD is not possible (the resulting binary will crash with an assertion error inside Qt).
To create a working debug version of OpenSCAD, a debug version of QScintilla must be built manually.
- Download QScintilla source code from http://www.riverbankcomputing.com/software/qscintilla/download
- Extract the archive, change to the subfolder Qt4Qt5 in the QScintilla source tree and edit the qscintilla.pro project file. Rename the build target so the DLL will get a 'd' suffix
- Change the release config option to debug (also in qscintilla.pro)
- Build the debug DLL
- Copy the debug library into the default MSYS2 folders
OpenGL (Optional)[edit]
OpenSCAD needs at least OpenGL version 2.0 to be able to correctlyrender the preview using OpenCSG. It's possible to run with olderversions (e.g. the default provided by Windows which is 1.4) butthe display might differ from the expected output.
For systems that can't provide the needed OpenGL version (e.g. whenrunning on a VM) it's still possible to get the a more recentOpenGL driver using the Mesa software renderer.
After installing the mesa driver (default location is C:msys64mingw64bin,the driver itself is opengl32.dll), it can be even activated bycopying it into the same folder as the OpenSCAD.exe.
It's possible to enable it for the whole system by copying it to theWindows system32 folder, replacing the old system driver.(Warning: Only do that if you have a backup and enough knowledge howto restore files in a broken Windows installation!)
Openscad Free Download
Retrieved from 'https://en.wikibooks.org/w/index.php?title=OpenSCAD_User_Manual/Building_on_Microsoft_Windows&oldid=3481409'