ubuntuusers.de

BOB3-Roboter für die Schule

Status: Ungelöst | Ubuntu-Version: Ubuntu 16.04 (Xenial Xerus)
Antworten |

nilleholger

Anmeldungsdatum:
27. Oktober 2008

Beiträge: 199

Hallo zusammen

ich versuche gerade dieses kleine Programm zu installieren, um damit meinen Programmtext auf den kleinen Roboter zu bekommen: http://www.bob3.org/de/code#software

Leider bricht die Installation immer mit dem Fehler (siehe unten) ab:

root@Latitude:/home/NAME/bobdude-1.2.0# ./configure 
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 whether make supports nested variables... yes
checking for g++... g++
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 g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
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 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 stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for uint32_t... yes
checking for uint8_t... yes
checking for libavrdude... configure: error: failed (check your CFLAGS)

Irgendeine Idee, was ich falsch mache?

Moderiert von XM-Franz:

Installationsthema in einen passenderen Forenbereich verschoben. Bitte beachte die als wichtig markierten Themen (Welche Themen gehören hier her und welche nicht?) in jedem Forenbereich. Danke.

Moderiert von Taomon:

Weiterverschoben

mrkramps Team-Icon

Avatar von mrkramps

Anmeldungsdatum:
10. Oktober 2006

Beiträge: 5523

Wohnort: south central EL

Du musst die Abhängigkeiten für das Kompilieren auflösen; siehe auch Programme kompilieren. Dir fehlt hier vermutlich das Paket avrdude (universe).

workwind

Anmeldungsdatum:
29. April 2017

Beiträge: 10

Ich habe gerade die neue Bobdude Version 1.2.1 hochgeladen, die sollte jetzt unter Ubuntu compilieren...

nilleholger

(Themenstarter)

Anmeldungsdatum:
27. Oktober 2008

Beiträge: 199

@mrkramps: danke für den Hinweis habe das Paket mithilfe von "sudo apt install avrdude" installiert. Es fehlte tatsächlich!

@workwind: hab direkt die neue Version im Heimverzeichnis entpakt (Grafisch) und dann in das Verzeichnis gewechselt und erneut der gleiche Fehler...

BENUTZER@PC:~$ cd bobdude-1.2.1/
BENUTZER@PC:~/bobdude-1.2.1$ ./configure && make && make install
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 whether make supports nested variables... yes
checking for g++... g++
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 g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gcc... gcc
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 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 stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for uint32_t... yes
checking for uint8_t... yes
checking for library containing elf_getshdrstrndx... no
checking for library containing libusb_init... no
checking for libavrdude... configure: error: failed (check your CFLAGS)
BENUTZER@PC:~/bobdude-1.2.1$ 

workwind

Anmeldungsdatum:
29. April 2017

Beiträge: 10

Hier das Rezept um BobDude unter Ubunu zu kompilieren:

––––––––––––--8<–––––––––––––––-

Falls WxWidgets, libusb oder Boost nicht installiert sind:

$ sudo apt-get install libboost-all-dev libwxgtk3.0-dev libusb-1.0-0-dev

Danach muss die aktuelle avrdude Software (insbesonder die lib, da diese nicht im Ubuntu/Debian Paket ist!) compiliert & installiert werden:

http://download.savannah.gnu.org/releases/avrdude/avrdude-6.3.tar.gz

$ tar -xzf avrdude-6.3.tar.gz
$ cd avrdude-6.3
$ ./configure
$ make
$ sudo make install

http://www.bob3.org/downloads/bobdude-1.2.1.tar.bz2

$ tar -xjf bobdude-1.2.1.tar.bz2
$ cd bobdude-1.2.1
$ ./configure
$ make
$ sudo make install

––––––––––––--8<–––––––––––––––-

nilleholger

(Themenstarter)

Anmeldungsdatum:
27. Oktober 2008

Beiträge: 199

Leider schlägt auch die Installation der neuen avrdude-Version (6.3) fehl:

Benutzer@PC:~$ tar -xzf avrdude-6.3.tar.gz 
Benutzer@PC:~$ cd avrdude-6.3
Benutzer@PC:~/avrdude-6.3$ ./configure
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/Benutzer/avrdude-6.3/missing: Unknown `--is-lightweight' option
Try `/home/Benutzer/avrdude-6.3/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
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 whether make supports nested variables... yes
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 whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
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 x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu 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 ar... ar
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 -m elf_x86_64) 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 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 whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for a sed that does not truncate output... (cached) /bin/sed
checking for bison... no
checking for byacc... no
checking for flex... no
checking for lex... no
checking for -ar... ar
checking for tputs in -ltermcap... no
checking for tputs in -lncurses... no
checking for readline in -lreadline... no
checking for elf_getshdrstrndx in -lelf... no
checking for library containing gethostent... none required
checking for library containing setsockopt... none required
checking for usb_get_string_simple in -lusb... no
checking for libusb_init in -lusb-1.0... yes
checking libusb-1.0/libusb.h usability... yes
checking libusb-1.0/libusb.h presence... yes
checking for libusb-1.0/libusb.h... yes
checking libusb.h usability... no
checking libusb.h presence... no
checking for libusb.h... no
checking for libusb_init in -lusb... no
checking for libusb.h... (cached) no
checking for ftdi_new in -lftdi1... no
checking for ftdi_usb_get_strings in -lftdi... no
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create in -lpthread... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking for ddk/hidsdi.h... no
checking for an ANSI C-conforming const... yes
checking whether time.h and sys/time.h may both be included... yes
checking for puts in -lws2_32... no
checking for memset... yes
checking for select... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strtol... yes
checking for strtoul... yes
checking for gettimeofday... yes
checking for usleep... yes
checking for a Win32 HID libray... no
checking for uint_t... no
checking for ulong_t... no
checking for parallel device... /dev/parport0
checking for serial device... /dev/ttyS0
checking if gcc accepts -Wno-pointer-sign ... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating doc/Makefile
config.status: creating windows/Makefile
config.status: creating avrdude.spec
config.status: creating Makefile
config.status: creating avrdude.conf.tmp
config.status: creating ac_cfg.h
config.status: executing depfiles commands
config.status: executing libtool commands


Configuration summary:
----------------------
DON'T HAVE libelf
DON'T HAVE libusb
DO HAVE    libusb_1_0
DON'T HAVE libftdi1
DON'T HAVE libftdi
DON'T HAVE libhid
DO HAVE    pthread
DISABLED   doc
ENABLED    parport
DISABLED   linuxgpio
Benutzer@PC:~/avrdude-6.3$ make
/bin/bash ./ylwrap config_gram.y y.tab.c config_gram.c y.tab.h `echo config_gram.c | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/` y.output config_gram.output -- yacc -d 
./ylwrap: Zeile 111: yacc: Befehl nicht gefunden
Makefile:1927: die Regel für Ziel „config_gram.c“ scheiterte
make: *** [config_gram.c] Fehler 1
Benutzer@PC:~/avrdude-6.3$ sudo make install
[sudo] Passwort für Benutzer: 
/bin/bash ./ylwrap config_gram.y y.tab.c config_gram.c y.tab.h `echo config_gram.c | sed -e s/cc$/hh/ -e s/cpp$/hpp/ -e s/cxx$/hxx/ -e s/c++$/h++/ -e s/c$/h/` y.output config_gram.output -- yacc -d 
./ylwrap: Zeile 111: yacc: Befehl nicht gefunden
Makefile:1927: die Regel für Ziel „config_gram.c“ scheiterte
make: *** [config_gram.c] Fehler 1
Benutzer@PC:~/avrdude-6.3$ 

workwind

Anmeldungsdatum:
29. April 2017

Beiträge: 10

Wir tasten uns ran... 😉

sudo apt-get install bison++ flex-old

nilleholger

(Themenstarter)

Anmeldungsdatum:
27. Oktober 2008

Beiträge: 199

letzter Befehl schlägt noch fehl:

Benutzer@PC:~/bobdude-1.2.1$ sudo make install
make[1]: Verzeichnis „/home/Benutzer/bobdude-1.2.1“ wird betreten
 /bin/mkdir -p '/usr/local/bin'
  /usr/bin/install -c bobdude '/usr/local/bin'
make[1]: Für das Ziel „install-data-am“ ist nichts zu tun.
make[1]: Verzeichnis „/home/Benutzer/bobdude-1.2.1“ wird verlassen
Benutzer@PC:~/bobdude-1.2.1$ 

vielen Dank für die Info!!

workwind

Anmeldungsdatum:
29. April 2017

Beiträge: 10

Das ist die Art von Linux Dir mitzuteilen, dass es geklappt hat! 😉

$ bobdude

nilleholger

(Themenstarter)

Anmeldungsdatum:
27. Oktober 2008

Beiträge: 199

Leider nein ☹

Benutzer@PC:~$ bobdude 
bobdude: error while loading shared libraries: libavrdude.so.1: cannot open shared object file: No such file or directory

workwind

Anmeldungsdatum:
29. April 2017

Beiträge: 10

probier mal:

$ sudo ldconfig
$ bobdude

nilleholger

(Themenstarter)

Anmeldungsdatum:
27. Oktober 2008

Beiträge: 199

Hallo Workwind

danke für dein Bemühen, ich bin am Ziel!

Habe nur ich auf meinem zerschossenen System so viel nachzuarbeiten oder gilt das für alle? Sonst müsste man das vll auf der Homepage als Anleitung ergänzen?

Grüße und guten Start in die Woche!

nils

workwind

Anmeldungsdatum:
29. April 2017

Beiträge: 10

@nilleholger: Ich arbeite noch am genauen Rezept... 😉

Hier das Rezept [UPDATE] um BobDude unter Ubuntu zu kompilieren:

––––––––––––--8<–––––––––––––––-

Falls WxWidgets, libusb, Boost, bison oder flex nicht installiert sind:

$ sudo apt-get install libboost-all-dev libwxgtk3.0-dev libusb-1.0-0-dev bison++ flex-old

Danach muss die aktuelle avrdude Software (insbesonder die lib, da diese nicht im Ubuntu/Debian Paket ist!) compiliert & installiert werden:

http://download.savannah.gnu.org/releases/avrdude/avrdude-6.3.tar.gz

$ tar -xzf avrdude-6.3.tar.gz
$ cd avrdude-6.3
$ ./configure
$ make
$ sudo make install

Anschließend die dynamischen Bibliotheken aktualisieren:

$ sudo ldconfig

Jetzt ist alles soweit vorbereitet:

http://www.bob3.org/downloads/bobdude-1.2.1.tar.bz2

$ tar -xjf bobdude-1.2.1.tar.bz2
$ cd bobdude-1.2.1
$ ./configure
$ make
$ sudo make install

Und los gehts:

$ bobdude

––––––––––––--8<–––––––––––––––-

nilleholger

(Themenstarter)

Anmeldungsdatum:
27. Oktober 2008

Beiträge: 199

Leider geht's nur mit

sudo bobdude

da sonst die Rechte fehlen um den kleinen Mann anzusprechen! ☹

nils

Bilder

workwind

Anmeldungsdatum:
29. April 2017

Beiträge: 10

Du musst der Gruppe dialout angehören ...

$ sudo adduser DEIN_USERNAME dialout
Antworten |