[Gtk-sharp-list] Trying to compile gtk-sharp in OpenSUSE 13.1

Valentín valentin at sanva.net
Fri May 23 09:45:56 UTC 2014


Hi all (:

I have tried to compile f-spot/gtk3 using Linux Mint but I've got a lot of
errors trying to compile current development version of Mono, so I decided
to install OpenSUSE 13.1 since it seems [1] that it is the better option to
develop using Mono. But I continue having errors :(

OpenSUSE 13.1 has Mono 3.2.3 installed:

Mono JIT compiler version 3.2.3 (tarball Sat Sep 14 19:35:34 EDT 2013)
Copyright (C) 2002-2012 Novell, Inc, Xamarin Inc and Contributors.
www.mono-project.com
    TLS:           __thread
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  amd64
    Disabled:      none
    Misc:          softdebug
    LLVM:          supported, not enabled.
    GC:            sgen

So I just tried to compile f-spot/gtk3 and autogen.sh complains about not
having gtk-sharp-3 installed so I tried to install gtk-sharp from
sources... running autogen.sh from gtk-sharp shows me a warning telling me
that I should use `./configure --prefix=/usr/lib64/pkgconfig/../..`, and
running it that way there is no warnings nor errors. But when I run `make`
it finish with this:

make[4]: se ingresa al directorio
`/home/valentin/Desktop/gtk-sharp/gtk/gui-thread-check/profiler'
/bin/sh ../../../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I.
-I../../..  -D_REENTRANT -I/usr/lib64/pkgconfig/../../include/mono-2.0
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -Wall   -g -O2 -g
-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations
-Wstrict-prototypes  -Wmissing-prototypes -Wnested-externs  -Wshadow
-Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings -MT
gui-thread-check.lo -MD -MP -MF .deps/gui-thread-check.Tpo -c -o
gui-thread-check.lo gui-thread-check.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../.. -D_REENTRANT
-I/usr/lib64/pkgconfig/../../include/mono-2.0 -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -Wall -g -O2 -g -Wall -Wunused
-Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs -Wshadow -Wpointer-arith
-Wno-cast-qual -Wcast-align -Wwrite-strings -MT gui-thread-check.lo -MD -MP
-MF .deps/gui-thread-check.Tpo -c gui-thread-check.c  -fPIC -DPIC -o
.libs/gui-thread-check.o
gui-thread-check.c:90:1: warning: no previous prototype for
'mono_profiler_startup' [-Wmissing-prototypes]
 mono_profiler_startup (const char *desc)
 ^
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../.. -D_REENTRANT
-I/usr/lib64/pkgconfig/../../include/mono-2.0 -I/usr/include/glib-2.0
-I/usr/lib64/glib-2.0/include -Wall -g -O2 -g -Wall -Wunused
-Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs -Wshadow -Wpointer-arith
-Wno-cast-qual -Wcast-align -Wwrite-strings -MT gui-thread-check.lo -MD -MP
-MF .deps/gui-thread-check.Tpo -c gui-thread-check.c -o gui-thread-check.o
>/dev/null 2>&1
mv -f .deps/gui-thread-check.Tpo .deps/gui-thread-check.Plo
/bin/sh ../../../libtool  --tag=CC   --mode=link gcc  -g -O2 -g -Wall
-Wunused -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes
-Wmissing-prototypes -Wnested-externs  -Wshadow -Wpointer-arith
-Wno-cast-qual -Wcast-align -Wwrite-strings   -o
libmono-profiler-gui-thread-check.la -rpath
/usr/lib64/pkgconfig/../../lib64 gui-thread-check.lo
-L/usr/lib64/pkgconfig/../../lib64 -lmono-2.0 -lm -lrt -ldl -lpthread
-lglib-2.0
libtool: link: gcc -shared  -fPIC -DPIC  .libs/gui-thread-check.o
-L/usr/lib64/pkgconfig/../../lib64 -lmono-2.0 -lm -lrt -ldl -lpthread
-lglib-2.0  -O2   -Wl,-soname -Wl,libmono-profiler-gui-thread-check.so.0 -o
.libs/libmono-profiler-gui-thread-check.so.0.0.0
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld:
cannot find -lmono-2.0
collect2: error: ld returned 1 exit status
make[4]: *** [libmono-profiler-gui-thread-check.la] Error 1
make[4]: se sale del directorio
`/home/valentin/Desktop/gtk-sharp/gtk/gui-thread-check/profiler'
make[3]: *** [all-recursive] Error 1
make[3]: se sale del directorio
`/home/valentin/Desktop/gtk-sharp/gtk/gui-thread-check'
make[2]: *** [all-recursive] Error 1
make[2]: se sale del directorio `/home/valentin/Desktop/gtk-sharp/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: se sale del directorio `/home/valentin/Desktop/gtk-sharp'
make: *** [all] Error 2

What should I do?

Thanks in advance for your time.

[1] http://www.go-mono.com/mono-downloads/download.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20140523/1b0cac28/attachment.html>


More information about the Gtk-sharp-list mailing list