Opentk/Documentation/Instructions.txt

40 lines
1.5 KiB
Plaintext
Raw Normal View History

=== Installation ===
OpenTK does not require installation. Simply decompress the archive to a folder of your choice.
=== Usage ===
2013-11-21 18:44:12 +00:00
Three simple steps:
1. copy "OpenTK.dll" and "OpenTK.dll.config" to your project folder. These can be found under Binaries/OpenTK/Release/
2013-11-21 18:44:12 +00:00
2. add "OpenTK.dll" to your project references.
(Right-click "References" -> "Add Reference" -> "Browse" and locate "OpenTK.dll")
2013-11-21 18:44:12 +00:00
3. set "OpenTK.dll.config" to be copied to your output directory.
(Right-click "OpenTK.dll.config" -> "Properties" and set "Copy to Output Directory" to "Copy Always".)
For more details, refer to http://www.opentk.com/doc
=== Build instructions ===
Double-click OpenTK.sln to build using Visual Studio 2010+, SharpDevelop 3.0+, MonoDevelop 2.0+ or Xamarin Studio.
2013-11-21 18:44:12 +00:00
You can also build from the commandline using:
(.Net)
2013-11-21 18:44:12 +00:00
msbuild OpenTK.sln /p:Configuration=Release
(Mono)
2013-11-21 18:44:12 +00:00
xbuild OpenTK.sln /p:Configuration=Release
The resulting binaries will be placed under the Binaries/OpenTK/[Release|Debug] folders.
=== Troubleshooting ===
When building with MonoDevelop you may encounter an issue regarding a missing “GlobalAssemblyInfo.cs” file. This file is normally generated as a pre-build event, via the “Build.UpdateVersion” project. There are two solutions to this issue:
1. Configure MonoDevelop to use xbuild as its build system.
2. Right-click and run “Build.UpdateVersion” manually.
Older versions of xbuild may produce the same error when building from the commandline. In that case, simply execute xbuild twice - the second run should succeed.