Showing posts with label Mono. Show all posts
Showing posts with label Mono. Show all posts

Saturday, August 17, 2013

Run Tomboy with Mono 3.2 on Mac

Compiling it from scratch based on http://xmemory.tompium.com/2012/06/running-tomboy-note-taking-app-on-mac.html doesn't work anymore. Here are the additional instructions:-
  • After getting the latest version of Tomboy (1.15.3),  replace "flush(true)" with "flush()" in Note.cs to fix a compile error. Not sure why the compiler complained about this line. Anyway, using just "flush()" fixes the problem but it may not write everything to disk straight away.
  • After building Tomboy, running it caused an exception:- 
Missing method System.Reflection.Assembly::op_Equality(Assembly,Assembly)
To fix it, modify a script file called Tomboy in Tomboy.app -> Contents/MacOS/Tomboy by changing the last line to
exec -a "Tomboy" "$MONO" --runtime=v4.0 --debug $ASSEMBLY $@
Refs
https://bugs.launchpad.net/ubuntu/+source/mono/+bug/882501

http://xmemory.tompium.com/2012/06/running-tomboy-note-taking-app-on-mac.html

Sunday, August 11, 2013

System.Object is not defined or imported when building PCL project in Xamarin Studio 4.0.12

There're also a bunch of similar errors:-

: error CS0518: The predefined type `System.Object' is not defined or imported
: error CS0518: The predefined type `System.ValueType' is not defined or imported
: error CS0518: The predefined type `System.Attribute' is not defined or imported
: error CS0518: The predefined type `System.Int32' is not defined or imported
: error CS0518: The predefined type `System.UInt32' is not defined or imported
. . .


To fix this, go to References -> Edit References -> .Net Assembly then add mscorlib.dll from /Library/Frameworks/Mono.framework/Libraries/mono/4.5

Refs
https://bugzilla.xamarin.com/show_bug.cgi?id=12845

Friday, June 15, 2012

Running Tomboy Note-Taking App on Mac


When running Tomboy 1.10.2 on Mac OS X Lion with Mono 2.10.9 installed, I got this error:-
Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for IgeMacIntegration.IgeMacDock ---> System.EntryPointNotFoundException: ige_mac_dock_get_type
I found that the ige-mac-integration-sharp.dll library used by Tomboy is not compatible with libigemacintegration.dylib in Mono 2.10.9 (some external functions don't exist any more). I'm new to Mono and this library and I just wanted to get Tomboy to run on Mac and also wanted to keep the latest version of Mono so I did a dirty fix by doing the following:-

  • Build Tomboy.
git clone git://git.gnome.org/tomboy
xbuild Tomboy-mac.sln
./bundle-mac-app.sh
  • Copy libigemacintegration.0.0.0.dylib from Mono 2.6.x to Tomboy.app/Contents/MacOS and rename it to libigemacintegration.dylib

  • Transfer all notes from my Ubuntu machine to Mac.
cp /Volumes/tom-ubuntu/.local/share/tomboy/*.note /Users/tomtanti/Library/Application Support/Tomboy/
  • Run Tomboy for testing.
open Tomboy.app
  • Move Tomboy.app to Applications so that I can simply run it from there in the future.
Refs