-
Notifications
You must be signed in to change notification settings - Fork 635
Dynamo on Linux, Mac
Dynamo's core can be built and run on OS X and Linux using the Mono runtime. Not all parts of Dynamo are cross-platform - notably Dynamo's WPF UI can not be run on OS X or Linux. @pboyer is the primary developer contact for cross-platform usage of Dynamo.
Mono is required to build and run Dynamo on non-windows platforms. The current version of Mono we're using is Mono JIT compiler version 3.2.8. Newer versions should work as well.
# sudo apt-get install mono-complete
Install homebrew from brew.sh
# brew install mono mono-libgdiplus
On any platform:
# xbuild /p:Configuration=Release src/Dynamo.Mono.sln
This builds Dynamo and delivers the dll's to {RepoRoot}/bin/AnyCPU/{Configuration}/
. Omitting the /p:Configuration=Release
flag will cause Dynamo to be built in Debug.
- Do not introduce platform-specific code without considering where it will be run. Where possible, make the platform explicit.
- Write your tests to minimize external dependencies, namely PresentationCore or WindowsBase
- Copying operations should use a Copy task. For example, see src/DynamoCore/DynamoCore.csproj.
Once you've built Dynamo, make a file called Program.cs
and put this inside:
using System;
using Dynamo.Models;
public class Program {
public static void Main(){
// create a default instance of Dynamo
var model = DynamoModel.Start();
// print the current version of Dynamo
Console.WriteLine( model.Version );
}
}
From the command line:
# mcs -r:DynamoCore.dll Program.cs
With the Dynamo dll's in the same directory as Program.exe, use mono to run the executable:
# mono Program.exe
Looking for help with using the Dynamo application? Try dynamobim.org.
- Dynamo 2.0 Language Changes Explained
- How Replication and Replication Guide work: Part 1
- How Replication and Replication Guide work: Part 2
- How Replication and Replication Guide work: Part 3