Getting Started
From libsecondlife
|
However, you may desire to compile libopenmv yourself. Compiling from source requires a Subversion (svn) client to acquire the code and Mono or Visual Studio/Visual C# Express to compile. More detailed instructions for different operating systems may be found below.
Specific information may be found in the libopenmv documentation. Additionally, it may be useful to consult the source code of a specific application.
Finally, if you have any questions or would like to chat with members of the libopenmv community, feel free to join us on IRC in the #libomv channel on EFnet.
Linux/OSX
Installing Mono
Follow the instructions on http://www.mono-project.com/ to install Mono on your platform. It is recommended to use the most recent version of Mono, and libopenmv may not run with versions prior to Mono 1.9.1.
Getting libopenmv
- Download the libopenmv source from Subversion by opening a terminal and typing:
$ svn co svn://openmv.org/libsl/trunk
- Compile libopenmv by returning to your terminal and typing:
$ cd trunk$ sh runprebuild.sh nant
Common Build error:
The current runtime framework 'mono-2.0' is not correctly configured in the NAnt configuration file. Unable to locate 'mono' module using pkg-config. Download the Mono development packages from http://www.mono-project.com/downloads/.
- This is probably due to missing glib2-devel packages, you can confirm this with
$ pkg-config --modversion mono
Common Build error:
The type or namespace name `Windows' does not exist in the namespace `System'. Are you missing an assembly reference?
- This is probably due to missing package libmono-winforms2.0-cil
How to launch the programs in libopenmv
libopenmv is written in C#, using .Net/Mono. This means that it is not possible to simply execute the tools independently from the command line as you would with a regular Linux application.
However, assuming you compiled libopenmv yourself, you already have everything that is needed to run the tools from the command line. (If you wish to use the graphical tools, you must install X11.)
- In your command prompt, type:
$ mono whicheverprogram.exe
Windows
libopenmv is written in C# using Microsoft .NET. Most recent installations of Windows include the .NET runtime and all dependencies necessary to use libopenmv. Therefore, to use libopenmv, you may simply download a set of pre-built binaries from Builds and launch a given application from the Command Prompt. If you desire to build libopenmv yourself, you may follow the instructions below.
How to compile libopenmv
Packages
- Microsoft Visual Studio, or Microsoft Visual C# Express Edition - http://msdn.microsoft.com/vstudio/express/visualcsharp/download/ (to compile)
- TortoiseSVN - http://tortoisesvn.net/downloads (to obtain source code)
Instructions
- Download Microsoft Visual C# Express Edition and install it.
- Download TortoiseSVN and install it.
- Create a folder named dev in C:\ (or in the root directory of some other hard drive).
- In the dev folder, create a folder named libopenmv.
- Right click the libopenmv folder, select SVN Checkout… from the context menu.
- In the field for "URL of Repository", put svn://opensecondlife.org/libsl/trunk
- Click the OK button.
- Files should start getting downloaded. When “Completed” appears, click OK.
- Now look inside the libopenmv folder and its subfolders for files ending in .bat
- For Visual Studio 2005: Double click the runprebuild.bat file
- For Visual Studio 2008: Double click the runprebuild2008.bat file
- open the solution OpenMetaverse.sln from within Visual Studio
- From the Build Menu choose Build Solution (or press the F6 Key)
The library, example applications and tools will be in the bin directory