Skip to content

Instantly share code, notes, and snippets.

@hbons
Created June 24, 2015 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hbons/899b7d9d8997fee59360 to your computer and use it in GitHub Desktop.
Save hbons/899b7d9d8997fee59360 to your computer and use it in GitHub Desktop.
Making all in profiler
make[4]: Entering directory '/home/hbons/Projects/gtk-sharp/gtk/gui-thread-check/profiler'
/bin/sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -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../../.. -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:28:36: fatal error: mono/metadata/profiler.h: No such file or directory
compilation terminated.
Makefile:457: recipe for target 'gui-thread-check.lo' failed
make[4]: *** [gui-thread-check.lo] Error 1
make[4]: Leaving directory '/home/hbons/Projects/gtk-sharp/gtk/gui-thread-check/profiler'
Makefile:385: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/home/hbons/Projects/gtk-sharp/gtk/gui-thread-check'
Makefile:601: recipe for target 'all-recursive' failed
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory '/home/hbons/Projects/gtk-sharp/gtk'
Makefile:445: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/hbons/Projects/gtk-sharp'
Makefile:373: recipe for target 'all' failed
make: *** [all] Error 2
@hbons
Copy link
Author

hbons commented Jun 24, 2015

prefix=${pcfiledir}/../..
exec_prefix=${pcfiledir}/../..
libdir=${prefix}/lib64
includedir=${prefix}/include/mono-2.0
sysconfdir=/etc

Name: Mono
Description: Mono Runtime
Version: 4.0.1

@knocte
Copy link

knocte commented Jun 24, 2015

My mono-2.pc file contains:

prefix=${pcfiledir}/../..
exec_prefix=${pcfiledir}/../..
libdir=${prefix}/lib
includedir=${prefix}/include/mono-2.0
sysconfdir=/etc

Name: Mono
Description: Mono Runtime
Version: 3.2.8
Libs: -L${libdir}  -lmono-2.0  -lm -lrt  -ldl -lpthread
Cflags: -I${includedir} -D_REENTRANT

And I think "Libs:" is fundamental here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment