[gtkmm] Compilation problems on win32



Hi

I'm trying to compile gtkmm2 on Windows. I use Cygwin
with Mingw, and have mingw in the path before Cygwin's
tools.

Libsigc compiled and installed nicely. Gtkmm is giving
me trouble. Configure passes, but make breaks with
this:

extracting exported symbol list from
`libsigc-1.2-5.dll'
test -f .libs/impgen.c || \
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^#
\/\* impgen.c ends 
here \
*\// { s/^# //;s/^# *$//; p; }" -e d < ../../libtool >
.libs/impgen.c
      test -f .libs/impgen.exe || (cd .libs && \
      if test "x" != "x" ; then  -o impgen impgen.c ;
\
      else gcc -o impgen impgen.c ; fi)
      .libs/impgen /usr/local/lib/libsigc-1.2-5.dll > 
.libs/libsigc-1.2-5.dll-def

make[3]: *** [libgtkmm_generate_extra_defs-2.0.la]
Error 1

I suspect this is caused by by the fact that impgen is
compiled with mingw, so it does not understand the
file path Cygwin gives it.

To get around this I made the def file manually. It's
contents start with this:

EXPORTS
        _$_Q24SigC10ObjectBase @ 1 ;
        _$_Q24SigC10SignalBase @ 2 ;
        _$_Q24SigC10SignalNode @ 3 ;
        _$_Q24SigC12FuncSlotNode @ 4 ;
        _$_Q24SigC13ClassSlotNode @ 5 ;
        _$_Q24SigC14ConnectionNode @ 6 ;

However later on I get this error:

dlltool: Syntax error in def file
.libs/libsigc-1.2-5.dll-def:0

Soon after this make bombs out with messages like
this:

threadpool.lo: In function
`{anonymous}::call_thread_entry_slot(void *, void *)'
:
//d/cygwin/usr/local/include/sigc++-1.2/sigc++/node.h:83:
undefined reference to `SigC::Node::clear(void) const'

How can I fix this?

Another thing is that I had to move some mingw's
binaries, such as ld.exe and dlltool.exe, away from
the search path. Only cygwin's tools worked. I had
this same problem compiling gtkmm 1.2. Is this a bug,
feature or something else?


__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]