continuoustests / OpenIDE

A set of tools for providing basic developer IDE features around your favorite editor.
95 stars 16 forks source link

Build failing under mono #8

Closed robertpi closed 10 years ago

robertpi commented 10 years ago

Looks like mono doesn't like some of your resources, maybe a mono bug, not sure.

Here's the build output, mono version below that: /home/robert/code/OpenIDE/OpenIDE.CodeEngine.Core/OpenIDE.CodeEngine.Core.csproj (Rebuild) -> /usr/local/lib/mono/4.5/Microsoft.Common.targets (GenerateResources target) ->

/usr/local/lib/mono/4.5/Microsoft.Common.targets: error : Tool exited with code: 255. Output: Error: Exception has been thrown by the target of an invocation.

Inner exception: An exception was thrown by the type initializer for System.Drawing.GDIPlus

System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: /usr/local/lib/libgdiplus.so at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&) at System.Drawing.GDIPlus..cctor () [0x00000] in :0 --- End of inner exception stack trace --- at System.Drawing.Image.InitFromStream (System.IO.Stream stream) [0x00000] in :0 at System.Drawing.Bitmap..ctor (System.IO.Stream stream, Boolean useIcm) [0x00000] in :0 at System.Drawing.Bitmap..ctor (System.IO.Stream stream) [0x00000] in :0 at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (System.IO.Stream) at System.Windows.Forms.ImageListStreamer..ctor (System.Runtime.Serialization.SerializationInfo info, StreamingContext context) [0x00000] in :0 at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&) at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00000] in :0

This is my mono version: robert@fotnmc:~/code/OpenIDE$ mono --version Mono JIT compiler version 3.2.7 (master/089012e Sun Feb 2 13:11:37 CET 2014) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com TLS: __thread SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none Misc: softdebug LLVM: supported, not enabled. GC: sgen

bmavity commented 10 years ago

Hi Robert,

This is an issue with libgdiplus not being installed by default with 64bit mono. I am not sure how to do it off the top of my head, but I need to solve it too. On Mar 29, 2014 7:20 AM, "Robert Pickering" notifications@github.com wrote:

Looks like mono doesn't like some of your resources, maybe a mono bug, not sure.

Here's the build output, mono version below that: /home/robert/code/OpenIDE/OpenIDE.CodeEngine.Core/OpenIDE.CodeEngine.Core.csproj (Rebuild) -> /usr/local/lib/mono/4.5/Microsoft.Common.targets (GenerateResources target) ->

/usr/local/lib/mono/4.5/Microsoft.Common.targets: error : Tool exited with code: 255. Output: Error: Exception has been thrown by the target of an invocation.

Inner exception: An exception was thrown by the type initializer for System.Drawing.GDIPlus

System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: /usr/local/lib/libgdiplus.so at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&) at System.Drawing.GDIPlus..cctor () [0x00000] in :0 --- End of inner exception stack trace --- at System.Drawing.Image.InitFromStream (System.IO.Stream stream) [0x00000] in :0 at System.Drawing.Bitmap..ctor (System.IO.Stream stream, Boolean useIcm) [0x00000] in :0 at System.Drawing.Bitmap..ctor (System.IO.Stream stream) [0x00000] in :0 at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (System.IO.Stream) at System.Windows.Forms.ImageListStreamer..ctor (System.Runtime.Serialization.SerializationInfo info, StreamingContext context) [0x00000] in :0 at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&) at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00000] in :0

This is my mono version: robert@fotnmc:~/code/OpenIDE$ mono --version Mono JIT compiler version 3.2.7 (master/089012e Sun Feb 2 13:11:37 CET 2014) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com TLS: __thread SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none Misc: softdebug LLVM: supported, not enabled. GC: sgen

Reply to this email directly or view it on GitHubhttps://github.com/continuoustests/OpenIDE/issues/8 .

acken commented 10 years ago

Greg had this issue and fixed it on his machine. I am running the mono package in the debian repos so I'm far behind right now.

Greg: What did you actually do to solve it?

On Sat, Mar 29, 2014 at 4:42 PM, Brian Mavity notifications@github.comwrote:

Hi Robert,

This is an issue with libgdiplus not being installed by default with 64bit mono. I am not sure how to do it off the top of my head, but I need to solve it too. On Mar 29, 2014 7:20 AM, "Robert Pickering" notifications@github.com wrote:

Looks like mono doesn't like some of your resources, maybe a mono bug, not sure.

Here's the build output, mono version below that:

/home/robert/code/OpenIDE/OpenIDE.CodeEngine.Core/OpenIDE.CodeEngine.Core.csproj (Rebuild) -> /usr/local/lib/mono/4.5/Microsoft.Common.targets (GenerateResources target) ->

/usr/local/lib/mono/4.5/Microsoft.Common.targets: error : Tool exited with code: 255. Output: Error: Exception has been thrown by the target of an invocation.

Inner exception: An exception was thrown by the type initializer for System.Drawing.GDIPlus

System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: /usr/local/lib/libgdiplus.so at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup

(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&) at System.Drawing.GDIPlus..cctor () [0x00000] in :0 --- End of inner exception stack trace --- at System.Drawing.Image.InitFromStream (System.IO.Stream stream) [0x00000] in :0 at System.Drawing.Bitmap..ctor (System.IO.Stream stream, Boolean useIcm) [0x00000] in :0 at System.Drawing.Bitmap..ctor (System.IO.Stream stream) [0x00000] in :0 at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (System.IO.Stream) at System.Windows.Forms.ImageListStreamer..ctor (System.Runtime.Serialization.SerializationInfo info, StreamingContext context) [0x00000] in :0 at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&) at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00000] in :0

This is my mono version: robert@fotnmc:~/code/OpenIDE$ mono --version Mono JIT compiler version 3.2.7 (master/089012e Sun Feb 2 13:11:37 CET 2014) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com TLS: __thread SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none Misc: softdebug LLVM: supported, not enabled. GC: sgen

Reply to this email directly or view it on GitHub< https://github.com/continuoustests/OpenIDE/issues/8>

.

Reply to this email directly or view it on GitHubhttps://github.com/continuoustests/OpenIDE/issues/8#issuecomment-38999190 .

Best regards Svein Arne Ackenhausen

Blog - http://ackenpacken.blogspot.com/ Twitter - http://twitter.com/ackenpacken

acken commented 10 years ago

It not a build error you need to make sure that its in your LD_LIBRARY_PATH IIRC

On Sat, Mar 29, 2014 at 7:13 PM, Svein Arne Ackenhausen acken@acken.nowrote:

Greg had this issue and fixed it on his machine. I am running the mono package in the debian repos so I'm far behind right now.

Greg: What did you actually do to solve it?

On Sat, Mar 29, 2014 at 4:42 PM, Brian Mavity notifications@github.comwrote:

Hi Robert,

This is an issue with libgdiplus not being installed by default with 64bit mono. I am not sure how to do it off the top of my head, but I need to solve it too. On Mar 29, 2014 7:20 AM, "Robert Pickering" notifications@github.com wrote:

Looks like mono doesn't like some of your resources, maybe a mono bug, not sure.

Here's the build output, mono version below that:

/home/robert/code/OpenIDE/OpenIDE.CodeEngine.Core/OpenIDE.CodeEngine.Core.csproj (Rebuild) -> /usr/local/lib/mono/4.5/Microsoft.Common.targets (GenerateResources target) ->

/usr/local/lib/mono/4.5/Microsoft.Common.targets: error : Tool exited with code: 255. Output: Error: Exception has been thrown by the target of an invocation.

Inner exception: An exception was thrown by the type initializer for System.Drawing.GDIPlus

System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: /usr/local/lib/libgdiplus.so at (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup

(ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&) at System.Drawing.GDIPlus..cctor () [0x00000] in :0 --- End of inner exception stack trace --- at System.Drawing.Image.InitFromStream (System.IO.Stream stream) [0x00000] in :0 at System.Drawing.Bitmap..ctor (System.IO.Stream stream, Boolean useIcm) [0x00000] in :0 at System.Drawing.Bitmap..ctor (System.IO.Stream stream) [0x00000] in :0 at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (System.IO.Stream) at System.Windows.Forms.ImageListStreamer..ctor (System.Runtime.Serialization.SerializationInfo info, StreamingContext context) [0x00000] in :0 at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&) at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00000] in :0

This is my mono version: robert@fotnmc:~/code/OpenIDE$ mono --version Mono JIT compiler version 3.2.7 (master/089012e Sun Feb 2 13:11:37 CET 2014) Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com TLS: __thread SIGSEGV: altstack Notifications: epoll Architecture: amd64 Disabled: none Misc: softdebug LLVM: supported, not enabled. GC: sgen

Reply to this email directly or view it on GitHub< https://github.com/continuoustests/OpenIDE/issues/8>

.

Reply to this email directly or view it on GitHubhttps://github.com/continuoustests/OpenIDE/issues/8#issuecomment-38999190 .

Best regards Svein Arne Ackenhausen

Blog - http://ackenpacken.blogspot.com/ Twitter - http://twitter.com/ackenpacken

Le doute n'est pas une condition agréable, mais la certitude est absurde.

bmavity commented 10 years ago

LD_LIBRARY_PATH needs to point to libgdiplus?

robertpi commented 10 years ago

It's building now that I've build & installed: https://github.com/mono/libgdiplus

acken commented 10 years ago

Great! I just created a build from source page in the wiki with this. As for looking into F# support I am thinking the following:

Right now the C# plugin source is in the OpenIDE source repository. This is just makes it cluttered. I am think that tonight I'll pull the C# plugin code out to it's own repository. I'll also pull the code that deals with managing project files out to a stand alone library as I figure C# and F# project files are fairly similar. Then I'll add a new repository for a F# language plugin. OpenIDE extensions are fairly standalone projects.

Or did I just miss the point completely on what you were trying to accomplish?

On Sun, Mar 30, 2014 at 2:44 PM, Robert Pickering notifications@github.comwrote:

It's building now that I've build & installed: https://github.com/mono/libgdiplus

Reply to this email directly or view it on GitHubhttps://github.com/continuoustests/OpenIDE/issues/8#issuecomment-39024591 .

Best regards Svein Arne Ackenhausen

Blog - http://ackenpacken.blogspot.com/ Twitter - http://twitter.com/ackenpacken

robertpi commented 10 years ago

Yes, that's what I'm trying to accomplish, but it's early days, need to start by taking look at what OpenIDE can do, I've only read Greg Young's intro.

acken commented 10 years ago

Ok, cool. Have managed to separate out all language plugins. Not yet done anything with F#. Will do a bit more documentation over the next days that may shed a bit more light on OpenIDE.

On Sun, Mar 30, 2014 at 7:09 PM, Robert Pickering notifications@github.comwrote:

Yes, that's what I'm trying to accomplish, but it's early days, need to start by taking look at what OpenIDE can do, I've only read Greg Young's intro.

Reply to this email directly or view it on GitHubhttps://github.com/continuoustests/OpenIDE/issues/8#issuecomment-39031760 .

Best regards Svein Arne Ackenhausen

Blog - http://ackenpacken.blogspot.com/ Twitter - http://twitter.com/ackenpacken