Compiling with Monodevelop: Difference between revisions

From EMGU
Jump to navigation Jump to search
mNo edit summary
m Undo revision 1553 by Deesosa (talk)
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
* First make sure you installed all the dependencies following the instructions on [[Download_And_Installation#Linux | this page]]
* First make sure you installed all the dependencies following the instructions on [[Download_And_Installation#Linux | this page]]
* Download the source code of [[Emgu CV]].


* Go to the solution directory  
* Go to the solution directory  
Line 10: Line 8:
<code> monodevelop Emgu.CV.Example_VS2005.sln </code>
<code> monodevelop Emgu.CV.Example_VS2005.sln </code>


* Monodevelop GUI will show up. On the "Active Configuration" select "Debug Linux | Any CPU"
* Monodevelop GUI will show up. Try to build the solution and you might get an error message saying "System.ServiceModel" reference cannot be found. If you get this error message, it simply means Monodevelop cannot find System.ServiceModel.dll on your Linux distribution. On Fedora 10, this dll is included on the mono-extra package. Make sure it is installed, then remove the existing reference of System.ServiceModel and add a new reference by browsing to the installation folder of System.ServiceModel.dll on your linux distribution and adding it to your project. On Fedora 10, this file is located under:


[[Image:Monodevelop_Configurate.png|center|thumb|200px|Set Active Configuration ]]
<code>/usr/lib/mono/gac/System.ServiceModel/3.0.0.0__b77a5c561934e089</code>


* Build the "Hello world" example and run it
* Build and run the "Hello world" example  
[[Image:Monodevelop_Helloworld.png|center|thumb|200px|Running "Hello World in Monodevelop]]
[[Image:Monodevelop_Helloworld.png|center|thumb|200px|Running "Hello World in Monodevelop]]
* Build and run the "Shape Detection" example
[[Image:Monodevelop_ShapeDetecion.png|center|thumb|200px|Running "Shape Detection in Monodevelop]]

Latest revision as of 09:29, 23 October 2012

  • First make sure you installed all the dependencies following the instructions on this page
  • Go to the solution directory

cd Solution\VS2005_MonoDevelop

  • Open the solution using monodevelop with the following command

monodevelop Emgu.CV.Example_VS2005.sln

  • Monodevelop GUI will show up. Try to build the solution and you might get an error message saying "System.ServiceModel" reference cannot be found. If you get this error message, it simply means Monodevelop cannot find System.ServiceModel.dll on your Linux distribution. On Fedora 10, this dll is included on the mono-extra package. Make sure it is installed, then remove the existing reference of System.ServiceModel and add a new reference by browsing to the installation folder of System.ServiceModel.dll on your linux distribution and adding it to your project. On Fedora 10, this file is located under:

/usr/lib/mono/gac/System.ServiceModel/3.0.0.0__b77a5c561934e089

  • Build and run the "Hello world" example
Running "Hello World in Monodevelop
  • Build and run the "Shape Detection" example
Running "Shape Detection in Monodevelop