libserial: make does not work on raspbian
I copied the actual version of libserial onto my RPI3 with the actual Raspian version ( Debian GNU/Linux) and gcc etc. all updated.
“configure” works, but not the generated “Makefile”. Here is the output, which marks some problems with the option “CXX”:
$ make make all-recursive make[1]: Entering directory ‘/usr/src/libserial-0.6.0rc2’ Making all in src make[2]: Entering directory ‘/usr/src/libserial-0.6.0rc2/src’ /bin/sh …/libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I… -Weffc++ -g -O2 -MT SerialStreamBuf.lo -MD -MP -MF .deps/SerialStreamBuf.Tpo -c -o SerialStreamBuf.lo SerialStreamBuf.cc …/libtool: 1578: …/libtool: preserve_args+= --tag CXX: not found …/libtool: 1: eval: base_compile+= g++: not found …/libtool: 1: eval: base_compile+= -DHAVE_CONFIG_H: not found …/libtool: 1: eval: base_compile+= -I.: not found …/libtool: 1: eval: base_compile+= -I…: not found …/libtool: 1: eval: base_compile+= -Weffc++: not found …/libtool: 1: eval: base_compile+= -g: not found …/libtool: 1: eval: base_compile+= -O2: not found …/libtool: 1: eval: base_compile+= -MT: not found …/libtool: 1: eval: base_compile+= SerialStreamBuf.lo: not found …/libtool: 1: eval: base_compile+= -MD: not found …/libtool: 1: eval: base_compile+= -MP: not found …/libtool: 1: eval: base_compile+= -MF: not found …/libtool: 1: eval: base_compile+= .deps/SerialStreamBuf.Tpo: not found …/libtool: 1: eval: base_compile+= -c: not found libtool: compile: you must specify a compilation command libtool: compile: Try `libtool --help --mode=compile’ for more information. Makefile:445: recipe for target ‘SerialStreamBuf.lo’ failed make[2]: *** [SerialStreamBuf.lo] Error 1 make[2]: Leaving directory ‘/usr/src/libserial-0.6.0rc2/src’ Makefile:453: recipe for target ‘all-recursive’ failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory ‘/usr/src/libserial-0.6.0rc2’ Makefile:357: recipe for target ‘all’ failed make: *** [all] Error 2 pi@raspberryKT:/usr/src/libserial-0.6.0rc2 $
Sorry, I’m not familiar enough with gcc on Linux to resolve this problem - could please anybody give me some hint? Thank you for your help!
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 35 (1 by maintainers)
Hi @ktphys ,
Thanks for the information. Please install libtool:
sudo apt install libtool-binLet us know if it installs correctly and if that fixes your issue!
-Mark