[Mono-list] Building a layer beetween buisiness logic and GUI

Dominik Fretz lists@roboto.ch
Tue, 27 May 2003 11:06:46 +0200


Hi Jörg

Jörg Würzer wrote:
> It seems, that #WT is exactly the thing I need. On windows it compiles well
> and all the samples compile and run. But I've got only some problems in
> compiling the gtk# port. I'm running redhat 8 / mono 0.24 / gtk# 0.9. The
> snapshot date of this port is 2003-05-20 and was downloaded from
> www.roboto.ch/swt. Does anyone know some help about this problem. It seems
> there is a wrong option somewhere in my makefile. The problem is, that I'm
> not a command line guru at the moment ;-)

First: the GTK part of #WT didn't need GTK#.
We ported the JAVA sources over to c#, and since JAVA calls the native 
GTK functions, we do so too.

the problem is that there is something wrong with the pkg-config file 
for the gthread package on Redhat and Mandrake.

I answerd this problem one time before in a e-mail so the following 
explanaition is only copy & paste but shoud be suitable for you:

.................

the problem is that the pkg-config file for the gthread packgage has a error

you find the file in:
/usr/lib/pkgconfig/gthread-2.0.pc

at the bottom, you find these two lines:
---
Libs: -L${libdir} -lgthread-2.0 -pthread
Cflags: -pthread
---

you have to change them to:
---
Libs: -L${libdir} -lgthread-2.0 -lpthread
Cflags: -Lpthread
---

(diffrences are the 'l' in the first line and the 'L' in the second)

after saving the file you should be able to build it.
............


Hope this help

Dominik