Re: [us...@lists.monobjc.net] Debugging of Monobjc application
Hello, i have: OS: Systemversion: Mac OS X 10.5.8 (9L31a) Kernel-Version: Darwin 9.8.0 MonoDevelop: Version: 2.2.2 Zuletzt geƤndert: 16.04.10 17:19 Ort: /Applications/MonoDevelop.app Plugin: Version 0.9 Mono: Mono JIT compiler version 2.6.4 (tarball Thu Apr 22 13:24:33 MDT 2010) Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com TLS: normal GC:Included Boehm (with typed GC) SIGSEGV: normal Notification: Thread + polling Architecture: x86 Disabled: none MonoObjc: Monobjc-2.0.492.0 I hope that helps! Best regards, Rufus What we do in life, echoes in eternity. === Rufus J.W. Buschart ICQ#: 47136206 Kirchenstr. 8 http://www.buschart.de 91054 Erlangen Phone: +49 (0)9131 - 530 15 85 Mobile: +49 (0)176 - 701 800 81 2010/5/26 Laurent Etiemble laurent.etiem...@monobjc.net Hello, I already have one person that reports a similar issue, but so far, I haven't been able to reproduce. Can you post some details about your system (OS, Mono, MonoDevelop, Addin version, etc) ? Regards, Laurent Etiemble. 2010/5/18 Rufus Buschart rufus.busch...@gmail.com Hello! I finally tried the integrated debugger too, and I got the following error message. I did a clean new installation including CSDK and Mono. Loaded assembly: /Users/rufusbuschart/Projects/MonoobjcTest/MonoobjcTest/bin/Debug/MonoobjcTest.app/Contents/Resources/MonoobjcTest.exe Loaded assembly: /Library/Frameworks/Mono.framework/Versions/2.6.4/lib/mono/gac/Monobjc/2.0.492.0__d5a8d181860c16be/Monobjc.dll [External] Loaded assembly: /Library/Frameworks/Mono.framework/Versions/2.6.4/lib/mono/gac/Monobjc.Cocoa/2.0.492.0__d5a8d181860c16be/Monobjc.Cocoa.dll [External] Loaded assembly: /Library/Frameworks/Mono.framework/Versions/2.6.4/lib/mono/gac/System/2.0.0.0__b77a5c561934e089/System.dll [External] Loaded assembly: Monobjc.Dynamic.Proxies [External] Loaded assembly: Monobjc.Dynamic.Wrappers [External] Loaded assembly: Monobjc.Dynamic.Messaging [External] 634097334933423330 [ERROR] NSApplication - Error while loading the NIB file Any idea? Thanks and best regards, Rufus What we do in life, echoes in eternity. === Rufus J.W. Buschart ICQ#: 47136206 Kirchenstr. 8 http://www.buschart.de 91054 Erlangen Phone: +49 (0)9131 - 530 15 85 Mobile: +49 (0)176 - 701 800 81 2010/5/17 Mario De Clippeleir mari...@sydec.be Hi, thanx for the effort ! I have tried this, but it still does not work. I get more errors this time : [mkbundle] In file included from /Library/Frameworks/Mono.framework/Versions/2.6.4/lib/glib-2.0/include/glibconfig.h:9, [mkbundle] from /Library/Frameworks/Mono.framework/Versions/2.6.4/include/glib-2.0/glib/gtypes.h:34, [mkbundle] from /Library/Frameworks/Mono.framework/Versions/2.6.4/include/glib-2.0/glib/galloca.h:34, [mkbundle] from /Library/Frameworks/Mono.framework/Versions/2.6.4/include/glib-2.0/glib.h:32, [mkbundle] from /Library/Frameworks/Mono.framework/Versions/2.6.4/include/mono-1.0/mono/metadata/assembly.h:4, [mkbundle] /Library/Frameworks/Mono.framework/Versions/2.6.4/include/glib-2.0/glib/gmacros.h:40:20: error: stddef.h: No such file or directory [mkbundle] In file included from /Library/Frameworks/Mono.framework/Versions/2.6.4/include/glib-2.0/glib/gtypes.h:34, [mkbundle] from /Library/Frameworks/Mono.framework/Versions/2.6.4/include/glib-2.0/glib/galloca.h:34, [mkbundle] from /Library/Frameworks/Mono.framework/Versions/2.6.4/include/glib-2.0/glib.h:32, [mkbundle] from /Library/Frameworks/Mono.framework/Versions/2.6.4/include/mono-1.0/mono/metadata/assembly.h:4, [mkbundle] /Library/Frameworks/Mono.framework/Versions/2.6.4/lib/glib-2.0/include/glibconfig.h:11:20: error: limits.h: No such file or directory [mkbundle] /Library/Frameworks/Mono.framework/Versions/2.6.4/lib/glib-2.0/include/glibconfig.h:12:19: error: float.h: No such file or directory [mkbundle] In file included from /Library/Frameworks/Mono.framework/Versions/2.6.4/include/glib-2.0/glib/gthread.h:34, etc Output of pkg-config --cflags -libs mono is : -D_THREAD_SAFE -D_REENTRANT -I/Library/Frameworks/Mono.framework/Versions/2.6.4/include/mono-1.0 -I/Library/Frameworks/Mono.framework/Versions/2.6.4/include/glib-2.0 -I/Library/Frameworks/Mono.framework/Versions/2.6.4/lib/glib-2.0/include -pthread -L/Library/Frameworks/Mono.framework/Versions/2.6.4/lib -lmono -lpthread -lm -lgthread-2.0 -lglib-2.0 -lintl Br, Mario On 17 May 2010, at 16:15, Laurent Etiemble wrote: Hello, I think it is faster if I attach the mono.pc file... In case, here is the link: http://ftp.novell.com/pub/mono/archive/2.6.3/macos-10-universal/5/ Regards, Laurent Etiemble. 2010/5/17 Mario De Clippeleir mari
Re: [us...@lists.monobjc.net] Debugging of Monobjc application
...@sydec.be On 13/05/2010 14:21, Laurent Etiemble wrote: Hello, My answers below: Regards, Laurent Etiemble. 2010/5/12 Mario De Clippeleir mari...@sydec.be Hi, I was trying this debugger but i stumbled upon the following error when starting debug: Unhandled Exception: Monobjc.ObjectiveCException: The 'libmonobjc.2.dylib' library was not found. Please check that you have correctly installed it. --- System.DllNotFoundException: @executable_path/libmonobjc.2.dylib at (wrapper managed-to-native) Monobjc.Runtime.ObjectiveC20.NativeMethods:hook_thread_lifecycle () at Monobjc.Runtime.ObjectiveC20.ObjectiveC20Bridge.HookThreadLifecycle () [0x0] in filename unknown:0 --- End of inner exception stack trace --- at Monobjc.Runtime.ObjectiveC20.ObjectiveC20Bridge.HookThreadLifecycle () [0x0] in filename unknown:0 at Monobjc.Runtime.RuntimeBridge.get_Current () [0x0] in filename unknown:0 at (wrapper synchronized) Monobjc.Runtime.RuntimeBridge:get_Current () at Monobjc.ObjectiveCRuntime.DefineClass (System.Type type) [0x0] in filename unknown:0 at Monobjc.ObjectiveCRuntime.ScanAssembly (System.Reflection.Assembly assembly) [0x0] in filename unknown:0 What am i missing here ? Have you installed Monobjc in the GAC ? There is a script called GacInstall.sh at the root of the all-in-one archive for that. Yes I have I ran under the unzipped monobjc folder. However my libs are in the lib folder of my application, does that matter ? Also : When i am trying to mkbundle my appl on snow leopard i am getting all sorts of error messages and the mac executable does not seem to get build. The errors are all of the following form : [mkbundle] /Library/Frameworks/Mono.framework/Versions/2.6.4/include/mono-1.0/mono/metadata/assembly.h:4:18: error: glib.h: No such file or directory [mkbundle] In file included from /Library/Frameworks/Mono.framework/Versions/2.6.4/include/mono-1.0/mono/metadata/assembly.h:6, [mkbundle] /Library/Frameworks/Mono.framework/Versions/2.6.4/include/mono-1.0/mono/metadata/image.h:4:19: error: stdio.h: No such file or directory [mkbundle] In file included from /Library/Frameworks/Mono.framework/Versions/2.6.4/include/mono-1.0/mono/metadata/assembly.h:6, /Library/Frameworks/Mono.framework/Versions/2.6.4/include/mono-1.0/mono/metadata/image.h:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'typedef' [mkbundle] /Library/Frameworks/Mono.framework/Versions/2.6.4/include/mono-1.0/mono/metadata/image.h:19: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token [mkbundle] /Library/Frameworks/Mono.framework/Versions/2.6.4/include/mono-1.0/mono/metadata/image.h:38: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token [mkbundle] /Library/Frameworks/Mono.framework/Versions/2.6.4/include/mono-1.0/mono/metadata/image.h:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token [mkbundle] /Library/Frameworks/Mono.framework/Versions/2.6.4/include/mono-1.0/mono/metadata/image.h:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token Any ideas ? I did a clean install of my dev environment, so i am gessing i have forgotten something Have you installed the Mono CSDK ? Can you run the NAnt script with the -v+ switch to have more logs ? The CSDK is installed. (as well as the framework, otherwise i can't run monodevelop). I have re-installed the CSDK just to make sure. The verbose option with nant does not give more information... I don't understand what is going on here. It always worked fine for me, so it must be that I have forgotten something (really stupid probably) Br, Mario On 16 Mar 2010, at 14:40, Laurent Etiemble wrote: Hello, A MonoDevelop integration is now available: http://www.monobjc.net/index.php?page=monodevelop-integration Regards, Laurent Etiemble. 2010/1/9 Rufus Buschart rufus.busch...@gmail.com Hello, I would like to ask you, what you recommend as the most simplest way to debug C#/mono using the Monobjc library. After some long hours I found out, that I'm able to compile Monobjc applications from within Monodevelop. Also I found out that these application even run, if you structure the output as an application bundle and start the bundle from the Finder or from Terminal. But every time when I try to execute them with the integrated debugger of Monodevelop I get the Error loading NIB-Message, which is discussed a couple of times in the archive of this mailing list. So how do you debug your applications? Maybe we get this Error loading NIB-problem fixed, if we set some parameter correctly? I would love to get the integrated debugger of Monodevelop working with Monobjc. I'm fairly new to Monobjc and developing in Cocoa but I do have 5+ years of professional development background in .net/C# under Windows. Best regards
[us...@lists.monobjc.net] Debugging of Monobjc application
Hello, I would like to ask you, what you recommend as the most simplest way to debug C#/mono using the Monobjc library. After some long hours I found out, that I'm able to compile Monobjc applications from within Monodevelop. Also I found out that these application even run, if you structure the output as an application bundle and start the bundle from the Finder or from Terminal. But every time when I try to execute them with the integrated debugger of Monodevelop I get the Error loading NIB-Message, which is discussed a couple of times in the archive of this mailing list. So how do you debug your applications? Maybe we get this Error loading NIB-problem fixed, if we set some parameter correctly? I would love to get the integrated debugger of Monodevelop working with Monobjc. I'm fairly new to Monobjc and developing in Cocoa but I do have 5+ years of professional development background in .net/C# under Windows. Best regards, Rufus What we do in life, echoes in eternity. === Rufus J.W. Buschart ICQ#: 47136206 Kirchenstr. 8 http://www.buschart.de 91054 Erlangen Phone: +49 (0)9131 - 530 15 85 Mobile: +49 (0)176 - 701 800 81 Sent from Nuremberg, BY, Deutschland