building libphidget22 on debian (Linux twSBC 4.14.24-sunxi #3 SMP Thu Mar 8 13:45:10 MST 2018 armv7l GNU/Linux)

Supporting 2.6 and up
Post Reply
asd
Phidgetsian
Posts: 7
Joined: Wed Sep 19, 2018 12:32 pm
Contact:

building libphidget22 on debian (Linux twSBC 4.14.24-sunxi #3 SMP Thu Mar 8 13:45:10 MST 2018 armv7l GNU/Linux)

Post by asd »

Hi guys,
I am having troubles building the library on debian

root@twSBC:/home/asd/phidgets/libphidget22-1.0.0.20180905# ./configure

works ...

Code: Select all

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... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
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 whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for ar... ar
checking the archiver (ar) interface... ar
checking build system type... armv7l-unknown-linux-gnueabihf
checking host system type... armv7l-unknown-linux-gnueabihf
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert armv7l-unknown-linux-gnueabihf file names to armv7l-unknown-linux-gnueabihf format... func_convert_file_noop
checking how to convert armv7l-unknown-linux-gnueabihf file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
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 archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
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... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
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/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
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 whether make supports nested variables... (cached) yes
checking for gcc option to accept ISO C99... none needed
checking whether byte ordering is bigendian... no
checking for ldconfig... /sbin/ldconfig
checking for library containing dlopen... -ldl
checking for library containing sqrt... -lm
checking for library containing pthread_create... -lpthread
checking for library containing libusb_init... -lusb-1.0
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libphidget22.pc
config.status: executing depfiles commands
config.status: executing libtool commands
but make fails ...

root@twSBC:/home/asd/phidgets/libphidget22-1.0.0.20180905# make

Code: Select all

CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/asd/phidgets/libphidget22-1.0.0.20180905/build/missing aclocal-1.14 -I m4
/home/asd/phidgets/libphidget22-1.0.0.20180905/build/missing: line 81: aclocal-1.14: command not found
WARNING: 'aclocal-1.14' is missing on your system.
         You should only need it if you modified 'acinclude.m4' or
         'configure.ac' or m4 files included by 'configure.ac'.
         The 'aclocal' program is part of the GNU Automake package:
         <http://www.gnu.org/software/automake>
         It also requires GNU Autoconf, GNU m4 and Perl in order to run:
         <http://www.gnu.org/software/autoconf>
         <http://www.gnu.org/software/m4/>
         <http://www.perl.org/>
Makefile:938: recipe for target 'aclocal.m4' failed
make: *** [aclocal.m4] Error 127
Any hints are highly appreciated. I've tried some of the tips regarding missing aclocal-1.14 and autotools I've found via google but no success.

Many thanks!
Matthias
Last edited by asd on Fri Sep 21, 2018 12:37 am, edited 1 time in total.
User avatar
Patrick
Lead Developer
Posts: 3399
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: building libphidget22 on debian (Linux twSBC 4.14.24-sunxi #3 SMP Thu Mar 8 13:45:10 MST 2018 armv7l GNU/Linux)

Post by Patrick »

try:

apt-get install autotools automake libtool

-Patrick
asd
Phidgetsian
Posts: 7
Joined: Wed Sep 19, 2018 12:32 pm
Contact:

Re: building libphidget22 on debian (Linux twSBC 4.14.24-sunxi #3 SMP Thu Mar 8 13:45:10 MST 2018 armv7l GNU/Linux)

Post by asd »

Thank you!

apt-get install autotools-dev automake libtool

worked for me.
asd
Phidgetsian
Posts: 7
Joined: Wed Sep 19, 2018 12:32 pm
Contact:

Re: building libphidget22 on debian Linux deb 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u4 (2018-08-21) x86_64 GNU/Linux

Post by asd »

Sorry to bother you again!

I'm now having the exact same problem on debian stretch arch x86_64.

Linux deb 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u4 (2018-08-21) x86_64 GNU/Linux

I've installed all of the above

Code: Select all

apt-get install autotools-dev automake libtool
and also tried the suggestions here:

https://github.com/roelj/inklingreader/issues/14

No luck. Any hints?

All best,
Matthias
User avatar
Patrick
Lead Developer
Posts: 3399
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: building libphidget22 on debian (Linux twSBC 4.14.24-sunxi #3 SMP Thu Mar 8 13:45:10 MST 2018 armv7l GNU/Linux)

Post by Patrick »

It's really strange that your system wants to update these files. How did you extract the source archive on the build machine? Have you copied the source folder after extracting it? These sorts of issues are probably from timestamps getting updated in the build files so the buildsystem thinks it needs to update things that is does not.

-Patrick
asd
Phidgetsian
Posts: 7
Joined: Wed Sep 19, 2018 12:32 pm
Contact:

Re: building libphidget22 on debian (Linux twSBC 4.14.24-sunxi #3 SMP Thu Mar 8 13:45:10 MST 2018 armv7l GNU/Linux)

Post by asd »

Thank you Patrick!

I've downloaded and extracted the tarball on the target machine and it builds without any of the problems above.

What I did before was:
* downloaded and extracted the files under OS X
* added the extracted directory to my git-repository
* via ssh: cloned the repo on the linux machine
* tried to build the library: /.configure && make && make install

You have saved me from pulling my remaining hair out!!!

Many thanks!
Matthias
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests