joaquimrocha / Skeltrack

A Free Software skeleton tracking library
GNU Lesser General Public License v3.0
294 stars 63 forks source link

Does not compile on OSX by default #5

Open pgte opened 11 years ago

pgte commented 11 years ago

There is no configure script. I'm a noob regarding compiling stuff, so excuse me if there is any blatant error.

I tried the following:

$ autoconf

And there was this error;

configure.ac:48: error: possibly undefined macro: AM_INIT_AUTOMAKE
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:66: error: possibly undefined macro: AC_PROG_LIBTOOL
configure.ac:69: error: possibly undefined macro: AM_PROG_CC_C_O
configure.ac:98: error: possibly undefined macro: AM_CONDITIONAL

There was a configure file generated anyway which I tried to run:

$ ./configure

And I got the error:

configure: error: cannot find install-sh, install.sh, or shtool in "." "./.." "./../.."

Then I got an install-sh and tried running configure again and got:

./configure: line 1757: AM_INIT_AUTOMAKE: command not found
./configure: line 1775: AC_PROG_LIBTOOL: command not found
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
./configure: line 2687: AM_PROG_CC_C_O: command not found
./configure: line 2690: PKG_PROG_PKG_CONFIG: command not found
./configure: line 2695: syntax error near unexpected token `GLIB,'
./configure: line 2695: `PKG_CHECK_MODULES(GLIB, gio-2.0 >= $GLIB_REQUIRED'

HELP! :)

iaguis commented 11 years ago

You should do first:

$ ./autogen.sh

autogen also does the configure step so you just need to

$ make

and you will have Skeltrack compiled :)

pgte commented 11 years ago

Thanks! Still fails, this time with:

Pedros-MacBook-Pro:Skeltrack pedroteixeira$ ./autogen.sh 
*** No gtk-doc support ***
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal  -I m4
autoreconf: configure.ac: tracing
autoreconf: running: glibtoolize --copy
glibtoolize: putting auxiliary files in `.'.
glibtoolize: copying file `./ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
glibtoolize: copying file `m4/libtool.m4'
glibtoolize: copying file `m4/ltoptions.m4'
glibtoolize: copying file `m4/ltsugar.m4'
glibtoolize: copying file `m4/ltversion.m4'
glibtoolize: copying file `m4/lt~obsolete.m4'
autoreconf: running: /usr/local/Cellar/autoconf/2.69/bin/autoconf
autoreconf: running: /usr/local/Cellar/autoconf/2.69/bin/autoheader
autoreconf: running: automake --add-missing --copy --no-force
configure.ac:69: installing './compile'
configure.ac:66: installing './config.guess'
configure.ac:66: installing './config.sub'
configure.ac:48: installing './missing'
examples/Makefile.am: installing './depcomp'
skeltrack/Makefile.am:63: error: HAVE_INTROSPECTION does not appear in AM_CONDITIONAL
skeltrack/Makefile.am:77: warning: addprefix $(srcdir: non-POSIX variable name
skeltrack/Makefile.am:77: (probably a GNU make extension)
autoreconf: automake failed with exit status: 1

Any idea? :)

joaquimrocha commented 11 years ago

You need to install GObject's Introspection libs, on Debian these are libgirepository1.0-dev and gobject-introspection. Don't know how to install these in OSX though...

pgte commented 11 years ago

Installed gobject-introspection, but it's still complaining that I don't have it installed, which is false :/ Here is the full output:

*** No gtk-doc support ***
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal  -I m4
autoreconf: configure.ac: tracing
autoreconf: running: glibtoolize --copy
autoreconf: running: /usr/local/Cellar/autoconf/2.69/bin/autoconf
autoreconf: running: /usr/local/Cellar/autoconf/2.69/bin/autoheader
autoreconf: running: automake --add-missing --copy --no-force
skeltrack/Makefile.am:77: warning: addprefix $(srcdir: non-POSIX variable name
skeltrack/Makefile.am:77: (probably a GNU make extension)
autoreconf: Leaving directory `.'
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-apple-darwin12.2.0
checking host system type... x86_64-apple-darwin12.2.0
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld
checking if the linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-apple-darwin12.2.0 file names to x86_64-apple-darwin12.2.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin12.2.0 file names to toolchain format... func_convert_file_noop
checking for /usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from gcc object... ok
checking for sysroot... no
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/llvm-gcc-4.2/libexec/gcc/i686-apple-darwin11/4.2.1/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin12.2.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for pkg-config... /usr/local/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for EXAMPLES_DEPS... no
checking for gobject-introspection... no
./configure: line 12536: syntax error near unexpected token `1.11'
./configure: line 12536: `GTK_DOC_CHECK(1.11)'
pgte commented 11 years ago

Any idea?

joaquimrocha commented 11 years ago

Did you install the development files of GObject Instrospection? Can you see them using the following command? pkg-config --list-all|grep introspection

pgte commented 11 years ago
Pedros-MacBook-Pro:Skeltrack pedroteixeira$ pkg-config --list-all|grep introspection
gobject-introspection-no-export-1.0 gobject-introspection - GObject Introspection
gobject-introspection-1.0           gobject-introspection - GObject Introspection
joaquimrocha commented 11 years ago

Did you do that in the same shell that you had run the ./autogen.sh and ./configure ?

pgte commented 11 years ago

Yes :/

joaquimrocha commented 11 years ago

Hmmm, check where you have the gobject-introspection-1.0.pc and make sure you have it accessible from where you compile Skeltrack. e.g. if the file is in /usr/lib/pkgconfig: export PKG_CONFIG_PATH=/usr/lib/pkgconfig/

iaguis commented 11 years ago

As a last resort, you can try disabling introspection by running

$ ./configure --disable-introspection
joaquimrocha commented 11 years ago

Hey Pedro, have you been able to compile Skeltrack in the end?

pgte commented 11 years ago

Haven't persuited it yet, gonna look into it later as an open alternative to OpenNI...

Pedro

On Monday, December 3, 2012 at 11:45 AM, Joaquim Rocha wrote:

Hey Pedro, have you been able to compile Skeltrack in the end?

— Reply to this email directly or view it on GitHub (https://github.com/joaquimrocha/Skeltrack/issues/5#issuecomment-10949883).

dskvr commented 11 years ago

Having this exact same problem, in the same order. When disabling Introspection nothing really changed:

... checking for GLIB... yes checking for EXAMPLES_DEPS... no checking for gobject-introspection... no (disabled, use --enable-introspection to enable) ./configure: line 12536: syntax error near unexpected token 1.11' ./configure: line 12536:GTK_DOC_CHECK(1.11)'

thisMagpie commented 9 years ago

You need to do what @joaquimrocha said, but do it for the actually pc path for your configuration so it works for you check where the relevant package files are with:

for f in $(locate *.pc); do dirname $f; done | uniq

j-bv commented 9 years ago

I got this problem on Ubuntu and I solved it by :

apt-get install gtk-doc-tools