mono : runtime execption

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mono : runtime execption

2,577 Views
admin
Specialist II

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

Labels (4)
2 Replies

1,602 Views
coilnpark
Contributor IV

Dear Amith kothari,

I am Colin Park and developing a custom board with i.MX6Quad.

I also wanted to install Mono Framework into i.MX6Quad image so I followed you.

However, I couldn't even build a image. (There were so many errors)

I did following things,

1. Downloaded meta-mono = git clone git://git.yoctoproject.org/meta-mono

2. Added meta-mono to the sources directory

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

bblayers.conf.png4. When I try to build a image by using command "bitbake core-image-mono" , there were so many errors as below.

build error.png

Could you give me any advice?

Best regards,

Colin Park

0 Kudos
Reply

1,602 Views
yashavanthashet
Contributor V

Hi Amith kothari,

Did you get it worked. Even I want to test the same.

Thanks.

Regards,

Yashavantha

0 Kudos
Reply