[Mono-osx] MonoMac Packaging fails
ForeverTangent
forevertangent at gmail.com
Thu Jul 14 14:39:10 EDT 2011
I apologize for not replying sooner. I had given up getting and answer, and wasn't checking the emails. Below are the outputs...
On Jul 8, 2011, at 6:01 PM, iamphi at gmail.com wrote:
> ForeverTangent, can you paste your MD's Build Output? Toggle "Build Output" in the Error/Warning tool box (View -> Pads -> Error List)
=====
Running MonoDevelop 2.4.2
OS X 10.6.8
MonoMacDevelop 2.4.2.4
I am only selecting building an App bundle in each case. I am leaving the Installation package creator unchecked.
Selecting: Linking All Assemblies option.
------
Creating app bundle
Contents/Info.plist
Contents/PkgInfo
Contents/Resources/MainMenu.nib
Contents/Resources/MainWindow.nib
Merging Mono into app bundle
mmp -o "/tmp/monomac-build-634462506523556770" -n "ErrorExample" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Xml.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Core.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Xml.Linq.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Drawing.dll" -a "/Users/staque/.config/MonoDevelop/addins/MonoDevelop.MonoMac.2.4.2.4/MonoMac.dll" "/Users/staque/Development/MonoProjects/ErrorExample/ErrorExample/bin/Debug/ErrorExample.exe"
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
at MonoMac.Bundler.Driver.Link () [0x00000] in <filename unknown>:0
at MonoMac.Bundler.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
at MonoMac.Bundler.Driver.Link () [0x00000] in <filename unknown>:0
at MonoMac.Bundler.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0
Merging Mono failed
======
Selecting: linking Framework option.
----
Building: ErrorExample (Debug)
Performing main compilation...
/Library/Frameworks/Mono.framework/Versions/2.10.1/bin/dmcs /noconfig "/out:/Users/staque/Development/MonoProjects/ErrorExample/ErrorExample/bin/Debug/ErrorExample.exe" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Xml.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Core.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Xml.Linq.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Drawing.dll" "/r:/Users/staque/.config/MonoDevelop/addins/MonoDevelop.MonoMac.2.4.2.4/MonoMac.dll" /nologo /warn:4 /debug:+ /debug:full /optimize- /codepage:utf8 "/define:DEBUG" /t:exe "/Users/staque/Development/MonoProjects/ErrorExample/ErrorExample/MainWindow.cs" "/Users/staque/Development/MonoProjects/ErrorExample/ErrorExample/MainWindowController.cs" "/Users/staque/Development/MonoProjects/ErrorExample/ErrorExample/MainWindow.xib.designer.cs" "/Users/staque/Development/MonoProjects/ErrorExample/ErrorExample/Main.cs" "/Users/staque/Development/MonoProjects/ErrorExample/ErrorExample/AppDelegate.cs" "/Users/staque/Development/MonoProjects/ErrorExample/ErrorExample/MainMenu.xib.designer.cs"
Build complete -- 0 errors, 0 warnings
Copying resource files to app bundle
Copied Contents/Resources/ErrorExample.exe
Copied Contents/Resources/ErrorExample.exe.mdb
Copied Contents/Resources/MonoMac.dll
Copied Contents/Resources/MonoMac.dll.mdb
Compiling interface definitions
ibtool "/Users/staque/Development/MonoProjects/ErrorExample/ErrorExample/MainWindow.xib" --compile "/Users/staque/Development/MonoProjects/ErrorExample/ErrorExample/bin/Debug/ErrorExample.app/Contents/Resources/MainWindow.nib"
ibtool "/Users/staque/Development/MonoProjects/ErrorExample/ErrorExample/MainMenu.xib" --compile "/Users/staque/Development/MonoProjects/ErrorExample/ErrorExample/bin/Debug/ErrorExample.app/Contents/Resources/MainMenu.nib"
Creating app bundle
Contents/Info.plist
Contents/PkgInfo
Contents/Resources/MainMenu.nib
Contents/Resources/MainWindow.nib
Merging Mono into app bundle
mmp --linksdkonly -o "/tmp/monomac-build-634462508259408640" -n "ErrorExample" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Xml.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Core.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Xml.Linq.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Drawing.dll" -a "/Users/staque/.config/MonoDevelop/addins/MonoDevelop.MonoMac.2.4.2.4/MonoMac.dll" "/Users/staque/Development/MonoProjects/ErrorExample/ErrorExample/bin/Debug/ErrorExample.exe"
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
at MonoMac.Bundler.Driver.Link () [0x00000] in <filename unknown>:0
at MonoMac.Bundler.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0
Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
at MonoMac.Bundler.Driver.Link () [0x00000] in <filename unknown>:0
at MonoMac.Bundler.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0
Merging Mono failed
=====
Selecting Don't link assemblies option.
Creating app bundle
Contents/Info.plist
Contents/PkgInfo
Contents/Resources/MainMenu.nib
Contents/Resources/MainWindow.nib
Merging Mono into app bundle
mmp --nolink -o "/tmp/monomac-build-634462509784547720" -n "ErrorExample" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Xml.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Core.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Xml.Linq.dll" -a "/Library/Frameworks/Mono.framework/Versions/2.10.1/lib/mono/4.0/System.Drawing.dll" -a "/Users/staque/.config/MonoDevelop/addins/MonoDevelop.MonoMac.2.4.2.4/MonoMac.dll" "/Users/staque/Development/MonoProjects/ErrorExample/ErrorExample/bin/Debug/ErrorExample.exe"
Process exited with code 1, command:
gcc -mmacosx-version-min=10.5 -m32 /tmp/monomac-build-634462509784547720/ErrorExample.app/Contents/MacOS/driver.m -o /tmp/monomac-build-634462509784547720/ErrorExample.app/Contents/MacOS/ErrorExample -D_THREAD_SAFE -I/Library/Frameworks/Mono.framework/Versions/2.10.1/include/mono-2.0 /Library/Frameworks/Mono.framework/Versions/2.10.1/lib/libmono-2.0.a -framework AppKit -liconv
bundling complete
*It builds a bundle, but the application is not launch-able* [Icon of the App exist in the Finder with a crossed circle on top of it.
Let me know.
Stan
More information about the Mono-osx
mailing list