AnsweredAssumed Answered

mono : runtime execption

Question asked by amit.kothari on Dec 11, 2013

I want to cross-compile mono-runtime for imx6-sabrelite board.

I downloaded the meta-mono from a link : meta-mono - Metadata layer to build the Mono runtime.

I did following things,

1. Added meta-mono to the sources directory

2. Added the meta-mono layer path to conf/bblayers.conf

3. Edited "core-image-mono.inc" to compile gtk-sharp :

     IMAGE_INSTALL += "libgdiplus mono gtk-sharp"

4. Compile the core-image-mono :

     $ bitbake core-image-mono

5. After coping the core-image-mono to SD card, try to run the following executables :

     hallo.exe           : Simple console base hallo world program.

     hallo_gui.exe      : Simple one frame hallo world program.

          ( These are compiled under x-86 Ubuntu-12.10 environment and working perfectly )

6. Console base application running as per expectation.

    Graphical application (hallo_gui.exe) giving runtime exception !

*********** Exception ***********

root@imx6qsabrelite:/home/gtk#

root@imx6qsabrelite:/home/gtk# mono hallo.exe

HelloWorld

root@imx6qsabrelite:/home/gtk# mono hallo_gui.exe

 

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99.

File name: 'gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f'

[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=3.

File name: 'gtk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f'

root@imx6qsabrelite:/home/gtk#

 

Regards,

Amit.

Original Attachment has been moved to: hallo.cs.zip

Original Attachment has been moved to: hallo_gui.cs.zip

Original Attachment has been moved to: hallo.exe

Original Attachment has been moved to: hallo_gui.exe

Outcomes