Skip to content
This repository has been archived by the owner on Nov 27, 2019. It is now read-only.

Latest commit

 

History

History
103 lines (66 loc) · 4.83 KB

BUILD.md

File metadata and controls

103 lines (66 loc) · 4.83 KB

Building the Metamorphosys Tools

The Metamorphosys tools can be compiled from the source code in this repository. Compilation requires a Windows PC and access to the internet (for downloading NuGet packages).

Build Machine Setup

Follow these configuration instructions, in order, to set up your machine to build the Metamorphosys tools from source.

Windows x64 Professional (7 or 8.1)

Install Windows updates until your version is current

.NET Framework

Install Microsoft .NET Framework, version 4.0 or higher.

Version 4.5.1 can be found here

Microsoft Visual Studio 2010 (Professional or above)

NOTE: Will not compile under Express Edition

When installing, select these packages (at minimum):

  • C++
  • C#
  • Office Tools

Visual Studio Service Pack 1 (SP1)

download it here

Python 2.7.x x86

Get the latest Python 2.7 (2.7.8 at the time of writing). Make sure the .py extension is associated with Python 2.7, and it is installed for All Users (NOT ”just for me”). Download it here (and don’t get the 64-bit version).

pywin32 for Python 2.7

Get pywin32-219.win32-py2.7.exe here

Again, don't get the 64-bit version.

WIX

Download 3.x here (get the newest 3.x version).

3.5, 3.6, 3.7, 3.8 are detected by the build_msi.py script.

Java JDK 7 or above

Download it here

NOTE: Either x86 or x64 is okay

Set JAVA_HOME

Set environment variable JAVA_HOME to the installed directory, such as C:\Program Files (x86)\Java\jdk1.7.0_09

The real name of the subdirectory depends on what version you have installed.

GME 14.12+

Download it here

GME_x64 is the best-tested (but 32-bit should work too)

UDM x64 3.2.13+

Download it here

Android SDK

If you intend to develop Android apps on the compile machine, install the Android SDK Bundle. If you don't, then you will only need the Stand-alone SDK Tools.

Install the Android 4.3 (API 18) package (at minimum).

Apache ANT

Download ANT version 1.9.4 here

Unzip ANT to %APPDATA%\Local such that its full path is %APPDATA%\Local\apache-ant-1.9.4

Windows Updates

Again, install Windows updates until everything is current. Restart your computer.

FreeCAD

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.

Download FreeCAD v0.14 x64.

Download FreeCAD v0.14 x86.

CadQuery

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.

Download CadQuery.

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.

Git

Download msysgit

git.exe must be in your PATH. For msysgit, select Use Git from the Windows Command Prompt during installation.

Clone Repo

Clone this repository to your disk.

Build

  1. Open Visual Studio Command Prompt (2010) with ”Run as administrator”
  2. 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.

Run

For first-time users, Walkthrough Documentation is a good introduction to using the tools. More advanced capabilities are explored in the META Case Studies.