wcomp-phidget

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wcomp-phidget [2013/12/03 17:00]
Stéphane Lavirotte created
wcomp-phidget [2015/03/26 11:39] (current)
Stéphane Lavirotte
Line 1: Line 1:
-====== WComp on Phidget ​SBC 107x======+====== WComp on Phidget's platforms======
  
-{{:​public_namespace:​phidgets.jpg?​|}} As on Linux platform, WComp needs Mono to execute C# code. The phidget packages'​ repository contains Mono, so we will install this in order to use WComp.+{{:​public_namespace:​phidgets.jpg?​|}} As on any Linux platform, WComp needs Mono to execute C# code. The phidget packages'​ repository contains Mono, so we will install this in order to use WComp.
  
-In order to install ​Mono on Phidget ​SBC 107x, do the following+You can go along with this tutorial ​to install ​the environment needed by WComp on Phidget ​platform or use the {{:public_namespace:​td_wcomp_et_phidget_107x_2h.pdf|French Tutorial}}. 
-  ​* ​Update ​the system installed on your platform. After being loggued as super user (root), you must upgrade it using:+ 
 +{{:​public_namespace:​target:​phidget.png?​200|}} 
 + 
 +===== Update your Phidget SBC 107x  ===== 
 + 
 +First of all, you must update your system with the most recent packages After being loggued as super user (root), you must upgrade it using:
 <​code>​apt-get update; apt-get dist-upgrade</​code>​ <​code>​apt-get update; apt-get dist-upgrade</​code>​
-  * Go to the web interface of your platform and go to //System / Packages// and check //Include Full Debian Repository//​ and //Save Changes//. Then //Refresh Available Packages// and //Upgrade All Packages//. Your system is now uptodate. ​+  * Go to the web interface of your platform and go to //System / Packages// and check //Include Full Debian Repository//​ and //Save Changes//. Then //Refresh Available Packages// and //Upgrade All Packages//. Your system is now uptodate
 + 
 +You can also add some useful tools with the following commands: 
 +<​code>​apt-get install apt-utils dialog deborphan wget unzip</​code>​ 
 + 
 +After this update and upgrade of your system, you can suppress all unuseful packages (the own downloaded and some that are not useful anymore) with the following commands: 
 +<​code>​ 
 +apt-get clean 
 +apt-get purge $(deborphan) 
 +</​code>​ 
 +===== Install Mono ===== 
 + 
 +==== Install Mono on Phidget SBC 1072 ==== 
 + 
 +In order to install Mono on Phidget SBC 1072, do the following:​ 
 +  * Update the system installed on your platform.
   * Install the mono environment:​   * Install the mono environment:​
 <​code>​apt-get install mono-runtime mono-gmcs libmono-system-web2.0-cil</​code>​ <​code>​apt-get install mono-runtime mono-gmcs libmono-system-web2.0-cil</​code>​
-  * Enable phidget ​for .NET environment+ 
 +==== Install Mono on Phidget SBC 1073 ==== 
 + 
 +On Phidget 1073, you must not use the mono release 2.10.8 from Debian Wheezy distribution ​for ARMThere is a problem with this release on ARM architecture (don't know if it's on any ARM architecture or one the wait Debian compiled the project). 
 + 
 +In order to install Mono on Phidget SBC 1073, you must use the mono release from the testing Debian repository. 
 + 
 +First of all, you must configure you Debian distribution to del with stable and testing distributions. Add the following files to your system: 
 +  * ''/​etc/​apt/​sources.list.d/​testing'':​ 
 +<​code>​ 
 +deb http://​http.us.debian.org/​debian testing main contrib 
 +</​code>​ 
 + 
 +To give the priority to the stable packages, you must create the following files 
 +  * ''/​etc/​apt/​preferences.d/​stable.pref''​ : 
 +<​code>​ 
 +Package: * 
 +Pin: release a=stable 
 +Pin-Priority:​ 995 
 +</​code>​ 
 +  * ''/​etc/​apt/​preferences.d/​testing.pref''​ : 
 +<​code>​ 
 +Package: * 
 +Pin: release a=testing 
 +Pin-Priority:​ 750 
 +</​code>​ 
 + 
 +It's now posible to add the most recent version of mono (from the Debian'​s testing distribution) with the followinf command: 
 +<​code>​ 
 +apt-get clean 
 +apt-get install mono-4.0-gac/​testing mono-gac/​testing mono-runtime-common/​testing mono-runtime-sgen/​testing mono-runtime/​testing mono-mcs/​testing mono-gmcs/​testing libmono-system-web2.0-cil/​testing libc6/​testing libc6-dev/​testing libmono-corlib2.0-cil/​testing libmono-sqlite2.0-cil/​testing libmono-system-data-linq2.0-cil/​testing libmono-system-data2.0-cil/​testing libmono-system-runtime2.0-cil/​testing libmono-wcf3.0a-cil/​testing libmono2.0-cil/​testing libmono-system-core4.0-cil/​testing libmono-microsoft-csharp4.0-cil/​testing 
 +</​code>​ 
 + 
 +If during the installation,​ you encounter a problem of memory space when installing the packages, you can override the installation process by manually installing the necessary packages after downloading:​ 
 +<​code>​ 
 +dpkg –i /​var/​cache/​apt/​archives/​*.deb 
 +</​code>​ 
 + 
 +Now you should have a working Mono environment ​on you Phidget SBC. 
 + 
 +===== Install Phidget libraries for Mono ===== 
 + 
 +==== Install libraries for Phidget SBC 1072 ====
 <​code>​ <​code>​
 apt-get install libphidget21-dev apt-get install libphidget21-dev
-apt-get install wget unzip +</​code>​ 
-wget http://​www.phidgets.com/​downloads/​libraries/​Phidget21-windevel_2.1.8.20121015.zip + 
-unzip Phidget21-windevel_2.1.8.20121015.zip+==== Install libraries for Phidget SBC 1073 ==== 
 +<​code>​ 
 +apt-get clean 
 +apt-get install ​libphidget21-dev libusb-1.0-0-dev 
 +</​code>​ 
 + 
 +If during the installation you encounter a memory problem, you can manually install the downloaded packages with the following command: 
 +<​code>​ 
 +dpkg –i /​var/​cache/​apt/​archives/​*.deb 
 +</​code>​ 
 + 
 +===== Configure Phidget libraries for Mono on Phidge SBC 107x ===== 
 + 
 +If you already installed the needed tools (wget and unzip), you can download the needed packages with the following commands: 
 +<​code>​ 
 +wget http://​www.phidgets.com/​downloads/​libraries/​Phidget21-windevel.zip 
 +unzip Phidget21-windevel.zip 
 +</​code>​ 
 + 
 +Then, to add the library to the Mono GAC: 
 +<​code>​
 gacutil -i phidget21-windevel/​Phidget21.NET.dll gacutil -i phidget21-windevel/​Phidget21.NET.dll
 ln -s /​usr/​lib/​mono/​gac/​Phidget21.NET/​*/​* /​usr/​lib/​mono/​2.0/​Phidget21.NET.dll ln -s /​usr/​lib/​mono/​gac/​Phidget21.NET/​*/​* /​usr/​lib/​mono/​2.0/​Phidget21.NET.dll
 </​code>​ </​code>​
-  * Unzip SharpWCompContainer ​where you want, to be able to us it.+ 
 +===== WComp on Phidget SBC 107x===== 
 + 
 +As the last step of the overall process, to install WComp, you juste have to unzip ''​SharpWCompContainerMonoLinux'' ​where you want, to be able to us it. To get WComp for Linux, you can [[contact_us|contact us]]. We do not deliver Linux over the Web.
  
  • wcomp-phidget.1386086455.txt.gz
  • Last modified: 2013/12/03 17:00
  • by Stéphane Lavirotte