[Gtk-sharp-list] Compililng on OS X 10.4 Tiger

Niklas Saers niklassaers at gmail.com
Thu Sep 8 13:12:30 EDT 2005


Dear all,
I'm trying to install GTK# on OS X 10.4 Tiger. I've installed the Mono 
1.8.1.1 <http://1.8.1.1> package and set 

MONOPREFIX=/Library/Frameworks/Mono.framework/Versions/Current
CSC=/usr/bin/mcs

I have the same problem with gtk-sharp-1.0.10, gtk-sharp-2.3.90 and 
gtk-sharp-2.5.90

The problem is with pango. I configure gtk-sharp with

./configure --prefix=$MONOPREFIX && make

and it fails in pango and I have to set RUNTIME=$MONOPREFIX/bin/mono in 
pango/Makefile

I don't know why I have to set RUNTIME myself as I've specified prefix, but 
no worries I thought. Well, I had to think again. Would you please give me 
your tips to what I should do to compile GTK#? Here's 1.0.10, 2.3.90 and 
2.5.90 in that order:

Making all in pango
Making all in .
/usr/bin/mcs /unsafe /out:pango-sharp.dll /target:library /r:../glib/glib-
sharp.dll ./Scale.cs AssemblyInfo.cs generated\\*.cs
AttrIterator.custom(47) error CS0102: The type 'Pango.AttrIterator' already 
contains a definition for 'Attrs'
generated/AttrIterator.cs(68): 'Pango.AttrIterator.Attrs' (name of symbol 
related to previous error
Layout.custom(27) error CS0102: The type 'Pango.Layout' already contains a 
definition for 'Lines'
generated/Layout.cs(368): 'Pango.Layout.Lines' (name of symbol related to 
previous error
LayoutLine.custom(42) error CS0102: The type 'Pango.LayoutLine' already 
contains a definition for 'StartIndex'
generated/LayoutLine.cs(23): 'Pango.LayoutLine.StartIndex' (name of symbol 
related to previous error
LayoutLine.custom(51) error CS0102: The type 'Pango.LayoutLine' already 
contains a definition for 'Length'
generated/LayoutLine.cs(24): 'Pango.LayoutLine.Length' (name of symbol 
related to previous error
Compilation failed: 4 error(s), 0 warnings
make[3]: *** [pango-sharp.dll] Error 1


----- 2.3.90 ----

Making all in pango
Making all in .
/usr/bin/mcs -nowarn:0169,0612,0618 -unsafe
-out:pango-sharp.dll-target:library /r:../glib/glib-
sharp.dll ./Attribute.cs ./AttrBackground.cs ./AttrFallback.cs 
./AttrFamily.cs ./AttrFontDesc.cs ./AttrForeground.cs ./AttrLanguage.cs 
./AttrLetterSpacing.cs ./AttrRise.cs ./AttrScale.cs ./AttrShape.cs 
./AttrSize.cs ./AttrStretch.cs ./AttrStrikethroughColor.cs 
./AttrStrikethrough.cs ./AttrStyle.cs ./AttrUnderlineColor.cs 
./AttrUnderline.cs ./AttrVariant.cs ./AttrWeight.cs ./Scale.cs 
./ScriptIter.cs ./Units.cs ../AssemblyInfo.cs generated\\*.cs
generated/AttrFontDesc.cs(11) error CS0102: The type '' already contains a 
definition for 'Pango.AttrFontDesc'
./AttrFontDesc.cs(24): 'Pango.AttrFontDesc' (name of symbol related to 
previous error
generated/AttrFontDesc.cs(11) error CS0101: There is already a definition 
for 'Pango.AttrFontDesc'
./AttrFontDesc.cs(24): 'Pango.AttrFontDesc' (name of symbol related to 
previous error
AttrIterator.custom(48) error CS0102: The type 'Pango.AttrIterator' already 
contains a definition for 'Attrs'
generated/AttrIterator.cs(57): 'Pango.AttrIterator.Attrs' (name of symbol 
related to previous error
generated/AttrLanguage.cs(11) error CS0102: The type '' already contains a 
definition for 'Pango.AttrLanguage'
./AttrLanguage.cs(24): 'Pango.AttrLanguage' (name of symbol related to 
previous error
generated/AttrLanguage.cs(11) error CS0101: There is already a definition 
for 'Pango.AttrLanguage'
./AttrLanguage.cs(24): 'Pango.AttrLanguage' (name of symbol related to 
previous error
generated/AttrShape.cs(11) error CS0102: The type '' already contains a 
definition for 'Pango.AttrShape'
./AttrShape.cs(24): 'Pango.AttrShape' (name of symbol related to previous 
error
generated/AttrShape.cs(11) error CS0101: There is already a definition for '
Pango.AttrShape'
./AttrShape.cs(24): 'Pango.AttrShape' (name of symbol related to previous 
error
generated/Attribute.cs(11) error CS0102: The type '' already contains a 
definition for 'Pango.Attribute'
./Attribute.cs(24): 'Pango.Attribute' (name of symbol related to previous 
error
generated/Attribute.cs(11) error CS0101: There is already a definition for '
Pango.Attribute'
./Attribute.cs(24): 'Pango.Attribute' (name of symbol related to previous 
error
Layout.custom(27) error CS0102: The type 'Pango.Layout' already contains a 
definition for 'Lines'
generated/Layout.cs(370): 'Pango.Layout.Lines' (name of symbol related to 
previous error
generated/ScriptIter.cs(11) error CS0102: The type '' already contains a 
definition for 'Pango.ScriptIter'
./ScriptIter.cs(24): 'Pango.ScriptIter' (name of symbol related to previous 
error
generated/ScriptIter.cs(11) error CS0101: There is already a definition for 
'Pango.ScriptIter'
./ScriptIter.cs(24): 'Pango.ScriptIter' (name of symbol related to previous 
error
Compilation failed: 12 error(s), 0 warnings
make[3]: *** [pango-sharp.dll] Error 1

---- 2.5.90 ----

Making all in pango
Making all in .
/usr/bin/mcs -define:GTK_SHARP_2_6 -nowarn:0169,0612,0618 -unsafe -out:
pango-sharp.dll -target:library /r:../glib/glib-sharp.dll ./Attribute.cs 
./AttrBackground.cs ./AttrFallback.cs ./AttrFamily.cs ./AttrFontDesc.cs 
./AttrForeground.cs ./AttrLanguage.cs ./AttrLetterSpacing.cs ./AttrRise.cs 
./AttrScale.cs ./AttrShape.cs ./AttrSize.cs ./AttrStretch.cs 
./AttrStrikethroughColor.cs ./AttrStrikethrough.cs ./AttrStyle.cs 
./AttrUnderlineColor.cs ./AttrUnderline.cs ./AttrVariant.cs ./AttrWeight.cs 
./Scale.cs ./ScriptIter.cs ./Units.cs ../AssemblyInfo.cs generated\\*.cs
generated/AttrFontDesc.cs(11) error CS0102: The type '' already contains a 
definition for 'Pango.AttrFontDesc'
./AttrFontDesc.cs(24): 'Pango.AttrFontDesc' (name of symbol related to 
previous error
generated/AttrFontDesc.cs(11) error CS0101: There is already a definition 
for 'Pango.AttrFontDesc'
./AttrFontDesc.cs(24): 'Pango.AttrFontDesc' (name of symbol related to 
previous error
AttrIterator.custom(48) error CS0102: The type 'Pango.AttrIterator' already 
contains a definition for 'Attrs'
generated/AttrIterator.cs(57): 'Pango.AttrIterator.Attrs' (name of symbol 
related to previous error
generated/AttrLanguage.cs(11) error CS0102: The type '' already contains a 
definition for 'Pango.AttrLanguage'
./AttrLanguage.cs(24): 'Pango.AttrLanguage' (name of symbol related to 
previous error
generated/AttrLanguage.cs(11) error CS0101: There is already a definition 
for 'Pango.AttrLanguage'
./AttrLanguage.cs(24): 'Pango.AttrLanguage' (name of symbol related to 
previous error
generated/AttrShape.cs(11) error CS0102: The type '' already contains a 
definition for 'Pango.AttrShape'
./AttrShape.cs(24): 'Pango.AttrShape' (name of symbol related to previous 
error
generated/AttrShape.cs(11) error CS0101: There is already a definition for '
Pango.AttrShape'
./AttrShape.cs(24): 'Pango.AttrShape' (name of symbol related to previous 
error
generated/AttrSize.cs(11) error CS0102: The type '' already contains a 
definition for 'Pango.AttrSize'
./AttrSize.cs(24): 'Pango.AttrSize' (name of symbol related to previous 
error
generated/AttrSize.cs(11) error CS0101: There is already a definition for '
Pango.AttrSize'
./AttrSize.cs(24): 'Pango.AttrSize' (name of symbol related to previous 
error
generated/Attribute.cs(11) error CS0102: The type '' already contains a 
definition for 'Pango.Attribute'
./Attribute.cs(24): 'Pango.Attribute' (name of symbol related to previous 
error
generated/Attribute.cs(11) error CS0101: There is already a definition for '
Pango.Attribute'
./Attribute.cs(24): 'Pango.Attribute' (name of symbol related to previous 
error
Layout.custom(27) error CS0102: The type 'Pango.Layout' already contains a 
definition for 'Lines'
generated/Layout.cs(378): 'Pango.Layout.Lines' (name of symbol related to 
previous error
generated/ScriptIter.cs(11) error CS0102: The type '' already contains a 
definition for 'Pango.ScriptIter'
./ScriptIter.cs(24): 'Pango.ScriptIter' (name of symbol related to previous 
error
generated/ScriptIter.cs(11) error CS0101: There is already a definition for 
'Pango.ScriptIter'
./ScriptIter.cs(24): 'Pango.ScriptIter' (name of symbol related to previous 
error
Compilation failed: 14 error(s), 0 warnings
make[3]: *** [pango-sharp.dll] Error 1

Cheers

Nik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20050908/7aa0b20b/attachment.html


More information about the Gtk-sharp-list mailing list