It doesn't compile for me on mac os 10.6.7, F# 2.0, this is what I
did:
git clone
https://github.com/aborg0/fsharpbinding
cd fsharpbinding/
./configure.sh
The configure script will then complain on not being able to find some
dlls(gtk-sharp,pango,...), even when I have a standard installation
in /Library/Frameworks/Mono.framework:
"Successfully found MonoDevelop root directory.
Successfully found F# root directory.
File 'mscorlib.dll' was not found in any of /usr/lib/mono/2.0 /Library/
Frameworks/Mono.framework/Versions/2.8/lib/mono/2.0. Please enter Mono
installation directory:"
I searched for this files manually within my Mono directory, (they
where in really weird places deep under the "gac" directory) and
entered them, so the configure script was able to finish correctly.
Then:
make
and I receive a number of errors:
"
mkdir -p bin
gmcs -debug+ -out:bin/FSharpBinding.Gui.dll -target:library -r:/
Library/Frameworks/Mono.framework/Versions/2.10.2/lib/mono/2.0/
mscorlib.dll -r:System.dll -r:System.Xml.dll -r:/Applications/
MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/
MonoDevelop.Core.dll -r:/Applications/MonoDevelop.app/Contents/MacOS/
lib/monodevelop/bin/MonoDevelop.Ide.dll -r:/Applications/
MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/Mono.TextEditor.dll
-r:/usr/lib/fsharp/FSharp.Core.dll -r:/usr/lib/fsharp/
FSharp.Compiler.dll -r:/usr/lib/fsharp/
FSharp.Compiler.Interactive.Settings.dll -r:/usr/lib/fsharp/
FSharp.Compiler.Server.Shared.dll -r:/Library/Frameworks/
Mono.framework/Versions/2.10.2/lib/mono/gac/atk-sharp/
2.12.0.0__35e10195dab3c99f/atk-sharp.dll -r:/Library/Frameworks/
Mono.framework/Versions/2.10.2/lib/mono/gac/pango-sharp/
2.12.0.0__35e10195dab3c99f/pango-sharp.dll -r:/Library/Frameworks/
Mono.framework/Versions/2.10.2/lib/mono/gac/gtk-sharp/
2.12.0.0__35e10195dab3c99f/gtk-sharp.dll -r:/Library/Frameworks/
Mono.framework/Versions/2.10.2/lib/mono/gac/gdk-sharp/
2.12.0.0__35e10195dab3c99f/gdk-sharp.dll -r:/Library/Frameworks/
Mono.framework/Versions/2.10.2/lib/mono/gac/glib-sharp/
2.12.0.0__35e10195dab3c99f/glib-sharp.dll src/Gui/
FSharpBuildOrderWidget.cs src/Gui/FSharpSettingsWidget.cs src/Gui/
FSharpCompilerOptionsWidget.cs src/Gui/gtk-gui/
FSharp.MonoDevelop.Gui.FSharpBuildOrderWidget.cs src/Gui/gtk-gui/
FSharp.MonoDevelop.Gui.FSharpSettingsWidget.cs src/Gui/gtk-gui/
FSharp.MonoDevelop.Gui.FSharpCompilerOptionsWidget.cs src/Gui/gtk-gui/
generated.cs
fsharpc --noframework --debug --optimize- --target:library -r:bin/
FSharpBinding.Gui.dll --out:bin/FSharpBinding.dll -r:/Library/
Frameworks/Mono.framework/Versions/2.10.2/lib/mono/2.0/mscorlib.dll -
r:System.dll -r:System.Xml.dll -r:/Applications/MonoDevelop.app/
Contents/MacOS/lib/monodevelop/bin/MonoDevelop.Core.dll -r:/
Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/
MonoDevelop.Ide.dll -r:/Applications/MonoDevelop.app/Contents/MacOS/
lib/monodevelop/bin/Mono.TextEditor.dll -r:/usr/lib/fsharp/
FSharp.Core.dll -r:/usr/lib/fsharp/FSharp.Compiler.dll -r:/usr/lib/
fsharp/FSharp.Compiler.Interactive.Settings.dll -r:/usr/lib/fsharp/
FSharp.Compiler.Server.Shared.dll -r:/Library/Frameworks/
Mono.framework/Versions/2.10.2/lib/mono/gac/atk-sharp/
2.12.0.0__35e10195dab3c99f/atk-sharp.dll -r:/Library/Frameworks/
Mono.framework/Versions/2.10.2/lib/mono/gac/pango-sharp/
2.12.0.0__35e10195dab3c99f/pango-sharp.dll -r:/Library/Frameworks/
Mono.framework/Versions/2.10.2/lib/mono/gac/gtk-sharp/
2.12.0.0__35e10195dab3c99f/gtk-sharp.dll -r:/Library/Frameworks/
Mono.framework/Versions/2.10.2/lib/mono/gac/gdk-sharp/
2.12.0.0__35e10195dab3c99f/gdk-sharp.dll -r:/Library/Frameworks/
Mono.framework/Versions/2.10.2/lib/mono/gac/glib-sharp/
2.12.0.0__35e10195dab3c99f/glib-sharp.dll --resource:src/Resources/
FSharpBinding.addin.xml --resource:src/Resources/
EmptyFSharpSource.xft.xml --resource:src/Resources/
EmptyFSharpScript.xft.xml --resource:src/Resources/
FSharpConsoleProject.xpt.xml --resource:src/Resources/fsharp-
icon-32.png --resource:src/Resources/fsharp-script-32.png --
resource:src/Resources/fsharp-file-icon.png --resource:src/Resources/
fsharp-project-icon.png --resource:src/Resources/fsharp-script-
icon.png --resource:src/Resources/FSharpSyntaxMode.xml src/PowerPack/
CodeDomVisitor.fs src/PowerPack/CodeDomGenerator.fs src/PowerPack/
CodeProvider.fs src/PowerPack/LazyList.fsi src/PowerPack/LazyList.fs
src/Services/Mailbox.fs src/Services/Parameters.fs src/Services/
FSharpCompiler.fs src/Services/CompilerLocationUtils.fs src/Services/
Common.fs src/Services/Parser.fs src/Services/LanguageService.fs src/
Services/CompilerService.fs src/Services/InteractiveSession.fs src/
FSharpInteractivePad.fs src/FSharpOptionsPanels.fs src/
FSharpSyntaxMode.fs src/FSharpResourceIdBuilder.fs src/
FSharpLanguageBinding.fs src/FSharpParser.fs src/
FSharpTextEditorCompletion.fs src/FSharpResolverProvider.fs
Microsoft (R) F# 2.0 Compiler build 2.0.0.0
Copyright (c) Microsoft Corporation. All Rights Reserved.
warning FS0217: The referenced or default base CLI library 'mscorlib'
is binary-incompatible with the referenced library '/Applications/
MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/
MonoDevelop.Core.dll'. Consider recompiling the library or making an
explicit reference to a version of this library that matches the CLI
version you are using.
warning FS0217: The referenced or default base CLI library 'mscorlib'
is binary-incompatible with the referenced library '/Applications/
MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/
MonoDevelop.Ide.dll'. Consider recompiling the library or making an
explicit reference to a version of this library that matches the CLI
version you are using.
warning FS0217: The referenced or default base CLI library 'mscorlib'
is binary-incompatible with the referenced library '/Applications/
MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/
Mono.TextEditor.dll'. Consider recompiling the library or making an
explicit reference to a version of this library that matches the CLI
version you are using.
/Users/yaser/fsharpbinding/src/PowerPack/CodeDomGenerator.fs(248,44):
warning FS0044: This construct is deprecated
error FS0193: The module/namespace 'System.Func`1' from compilation
unit 'mscorlib' did not contain the namespace, module or type 'Func`1'
/Users/yaser/fsharpbinding/src/Services/LanguageService.fs(415,7):
error FS1109: A reference to the type 'System.Func`1' in assembly
'mscorlib' was found, but the type could not be found in that assembly
/Users/yaser/fsharpbinding/src/FSharpSyntaxMode.fs(10,21): error
FS1108: The type 'Cairo.Context' is required here and is unavailable.
You must add a reference to assembly 'Mono.Cairo, Version=4.0.0.0,
Culture=neutral, PublicKeyToken=0738eb9f132ed756'.
make: *** [all] Error 1"
I tried this both with official mono developer package and normal mono
package.
Regards
Yaser Martinez