Page 1 of 1

pdfmod + mono + gtksharp

Posted: 14 May 2013, 10:35
by Rava
I tried creating a pdfmod module, and a mono module since it needs mono:
# Mono (Free .NET Development Framework)
#
# Mono provides the necessary software to develop and run .NET client
# and server applications on Linux, Solaris, Mac OS X, Windows, and
# Unix. Sponsored by Novell, the Mono open source project has an
# active and enthusiastic contributing community and is positioned to
# become the leading choice for development of Linux applications.
I found no slackware package for the recent pdfmod, so I used the dep package, created mono-2.10.8.1-i486-1sl.xzm from txz and pdfmod_0.9.1-7_all.xzm from the deb.

Sadly, I get an error running pdfmod:

Code: Select all

$ pdfmod 
Missing method set_ProgramClass in assembly /usr/lib/pdfmod/PdfMod.exe, type Gdk.Global

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' or one of its dependencies.
File name: 'gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f'
[ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or assembly 'gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f' or one of its dependencies.
File name: 'gdk-sharp, Version=2.12.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f'
I got no google hits for "Missing method set_ProgramClass in assembly /usr/lib/pdfmod/PdfMod.exe, type Gdk.Global", not even for Missing method set_ProgramClass in assembly "type Gdk.Global"...

These are the modules I used / created, concerning the deps for pdfmod:

Code: Select all

gtk-sharp-2.12.11-i486-1sl.xzm
mono-2.10.8.1-i486-1sl.xzm
pdfmod_0.9.1-7_all.xzm
After activating gtk-sharp as well I get this error:

Code: Select all

Initializing i18n catalog from /usr/share/locale/

Unhandled Exception: System.TypeLoadException: A type load exception has occurred.
  at PdfMod.PdfMod.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: A type load exception has occurred.
  at PdfMod.PdfMod.Main (System.String[] args) [0x00000] in <filename unknown>:0 
I tried to convert libmono-2_0-1-2.10.2-36.1.i586.rpm but I only get errors:

Code: Select all

root@porteus:/xx# rpm2xzm libmono-2_0-1-2.10.2-36.1.i586.rpm libmono-2_0-1-2.10.2-36.1.i586.xzm
ERROR:  rpm2cpio failed.  (maybe libmono-2_0-1-2.10.2-36.1.i586.rpm is not an RPM?)
Cannot install /xx/libmono-2_0-1-2.10.2-36.1.i586.txz:  file not found
error installing package
rm: cannot remove ‘/xx/libmono-2_0-1-2.10.2-36.1.i586.txz’: No such file or directory
Module creation failed!
root@porteus:/xx# rpm2txz libmono-2_0-1-2.10.2-36.1.i586.rpm libmono-2_0-1-2.10.2-36.1.i586.txz
ERROR:  rpm2cpio failed.  (maybe libmono-2_0-1-2.10.2-36.1.i586.rpm is not an RPM?)
ERROR:  rpm2cpio failed.  (maybe libmono-2_0-1-2.10.2-36.1.i586.txz is not an RPM?)
root@porteus:/xx# file libmono-2_0-1-2.10.2-36.1.i586.rpm
libmono-2_0-1-2.10.2-36.1.i586.rpm: RPM v3.0 bin i386/x86_64
Any ideas? Do rpm2tzm or rpm2tgz need some stuff from 005-devel?

Re: pdfmod + mono + gtksharp

Posted: 15 May 2013, 01:25
by brokenman
005-devel? Are you running 32bit porteus?

Re: pdfmod + mono + gtksharp

Posted: 15 May 2013, 04:57
by Hamza
Are you running 32bit porteus?
Have a look at topic's location.

Re: pdfmod + mono + gtksharp

Posted: 15 May 2013, 05:27
by Rava
brokenman wrote:005-devel? Are you running 32bit porteus?
My bad, it is 32 bit Port 2.0 finale, and I forgot that now it is called 007-devel...

I activated 007-devel as well, but still get this error:
[1 Debug 07:26:15.549] Starting PdfMod 0.9.1
[1 Debug 07:26:15.598] Initializing i18n catalog from /usr/share/locale/

Unhandled Exception: System.TypeLoadException: A type load exception has occurred.
at PdfMod.PdfMod.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: A type load exception has occurred.
at PdfMod.PdfMod.Main (System.String[] args) [0x00000] in <filename unknown>:0
I only tried running pdfmod after activating 007-devel, but now I cannot deactivate 007-devel:

Code: Select all

root@porteus:/usr/local/bin# deactivate 007-devel.xzm
007-devel.xzm: The module can't be removed, because it's busy (used).
Acts more like 007-devil... I don't see any running programs with ps ax... What other ways do I have to check why it won't deactivate; how can I deactivate 007-devil? This very system is a bit low when it comes to RAM, therefore I tend to only have modules activated that I really need...

(I deactivated all 3 pdfmod related modules, too...)

Re: pdfmod + mono + gtksharp

Posted: 15 May 2013, 05:31
by Hamza
Please try with this.

Re: pdfmod + mono + gtksharp

Posted: 15 May 2013, 05:52
by Rava
Now I activated these:

Code: Select all

gtk-sharp-2.12.11-i486-1sl.xzm
libmono-2_0-1-2.10.9-7.104.i586.xzm
mono-2.10.8.1-i486-1sl.xzm
pdfmod_0.9.1-7_all.xzm
but still get this error:

Code: Select all

Unhandled Exception: System.TypeLoadException: A type load exception has occurred.
  at PdfMod.PdfMod.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: A type load exception has occurred.
  at PdfMod.PdfMod.Main (System.String[] args) [0x00000] in <filename unknown>:0

Re: pdfmod + mono + gtksharp

Posted: 15 May 2013, 11:28
by Hamza
That is a generic error. How did you run pdfmod ?

Re: pdfmod + mono + gtksharp

Posted: 15 May 2013, 14:13
by RamonTavarez
Hi:

Here you can find and download mono 2.11: http://www.adrive.com/public/eQM5xD/mono-2.11.4.xzm.

it's already a Porteus module.

I hope it can be usefull for you!

Re: pdfmod + mono + gtksharp

Posted: 15 May 2013, 21:03
by Rava
Hamza wrote:That is a generic error. How did you run pdfmod ?
Since nothing happened when starting pdfmod from the menu, I started it via terminal to see any possible errors...

Re: pdfmod + mono + gtksharp

Posted: 16 May 2013, 04:07
by Rava
I also used mono-3.0.0-i486-1sl.xzm instead of 2.10, but the same errors occurs. Therefore I presume same would happen with 2.11...