Re: [Mono-list] gdiplus.dll not found
I know this is an old post, but i've had this issue right now, and I have fixed it really easily. I'm running mono on BeagleBoneBlack, and I had the same problem of missing libgdiplus. I've fixed it by just creating a simbolic link to "libgdiplus.so.0.0.0" as follows: ln -s /usr/lib/libgdiplus.so.0.0.0 /usr/lib/libgdiplus.so I know there is already a link named "libgdiplus.so.0", but it seems like mono is looking for "libgdiplus.so" instead. I hope it can help someone else. Regards, Javier -- View this message in context: http://mono.1490590.n4.nabble.com/gdiplus-dll-not-found-tp1506186p4661670.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] gdiplus.dll not found
Andrus wrote: >> mono-test-install requires bash. Is it installed on your system? > > I have limited account in this system. Tried > >> bash > bash: Command not found. > >> /var/ports-src/shells/bash > /var/ports-src/shells/bash: Permission denied. You were trying to execute a directory. > How to test installation in my limited user account ? Try to run the script with /bin/sh... or ask whomever has limited your account to install bash and/or mono properly. Robert ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] gdiplus.dll not found
> mono-test-install requires bash. Is it installed on your system? I have limited account in this system. Tried > bash bash: Command not found. > /var/ports-src/shells/bash /var/ports-src/shells/bash: Permission denied. How to test installation in my limited user account ? Andrus. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] gdiplus.dll not found
On Tue, Apr 28, 2009 at 3:28 AM, Andrus wrote: >> mono-test-install requires bash. Is it installed on your system? > > How I can check about bash presence in this FreeBsd? Type "bash". If you get an error, it's not there. -- Chris Howie http://www.chrishowie.com http://en.wikipedia.org/wiki/User:Crazycomputers ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] gdiplus.dll not found
Robert, > mono-test-install requires bash. Is it installed on your system? How I can check about bash presence in this FreeBsd? Andrus. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] gdiplus.dll not found
Andrus wrote: >> mono-test-install >> >> And it will help you diagnose this problem > > ls -l /usr/local/bin/mono-test-install > -r-xr-xr-x 1 root wheel 3667 Apr 9 23:45 > /usr/local/bin/mono-test-install > /usr/local/bin/mono-test-install > /usr/local/bin/mono-test-install: Command not found. > > ls -l mono-test-install > -rwxrwxrwx 1 monotest monotest 3667 Apr 26 23:10 mono-test-install > ./mono-test-install > ./mono-test-install: Command not found. > > How it can help diagnose ? mono-test-install requires bash. Is it installed on your system? Robert ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] gdiplus.dll not found
Hi Andrus, I had the same problem some days ago. You need to add a config file to your application which serves as a link to the dll. For example: If your application is named test, then the resulting executable will be test.exe. In this case you have to create a file named test.exe.config in the same directory. To establish a link to your dll you have to add something like this (but for gdiplus.dll) into your file: For more informations look here: http://mono-project.com/DllNotFoundException and here: http://mono-project.com/Config_DllMap Have fun, Klaus -- View this message in context: http://www.nabble.com/gdiplus.dll-not-found-tp23222606p23251262.html Sent from the Mono - General mailing list archive at Nabble.com. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] gdiplus.dll not found
> mono-test-install > > And it will help you diagnose this problem ls -l /usr/local/bin/mono-test-install -r-xr-xr-x 1 root wheel 3667 Apr 9 23:45 /usr/local/bin/mono-test-install /usr/local/bin/mono-test-install /usr/local/bin/mono-test-install: Command not found. ls -l mono-test-install -rwxrwxrwx 1 monotest monotest 3667 Apr 26 23:10 mono-test-install ./mono-test-install ./mono-test-install: Command not found. How it can help diagnose ? Andrus. > mono --version Mono JIT compiler version 2.4 (tarball Thu Apr 9 23:35:28 EEST 2009) Copyright (C) 2002-2008 Novell, Inc and Contributors. www.mono-project.com TLS: __thread GC:Included Boehm (with typed GC) SIGSEGV: normal Notification: Thread + polling Architecture: amd64 Disabled: none > uname -a FreeBSD mono.test.data.com 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Thu Aug 28 16:53:13 EEST 2008 d...@vega.data.com:/usr/obj/usr/src/sys/DATA amd64 ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] gdiplus.dll not found
Hello, > I tried mod_mono with Mono 2.4 and got exception: You can run the command: mono-test-install And it will help you diagnose this problem Miguel ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] gdiplus.dll not found
Andrus, You likely did not build (or install your distro) libgdiplus Sebastien On Fri, 2009-04-24 at 21:39 +0300, Andrus wrote: > I tried mod_mono with Mono 2.4 and got exception: > > System.TypeInitializationException: An exception was thrown by the type > initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: > gdiplus.dll > at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup > (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&) > at System.Drawing.GDIPlus..cctor () [0x000c6] in > /var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:126 > --- End of inner exception stack trace --- > at System.Drawing.Bitmap..ctor (Int32 width, Int32 height, PixelFormat > format) [0x6] in > /var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Drawing/System.Drawing/Bitmap.cs:96 > at System.Drawing.Bitmap..ctor (Int32 width, Int32 height) [0x0] in > /var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Drawing/Assembly/AssemblyInfo.cs:1 > at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor > (int,int) > at fyiReporting.RDL.Pages..ctor (fyiReporting.RDL.Report r) [0x0] > at fyiReporting.RDL.ReportDefn.RunPage (IPresent ip) [0x0] > at fyiReporting.RDL.ReportDefn.Run (IPresent ip) [0x0] > at fyiReporting.RDL.Report.RunRender (IStreamGen sg, > OutputPresentationType type, System.String prefix) [0x0] > at fyiReporting.RdlAsp.RdlReport.Generate (fyiReporting.RDL.Report report) > [0x0] > > How to fix ? > > Andrus. > > ___ > Mono-list maillist - Mono-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-list ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] gdiplus.dll not found
I tried mod_mono with Mono 2.4 and got exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: gdiplus.dll at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&) at System.Drawing.GDIPlus..cctor () [0x000c6] in /var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:126 --- End of inner exception stack trace --- at System.Drawing.Bitmap..ctor (Int32 width, Int32 height, PixelFormat format) [0x6] in /var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Drawing/System.Drawing/Bitmap.cs:96 at System.Drawing.Bitmap..ctor (Int32 width, Int32 height) [0x0] in /var/ports/var/ports-src/lang/mono/work/mono-2.4/mcs/class/System.Drawing/Assembly/AssemblyInfo.cs:1 at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (int,int) at fyiReporting.RDL.Pages..ctor (fyiReporting.RDL.Report r) [0x0] at fyiReporting.RDL.ReportDefn.RunPage (IPresent ip) [0x0] at fyiReporting.RDL.ReportDefn.Run (IPresent ip) [0x0] at fyiReporting.RDL.Report.RunRender (IStreamGen sg, OutputPresentationType type, System.String prefix) [0x0] at fyiReporting.RdlAsp.RdlReport.Generate (fyiReporting.RDL.Report report) [0x0] How to fix ? Andrus. ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] gdiplus.dll Not Found?
This is strange. In interop / PInvoke, Given foo.dll, mono will try: foo.dll.so, libfoo.dll.so, libfoo.so to probe for the correct unix library. So libgdiplus.so should be probed. I've tried several different permutations of symlinks and none of them seem to fix it. What distribution are you running this on. If we make RPM packages for it, I'll make sure to check that GDI+ works out of the box. Slackware 10.0 Also, it might make sense to continue this thread on the public mailing list, there might be other tricks that I'm not aware that's causing this problem right now. Done. Pasting previous conversation below. Regards, David P. Donahue [EMAIL PROTECTED] --BEGIN PASTE-- >I knew I forgot to specify something in my post. Libgdiplus 1.0.5 was >> installed just prior to my mono install. I configured that, mono, and >> all the other dependencies I needed, with a /usr prefix and installed >> them all. >> >> There are a handful of libgdiplus files in my /usr/lib, but none with a >> .dll extension. Did a find from / for libgdiplus.dll and came up with >> nothing, not even in the source tree where i built it. >> >> Any ideas? Would it be worth an attempt to install libgdiplus 1.1.3, or >> would that definitely require upgrading mono as well? I'd just prefer >> to stay in the release versions if possible. There should be a mapping between libgdiplus.dll into libgdiplus.so. It's strange that Mono is not able to find the right library. Are you sure your mono is in the same prefix as libgdiplus's prefix? Also, it might be that you need to add some more dirs to $LD_LIBRARY_PATH. --CUT-- I just tried: ln -s /usr/lib/libgdiplus.so [wwwroot]/bin/gdiplus.dll Which produced the following stack trace when I try to load the same test page from before: --BEGIN PASTE-- Compilation Error Description: Error compiling a resource required to service this request. Review your source file and modify it to fix this error. Error message: (0,0) : error CS0006: Cannot find assembly `/home/www/.www/bin/gdiplus.dll' (0,0) : error : (0,0) : error failed: 1 error(s), 0 warnings File name: /home/www/.www/test/test2.aspx Source File: Line 1: // -- Line 2: // Line 3: // This code was generated by a tool. Line 4: // Mono Runtime Version: 1.1.4322.573 Line 5: // Line 6: // Changes to this file may cause incorrect behavior and will be lost if Line 7: // the code is regenerated. Line 8: // Line 9: // -- Line 10: Line 11: namespace ASP { Line 12: using System; Line 13: using System.Collections; Line 14: using System.Collections.Specialized; Line 15: using System.Configuration; Line 16: using System.Text; Line 17: using System.Text.RegularExpressions; Line 18: using System.Web; Line 19: using System.Web.Caching; Line 20: using System.Web.Security; Line 21: using System.Web.SessionState; Line 22: using System.Web.UI; Line 23: using System.Web.UI.WebControls; Line 24: using System.Web.UI.HtmlControls; Line 25: Line 26: public class test2_aspx : cyber0ne.test2, System.Web.SessionState.IRequiresSessionState { Line 27: Line 28: private static bool __intialized = false; Line 29: Line 30: public test2_aspx () { Line 31: if ((ASP.test2_aspx.__intialized == false)) { Line 32: ASP.test2_aspx.__intialized = true; Line 33: } Line 34: } Line 35: Line 36: protected override bool SupportAutoEvents { Line 37: get { Line 38: return false; Line 39: } Line 40: } Line 41: Line 42: protected System.Web.HttpApplication ApplicationInstance { Line 43: get { Line 44: return ((System.Web.HttpApplication)(this.Context.ApplicationInstance)); Line 45: } Line 46: } Line 47: Line 48: public override string TemplateSourceDirectory { Line 49: get { Line 50: return "/test"; Line 51: } Line 52: } Line 53: Line 54: private void __BuildControlTree(System.Web.UI.Control __ctrl) { Line 55: } Line 56: Line 57: protected override void FrameworkInitialize() { Line 58: this.TraceModeValue = System.Web.TraceMode.SortByTime; Line 59: this.Request.ValidateInput(); Line 60: this.__BuildControlTree(this); Line 61: } Line 62: Line 63: public override int GetTypeHashCode() { Line 64: return 493423195; Line 65: } Line 66: } Line 67: Line 68: } ---END PASTE--- Is this at all helpful, or is this expected behavior for what I tried? 1.1.4 is being released as the new latest stable version, you say? Well, as soon as the Mono website reflects that
Re: [Mono-list] gdiplus.dll Not Found?
On Sun, 2005-02-13 at 13:42 -0500, David P. Donahue wrote: > Any ideas why I'm getting this error? How can I fix it? Any help would > be much appreciated. You will need to install the libgdiplus library. Depending on which version of Mono you're running, you may have to find the corresponding libgdiplus release to go along with it. If you still have troubles, you can find me at school. I go to NEU as well. -- Duncan Mak <[EMAIL PROTECTED]> ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] gdiplus.dll Not Found?
I'm making a web form that grabs a blod from MySQL and displays it as an image. However, when I try to call the form, I get the following stack trace: System.DllNotFoundException: gdiplus.dll in <0x00053> (wrapper managed-to-native) System.Drawing.GDIPlus:GdipLoadImageFromDelegate_linux (System.Drawing.GDIPlus/StreamGetBytesDelegate,System.Drawing.GDIPlus/StreamPutBytesDelegate,System.Drawing.GDIPlus/StreamSeekDelegate,System.Drawing.GDIPlus/StreamCloseDelegate,System.Drawing.GDIPlus/StreamSizeDelegate,intptr&) in <0x000e2> System.Drawing.Image:InitFromStream (System.IO.Stream) in <0x00056> (wrapper remoting-invoke-with-check) System.Drawing.Image:InitFromStream (System.IO.Stream) in <0x0001c> System.Drawing.Bitmap:.ctor (System.IO.Stream,bool) in <0x0006b> (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (System.IO.Stream,bool) in <0x00025> System.Drawing.Image:FromStream (System.IO.Stream,bool) in <0x00079> cyber0ne.test2:Page_Load (object,System.EventArgs) in <0x00069> (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs) in <0x00067> System.Web.UI.Control:OnLoad (System.EventArgs) in <0x00031> System.Web.UI.Control:LoadRecursive () in <0x00198> System.Web.UI.Page:InternalProcessRequest () in <0x000c2> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext) in <0x002eb> ExecuteHandlerState:Execute () in <0x00084> StateMachine:ExecuteState (System.Web.HttpApplication/IStateHandler,bool&) For reference, the code in the form is from the tutorial at: http://www.codeproject.com/aspnet/image_asp.asp under the heading "Displaying Upload File." The most significant part is where it grabs the blob as a byte array and outputs it as an image: byte [] buffer = data.getImage(imagenumber); System.IO.MemoryStream stream1 = new System.IO.MemoryStream(buffer,true); stream1.Write(buffer,0,buffer.Length); Bitmap m_bitmap = (Bitmap) Bitmap.FromStream(stream1,true); Response.ContentType = "Image/jpeg"; m_bitmap.Save(Response.OutputStream,System.Drawing.Imaging.ImageFormat.Jpeg); Any ideas why I'm getting this error? How can I fix it? Any help would be much appreciated. Regards, David P. Donahue [EMAIL PROTECTED] ___ Mono-list maillist - Mono-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-list
Re: [Mono-list] gdiplus.dll not found when trying to run Windows Forms application
Windows.Forms is non-functional currently. ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
[Mono-list] gdiplus.dll not found when trying to run Windows Forms application
Hi, I have installed mono-wine-20030318-1.ximian.6.1 and i could run any non GUI applications. When i try to run SWF, i get gdiplus.dll not found error. I could not find this dll in any of the folders. Can any help me debug this problem?. The following is the error message i got: nhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: gdiplus.dll in <0x0005c> (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&) in <0x00068> System.Drawing.GDIPlus:.cctor () --- End of inner exception stack trace --- in (unmanaged) System.Drawing.GDIPlus:GdipCreateFontFamilyFromName (string,intptr,intptr&) in <0x0007c> System.Drawing.FontFamily:.ctor (string,System.Drawing.Text.FontCollection) in <0x00012> System.Drawing.FontFamily:.ctor (string) in <0x00056> (wrapper remoting-invoke-with-check) System.Drawing.FontFamily:.ctor (string) in <0x00057> System.Drawing.Font:.ctor (string,single,System.Drawing.FontStyle,System.Drawing.GraphicsUnit,byte,bool) in <0x00028> System.Drawing.Font:.ctor (string,single,System.Drawing.FontStyle) in <0x00083> (wrapper remoting-invoke-with-check) System.Drawing.Font:.ctor (string,single,System.Drawing.FontStyle) in <0x0003e> System.Drawing.Font:FromHfont (intptr) in <0x00018> System.Windows.Forms.Control:get_DefaultFont () in <0x00055> System.Windows.Forms.Control:get_Font () in <0x0002d> System.Windows.Forms.Control:OnHandleCreated (System.EventArgs) in <0x00025> System.Windows.Forms.Form:OnHandleCreated (System.EventArgs) in <0x0025a> System.Windows.Forms.Control:CreateHandle () in <0xa> System.Windows.Forms.Form:CreateHandle () in <0x00033> System.Windows.Forms.Control:CreateControl () in <0x0004f> (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:CreateControl () in <0x00018> System.Windows.Forms.Application:Run (System.Windows.Forms.Form) in <0x00029> .TestForm:Main () Thanks, Saravanan __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html ___ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list