[MonoDevelop] OS X - File not found
Niklas Saers
niklas@registrar.no
Wed, 19 Jan 2005 14:16:01 +0100
Hi Tom and Rafael, thanks for your quick answer.
pkg-config is in my path, which pkg-config gives /sw/bin/pkg-config. Is
there an alternative pkg-config I should be using?
Indeed, monodevelop is a script that makes sure I'm in
/sw/lib/monodevelop/bin when it is being run (if not, mono uses relative
paths for loading and it will fail on icons missing like this:
$ mono /sw/lib/monodevelop/bin/MonoDevelop.exe
Creating DefaultWorkbench
(MonoDevelop:7138): Gtk-WARNING **: Error loading icon: Failed to open
file '/Users/data/resources/icons/Icons.SharpDevelopIcon': No such file
or directory
Loading error, please reinstall :
System.Reflection.TargetInvocationException: Exception has been thrown
by the target of an invocation. ---> GLib.GException: Failed to open
file '../data/resources/icons/gnome-fs-regular.png': No such file or
directory
in <0x000f8> Gdk.Pixbuf:.ctor (string)
in <0x001c4> MonoDevelop.Gui.Utils.FileIconLoader:GetPixbufForType (string)
in <0x000e8> MonoDevelop.Gui.Utils.FileIconLoader:GetPixbufForFile
(string,int,int)
in <0x002e0> MonoDevelop.Gui.Widgets.FileBrowser:Populate ()
in <0x0005c> MonoDevelop.Gui.Widgets.FileBrowser:set_CurrentDir (string)
in <0x00ae4> MonoDevelop.Gui.Widgets.FileBrowser:.ctor ()
in <0x00084> MonoDevelop.Gui.Pads.FileScout:.ctor ()
in (unmanaged) (wrapper managed-to-native)
System.Reflection.MonoCMethod:InternalInvoke (object,object[])
in <0x0008c> (wrapper managed-to-native)
System.Reflection.MonoCMethod:InternalInvoke (object,object[])
in <0x000f4> System.Reflection.MonoCMethod:Invoke
(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
--- End of inner exception stack trace ---
in <0x00168> System.Reflection.MonoCMethod:Invoke
(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
in <0x00060> System.Reflection.MonoCMethod:Invoke
(System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
in <0x0006c> System.Reflection.ConstructorInfo:Invoke (object[])
in <0x001a4> System.Activator:CreateInstance (System.Type,bool)
in <0x00020> System.Activator:CreateInstance (System.Type)
in <0x00068> System.Reflection.Assembly:CreateInstance (string,bool)
in <0x00034> System.Reflection.Assembly:CreateInstance (string)
in <0x0016c> MonoDevelop.Core.AddIns.AddIn:CreateObject (string)
in <0x00060> MonoDevelop.Core.AddIns.Codons.ClassCodon:BuildItem
(object,System.Collections.ArrayList,MonoDevelop.Core.AddIns.Conditions.ConditionCollection)
in <0x00220>
MonoDevelop.Core.AddIns.DefaultAddInTreeNode:BuildChildItems (object)
in <0x00098> MonoDevelop.Gui.DefaultWorkbench:UpdateViews
(object,System.EventArgs)
in <0x0006c> MonoDevelop.Commands.InitializeWorkbenchCommand:Run ()
in <0x00710> MonoDevelop.SharpDevelopMain:Main (string[])
Running it from the correct path gives me the same exception as in my
previous post. Running mint MonoDevelop.exe gives:
Unhandled Exception: System.TypeInitializationException: An exception
was thrown by the type initializer for
MonoDevelop.Gui.Dialogs.SplashScreenForm --->
System.NullReferenceException: Null Reference (SIGSEGV)
#0: 0x00005 calli.nat in (wrapper managed-to-native)
Gdk.PixbufLoader:gdk_pixbuf_loader_new () ()
#1: 0x0001e call in Gdk.PixbufLoader:.ctor () ()
#2: 0x00003 newobj in Gdk.Pixbuf:LoadFromStream (System.IO.Stream)
(0x76ed8 [0x71da0] )
#3: 0x0002e vcallvirt in Gdk.Pixbuf:.ctor
(System.Reflection.Assembly,string) (0x76ed8 [0x3fc80] [0x2c4fb40] )
#4: 0x00015 newobj in MonoDevelop.Gui.Dialogs.SplashScreenForm:.ctor
() ()
#5: 0x00000 newobj in
MonoDevelop.Gui.Dialogs.SplashScreenForm:.cctor () ()
#6: 0x00000 in
MonoDevelop.Gui.Dialogs.SplashScreenForm:SetCommandLineArgs (string[])
([0x2c52c20] )
#7: 0x00099 vcall in MonoDevelop.SharpDevelopMain:Main (string[])
([0x36760] )
--- End of inner exception stack trace ---
#0: 0x00000 in
MonoDevelop.Gui.Dialogs.SplashScreenForm:SetCommandLineArgs (string[])
([0x2c52c20] )
#1: 0x00099 vcall in MonoDevelop.SharpDevelopMain:Main (string[])
([0x36760] )
Not sure if that's any more help.
Cheers
Nik
Tom Larsen wrote:
>Do you have something to "kickstart" the mono runtime? Normally you
>would need to do "mono monodevelop.exe". Or is this the shell script?
>I guess I'm trying to eliminate some mojo that a Mac might have with
>trying to treat monodevelop like a windows application instead of a .Net
>assembly.
>
>Tom Larsen
>
>On Tue, 2005-01-18 at 17:08, Niklas Saers wrote:
>
>
>>Dear all,
>>I've installed monodevelop like instructed on the website on my OS X
>>10.3 box, yet it gets an error while running:
>>
>>$ monodevelop
>>Loading error, please reinstall :
>>System.ComponentModel.Win32Exception: Cannot find the specified file
>>in <0x00798> System.Diagnostics.Process:Start_common
>>(System.Diagnostics.ProcessStartInfo,System.Diagnostics.Process)
>>in <0x0002c> System.Diagnostics.Process:Start ()
>>in <0x0008c> (wrapper remoting-invoke-with-check)
>>System.Diagnostics.Process:Start ()
>>in <0x0010c>
>>MonoDevelop.Services.SystemAssemblyService:GetVariableFromPkgConfig
>>(string,string)
>>in <0x00114> MonoDevelop.Services.SystemAssemblyService:ProcessPiece
>>(string,string)
>>in <0x001dc>
>>MonoDevelop.Services.SystemAssemblyService:GetAssembliesWithoutLibInfo
>>(string,string)
>>in <0x001c0> MonoDevelop.Services.SystemAssemblyService:ParsePCFile (string)
>>in <0x005dc> MonoDevelop.Services.SystemAssemblyService:InitializeService ()
>>in <0x0028c>
>>MonoDevelop.Core.Services.ServiceManager:InitializeServicesSubsystem
>>(string)
>>in <0x00578> MonoDevelop.SharpDevelopMain:Main (string[])
>>
>>
>>What file am I missing? I've rebuilt everything again, but the problem
>>persists.
>>
>>Cheers
>>
>> Nik
>>_______________________________________________
>>Monodevelop-list mailing list
>>Monodevelop-list@lists.ximian.com
>>http://lists.ximian.com/mailman/listinfo/monodevelop-list
>>
>>