OpenMETA can be compiled from the source code in this repository. Compilation requires a Windows PC and access to the internet (for downloading NuGet packages).
Follow these configuration instructions, in order, to set up your machine to build OpenMETA from source.
Install Windows updates until your version is current
The solution will build with Microsoft Visual Studio 2015 or 2017.
NOTE: Will not compile with Visual Studio Code
When installing Visual Studio, select these packages (at minimum):
- C++
- C#
You must also install:
- Visual Studio 2015 Build Tools (download)
- Visual C++ 2015 Build Tools (download)
- Select the "ATL/MFC SDK" package (at minimum)
NOTE: Will not compile under Express Edition
When installing Visual Studio, select these packages (at minimum):
- C++
- C#
You must also install Microsoft Visual Studio 2015 Update 3 (download)
Visual Studio Installer -> Modify -> Individual Components -> .NET Framework 4.6.2 Developer Pack
or https://adoptium.net/download/
NOTE: Either x86 or x64 is okay
Set environment variable JAVA_HOME to the installed directory, such as C:\Program Files (x86)\Java\jdk1.7.0_09
The actual name of the subdirectory depends on what version you have installed.
GME_x64 is the best-tested (but 32-bit should work too)
Again, install Windows updates until everything is current. Restart your computer.
FreeCAD is an open-source parametric 3D CAD modeling program. META uses FreeCAD to assemble component CAD models to provide a 3D visual representation of a user's model. It is required for the CyPhy2CADPCB visualizing test benches.
CadQuery is a plugin for FreeCAD that provides a library of Python functions for the manipulation of solid geometry. These functions are used to transform the local coordinate system of a component's CAD model to the correct position and orientation in the assembly coordinate system. It is required for the CyPhy2CADPCB visualizing test benches.
To install:
- Download zip file above and extract contents.
- Copy the CadQuery folder into
<FreeCAD_Install_Dir>\Mod
NOTE: The CadQuery library must be copied into the <FreeCAD_Install_Dir>\Mod
folder to work correctly with the META tools.
For the tests to pass, EAGLE must be installed.
Download EAGLE. Version 6.5 is known to work.
For the tests to pass, OpenEMS must be installed to C:\OpenEMS
Download OpenEMS Version 0.32 is known to work.
git.exe
must be in your PATH
. For msysgit
, select Use Git from the Windows Command Prompt
during installation.
Clone this repository to your disk.
- Open Visual Studio Command Prompt (2015 or 2017) with "Run as administrator". (Do not use "x64 Native Tools Command Prompt" or "x86 x64 Cross Tools Command Prompt")
- From the root repository directory, run
build_both.cmd
. This may take 30 minutes to build. (Warnings may be ignored, but there should be no errors.)
If you encounter errors, try to build once more. There may be some remaining race conditions in the build scripts.
First-time users should read the Documentation to learn about the tools.
Simple step-by-step tutorials can be found in Tutorials section.
More advanced capabilities are explored in the Walkthroughs section.
Run bin\Python27\Scripts\python.exe deploy\build_msi.py
to build the installer.