wcomp-phidget

WComp on Phidget's platforms

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.

You can go along with this tutorial to install the environment needed by WComp on a Phidget platform or use the French Tutorial.

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:

apt-get update; apt-get dist-upgrade
  • 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:

apt-get install apt-utils dialog deborphan wget unzip

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:

apt-get clean
apt-get purge $(deborphan)

In order to install Mono on Phidget SBC 1072, do the following:

  • Update the system installed on your platform.
  • Install the mono environment:
apt-get install mono-runtime mono-gmcs libmono-system-web2.0-cil

On Phidget 1073, you must not use the mono release 2.10.8 from Debian Wheezy distribution for ARM. There 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:
deb http://http.us.debian.org/debian testing main contrib

To give the priority to the stable packages, you must create the following files

  • /etc/apt/preferences.d/stable.pref :
Package: *
Pin: release a=stable
Pin-Priority: 995
  • /etc/apt/preferences.d/testing.pref :
Package: *
Pin: release a=testing
Pin-Priority: 750

It's now posible to add the most recent version of mono (from the Debian's testing distribution) with the followinf command:

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

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:

dpkg –i /var/cache/apt/archives/*.deb

Now you should have a working Mono environment on you Phidget SBC.

apt-get install libphidget21-dev
apt-get clean
apt-get install libphidget21-dev libusb-1.0-0-dev

If during the installation you encounter a memory problem, you can manually install the downloaded packages with the following command:

dpkg –i /var/cache/apt/archives/*.deb

If you already installed the needed tools (wget and unzip), you can download the needed packages with the following commands:

wget http://www.phidgets.com/downloads/libraries/Phidget21-windevel.zip
unzip Phidget21-windevel.zip

Then, to add the library to the Mono GAC:

gacutil -i phidget21-windevel/Phidget21.NET.dll
ln -s /usr/lib/mono/gac/Phidget21.NET/*/* /usr/lib/mono/2.0/Phidget21.NET.dll

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. We do not deliver Linux over the Web.

  • wcomp-phidget.txt
  • Last modified: 2015/03/26 11:39
  • by Stéphane Lavirotte