Mono and Gtk# programms.

F

fliversen

Hello,

does anyone have successfull experience with mono on Windows.

I have download
mono-1.0.1-gtksharp-1.0-win32-0.5.exe

But to compile und run programs whitch use Gtk# is not possible:
The result is
error CS0006: Cannot find assembly `gtk-sharp.dll'
error CS0006: Cannot find assembly `glib-sharp.dll'

Does anyone know which environment variables are necessary ?!

Thanks a lot.

Frank Iversen
 
D

DM McGowan II

fliversen said:
Hello,

does anyone have successfull experience with mono on Windows.

I have download
mono-1.0.1-gtksharp-1.0-win32-0.5.exe

But to compile und run programs whitch use Gtk# is not possible:
The result is
error CS0006: Cannot find assembly `gtk-sharp.dll'
error CS0006: Cannot find assembly `glib-sharp.dll'

Does anyone know which environment variables are necessary ?!

Thanks a lot.

Frank Iversen

Most of the tools in the bin folder were not updated with the correct path
prior to shipping between 1.0 and 1.0.1.

On UNIX/Linux you could use the magic of symbolic links to fix this in a
jiffy. On Windows, I just made a directory to match the one the tools are
looking for. I tried uninstalling and installing to that directory but this
resulted in files in the wrong places. Just do this at the command prompt
and it will work:

C:\> mkdir C:\mono\Mono-1.0
C:\> cd mono\Mono-1.0
C:\mono\Mono-1.0> xcopy "C:\Program Files\Mono-1.0.1\"*.* /s

Also set MONO_PATH and MONO_CFG_DIR environment variables.

Oh, you could also edit all the tools manually or if you use Cygwin and know
how to use sed and a few other such tools then you could do a batch edit. MS
Word probably even has a handy way to do this.

Dilton
 
C

Cor Ligthert

Fliversen,

Do not tell which language you use and ask your question as well in the
newsgroup

Microsoft.public.dotnet.languages.vb

You have a big change that you will get a very good answer there.

Cor
 
C

Cor Ligthert

Before my message is wrong understood, with my message I did not say that
the message from Dilton was not good, however when you want more answers.

Cor
 
F

fliversen

Hello,
Most of the tools in the bin folder were not updated with the correct path
prior to shipping between 1.0 and 1.0.1.

On UNIX/Linux you could use the magic of symbolic links to fix this in a
jiffy. On Windows, I just made a directory to match the one the tools are
looking for. I tried uninstalling and installing to that directory but this
resulted in files in the wrong places. Just do this at the command prompt
and it will work:

C:\> mkdir C:\mono\Mono-1.0
C:\> cd mono\Mono-1.0
C:\mono\Mono-1.0> xcopy "C:\Program Files\Mono-1.0.1\"*.* /s

Also set MONO_PATH and MONO_CFG_DIR environment variables.

Oh, you could also edit all the tools manually or if you use Cygwin and know
how to use sed and a few other such tools then you could do a batch edit. MS
Word probably even has a handy way to do this.

Thanks,
I have also move the mono directory to c:\Mono...
and I have now informations from the people of mono:

// with
// PKG_CONFIG_PATH=\Mono1.0.1\lib\pkgconfig
// >mcs hellogtk.cs -pkg:gtk-sharp

With these settings it is ok.

So long
Frank Iversen



I have not try
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top