How do I build the Mono MDK on mac OS X? - macos

I'm using Xamarin studio to write some C# code on OS X, but I upgraded my computer to OS X 10.11 (El Capitan) developer preview 3, which breaks mono
As per some of the instructions in those threads, I've compiled mono from source, and it appears to work (I can run mono on the command line, etc), however Xamarin studio does not launch because I don't have Mono.framework in my /Library/Frameworks path. I foolishly uninstalled and tried (and failed) when I first discovered Xamarin not working.
I've looked all over, and I've found plenty of instructions for how to compile Mono itself (done) but nothing which tells me how to build and install Mono.framework
I've also tried installing the Mono MDK from the package, then overwriting it's binaries with my custom built ones, but when I do this Xamarin studio fails to launch telling me I don't have the Mono MDK installed.
Can anyone help me out? Thanks

Unfortunately it doesn't appear there is a repo available to build/compile the framework from source. The current Mono MDK package located here only contains the Mono.framework along with the supporting install/uninstall scripts, etc.; current version:
MonoFramework-MDK-4.0.2.5.macos10.xamarin.x86.pkg
The Mono.framework should install to /Library/Frameworks.
If that is indeed the one you've downloaded and installed I would then verify that it has copied the Mono.framework bundle (571.6 MB) into the frameworks directory, open up Console.app then launch Xamarin. If Xamarin doesn't launch again then I would recommend posting the error message here and proceed from there.
Another option is extract the Mono.framework out of the .pkg and manually install it.

You might already have found a solution, but in case somebody else finds this thread; Mono has made a preview version that supports El Capitan:
http://www.mono-project.com/download/

Related

Attempt to install Qt on OS X gives 'You need to install Xcode 5.0.0', but this version is so old it's not available

I am a Windows/Linux developer who occasionally builds for OS X - particularly in Qt.
I have a simple Qt project that I have been developing on Windows. I now wish to build it on OS X.
I am running Yosemite. I have installed Xcode 7 and am attempting to install Qt 5.5.
When I run the Qt installer, immediately after the prompt to log in to Qt (which is successful), I receive the following error:
You need to install Xcode version 5.0.0.
I have attempted to locate Xcode 5.0.0 on the Apple Developer site, but this is 2 major versions behind the most recent version, and I cannot even find an installer for it.
More to the point, I do wonder why the most recent version of Qt requires a version of Xcode that is considered so old by Apple that it's not even available.
How do I overcome this problem so that I can get Qt installed on OS X?
I ran into the same problem and solved it by following the instructions here. This link describes a similar, but slightly different installer issue.
To summarize, you need to ensure that the Xcode command line tools are installed and set up correctly. I already had them installed, but had to go into Preferences -> Locations in Xcode and set the dropdown to the currently installed version.
The link shows an earlier version of Xcode where the path is actually Preferences -> Downloads -> Components.
Once I'd made this change, the installer continued successfully.
The solution that worked for me (on OSX Sierra XCode 8.2.1) is to open XCode Preferences -> Locations.
There is a drop-down menu named Command Line Tools. Select the available XCode version here. Then restart the Qt Creator installation.
taken from the link above, this resolved my issue:
sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer
For me closing the prompt and smashing keys (alt F4, I know that its not windows) before the next prompt opened worked... qt is running fine now, as it doesn't need the old version.
you can find the old version of XCode on the the Apple offical site here and download .dmg of xcode 5 or 6.1 for example :
I do this and it's ok for me.

Installing Ruboto on Mac using Homebrew-ed Sdk

I am trying to install the ruboto gem on my MBP retina. I have previously installed the SDK and NDK on my computer using Homebrew as the install service and have them pathed as such. However, here is my problem.
When trying to use 'ruboto setup', the system keeps informing me that is cannot find
"Platform SDK android-19". I have added the path to the platform/android-19 folder in the .bash_profile, however it refuses to see it as such. Any hints as to how I might correct this or work around this?
"ruboto setup" expects the platform sdks to be installed in a directory parallel to the "android" command:
<android-sdk>/tools/android
<android-sdk>/platforms/android-19
You need to ensure that your Android SDK installation follows this structure or file an issue in the Ruboto tracker ( https://github.com/ruboto/ruboto/issues ) and ask for "ruboto setup" to support Android SDK installation using HomeBrew.
An alternative is to uninstall your Android SDK and let "ruboto setup" install it from scratch.

Corlib not in sync when building Unity games with mdtool in OSX

Unity3D, a popular game engine, packages a version of mono (and monodevelop) with its install. Recently I installed Xamarin Studio, keen to play with it. Later I followed some online guides for building unity's SLN files via the command line from the sln's directory:
/Applications/Unity/MonoDevelop.app/Contents/MacOS/mdtool build -t:Build
I got this error:
Rewriting config files...
Corlib not in sync with this runtime: expected corlib version 636, found 96.
Loaded from: /Applications/Unity/MonoDevelop.app/Contents/Frameworks/Mono.framework/Versions/2.10.2/lib/mono/2.0/mscorlib.dll
Download a newer corlib or a newer runtime at http://www.go-mono.com/daily.
I figured that Xamarin Studio had brought a new mono runtime with it, and that was version 636. The mdtool I was running expected verison 96, because Unity ships with an older version of mono (.net 3.5 I think?).
So I uninstalled Xamarin Studio, and re-installed Unity to hopefully overwrite the mono runtime with the old version. Still get the error.
I notice above that the mscorlib.dll is not pulled from Frameworks/Mono.framework/Versions/Current, but 2.10.2. Why is that? How can I make this build work? Any more information I can give you?

Where to get macos SDK 10.6 for Xcode?

I am having Xcode 4.4 on OS X Lion. I'd like to install the Mac 10.6 SDK - also known as macosx10.7 SDK - because I need to compile openFrameworks.
I found that I need to download additional tools from this site. However I didn't find any 10.6 SDK there. I also tried looking in Xcode Preferences -> Downloads -> Components, but there is no way.
I am wondering how can I install previous SDKs for Xcode?
Unfortunately, Apple tends to make this much harder than you'd like. You can't download SDKs by themselves. They come as part of specific versions of Xcode. So you have to download the right version of Xcode. Search for "10.6", and you'll see that you want Xcode 4.1.
Once you download that, you can install it (that version will go into /Developer, so it won't break your /Applications version), or you can open up the package and find the SDKs in it. If you don't know how to crack open these packages, just install it.
Once you do that, search for "MacOSX10.6.sdk". I forget exactly where it is in that particular version.
What I do at that point is copy the sdk into a /SDKs directory. That way I always have them all.
Now, you need to add it to your current version of Xcode. You can do that by making symlinks in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs. If you like, you can use my tiny link-sdks script for that.
UPDATE: In modern versions of Xcode (7.3+) to use older SDKs edit MinimumSDKVersion here:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Info.plist
All legacy MacOS SDKs can be found on GitHub -
https://github.com/phracker/MacOSX-SDKs
If you search the openFrameworks forums, there are a few posts where people are providing download links from their public Dropbox folders, for example.
Somewhat off topic, but I hit a very similar problem trying to install Erlang using kerl.
Everything worked for me until the "kerl build ..." step. The build log showed the following error:
odbcserver.c:117:10: fatal error: 'sql.h' file not found #include "sql.h"
The problem is that the ODBC is no longer part of the Mavericks installation(i.e., MacOS 10.6 SDK isn't installed). Piecing together advice from a variety of sites, none of which worked by themselves, the following set of steps fixed the issue:
brew install unixodbc - installs the missing ODBC libraries and include files (e.g., sql.h).
Set CFLAGS to point to the include directory for the unixodbc installation as part of the kerl build command (e.g.,):
CFLAGS="-I/usr/local/Cellar/unixodbc/2.3.2/include" ./kerl build R15B R15B
This points the build to the ODBC include files.
My environment is Mavericks, the xcode command line tools, and xcode v5.1.1.
Some SDK(with Xcode) you can download from direct links. List here:
http://iphonesdkdev.blogspot.ru/2010/04/old-versions-of-iphone-sdk.html
Some don't work, but something you can still download. For example:
http://adcdownload.apple.com/Developer_Tools/xcode_3.2.6_and_ios_sdk_4.3__final/xcode_3.2.6_and_ios_sdk_4.3.dmg

How do I install MonoDevelop on my Mac?

I just downloaded MonoDevelop for my Mac, but I cannot figure out how to install it.
Does anyone know exactly what to type in the terminal to get it to install?
The recently updated Mono 1.2.6 package for MacOS X contains Imendio's Native Gtk+ for OSX, Gtk# and MonoDevelop 0.18.1 with Mac support. It is now available from Mono's downloads page.
It appears that you have to run all three of these installs to get it to work:
Mono 2.2_5 Framework - Universal
MonoDevelop 2.0 Alpha 2
Cocoa# 0.9.4 source
this link might be helpful for new comers.
Mono:OsX
follow the link below if you are interested in Building Monodevelop in os X:
Building mono develop
Xamarin Studio may be installed using Homebrew.
For Mac and Windows, you can download Xamarin Studio which is a bundle of MonoDevelop along with Xamarin iOS/Android plugins and branding.
– Download | MonoDevelop.
There is a Homebrew Cask for Xamarin Studio.
The installation can be done as follows:
$ brew install Caskroom/cask/xamarin-studio
This question might be useful: How to use Homebrew's version of Mono with Xamarin - Stack Overflow.

Resources