Topic: [SOLVED] compiling libnfc-llcp under linux: does not work correctly

Hello,

I have downloaded the libnfc-llcp sources from the SVN.
and done the following:

autoreconf -vis

however, I noticed that install-sh, and Makefile.in (from several places) is missing.

How do I complete the compilation?

-Earlence

Re: [SOLVED] compiling libnfc-llcp under linux: does not work correctly

Hello,

Theses commands works for me:

autoreconf -vis
./configure
make clean all
Romuald Conty

Re: [SOLVED] compiling libnfc-llcp under linux: does not work correctly

I am using the version of code downloaded from the SVN. (latest).

I run autoreconf and then configure.
The makefile.in is not generated for the folders. Is there something wrong I am doing?

-Earlence

Re: [SOLVED] compiling libnfc-llcp under linux: does not work correctly

Can you send me your working copy?

-Earlence

Re: [SOLVED] compiling libnfc-llcp under linux: does not work correctly

Hello,

I'm using the last version dowloaded from the SVN, and it works.

You have to do:

svn checkout http://nfc-tools.googlecode.com/svn/trunk/libnfc-llcp
cd libnfc-llcp/
autoreconf -vis
./configure
make
sudo make install

Re: [SOLVED] compiling libnfc-llcp under linux: does not work correctly

just followed the exact set of steps.
this is what I get

earlence@earlence-Satellite-L650:~/nfcwork/libnfc-llcp$ autoreconf -vis
Can't exec "libtoolize": No such file or directory at /usr/bin/autoreconf line 196.
Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf line 196.
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf
autoreconf: running: /usr/bin/autoheader
autoreconf: running: automake --add-missing --no-force
configure.ac:14: installing `./install-sh'
configure.ac:14: installing `./missing'
libnfc-llcp/Makefile.am:11: Libtool library used but `LIBTOOL' is undefined
libnfc-llcp/Makefile.am:11:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
libnfc-llcp/Makefile.am:11:   to `configure.ac' and run `aclocal' and `autoconf' again.
libnfc-llcp/Makefile.am:11:   If `AC_PROG_LIBTOOL' is in `configure.ac', make sure
libnfc-llcp/Makefile.am:11:   its definition is in aclocal's search path.
libnfc-llcp/Makefile.am: installing `./depcomp'
test/Makefile.am:23: Libtool library used but `LIBTOOL' is undefined
test/Makefile.am:23:   The usual way to define `LIBTOOL' is to add `AC_PROG_LIBTOOL'
test/Makefile.am:23:   to `configure.ac' and run `aclocal' and `autoconf' again.
test/Makefile.am:23:   If `AC_PROG_LIBTOOL' is in `configure.ac', make sure
test/Makefile.am:23:   its definition is in aclocal's search path.
Makefile.am: installing `./INSTALL'
autoreconf: automake failed with exit status: 1
earlence@earlence-Satellite-L650:~/nfcwork/libnfc-llcp$ ./configure
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
./configure: line 3160: AC_PROG_LIBTOOL: command not found
checking for inline... inline
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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 stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for int8_t... yes
checking for off_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uint16_t... yes
checking for uint8_t... yes
checking for strcasecmp... yes
checking for strdup... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/param.h usability... yes
checking sys/param.h presence... yes
checking for sys/param.h... yes
checking pthread_np.h usability... no
checking pthread_np.h presence... no
checking for pthread_np.h... no
checking whether pthread_set_name_np is declared... no
checking for log4c-config... no
checking for dot... no
checking for mscgen... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBNFC... yes
configure: creating ./config.status
config.status: error: cannot find input file: `Makefile.in'

Re: [SOLVED] compiling libnfc-llcp under linux: does not work correctly

ok...libtool was missing.

now it compiles, but it complains that nfc_abort_command is an undef ref.

-Earlence

Re: [SOLVED] compiling libnfc-llcp under linux: does not work correctly

It works now. thanks for the help.