I'm trying to cross-compile ZBar for a Buildroot image. The SDK uses the toolchain named arm-rockchip830-linux-uclibcgnueabihf. I want to cross-compile the GitHub repository at this link: https://github.com/mchehab/zbar. However, I'm facing some issues. Here are the commands I ran:
Code: Select all
(RKNN-Toolkit2) ubuntu007@ubuntu007:~/luckfox/zbar$ ARCH=arm CROSS_COMPILE=/home/ubuntu007/luckfox/luckfox-pico/tools/linux/toolchain/arm-rockchip830-linux-uclibcgnueabihf/bin/ ./configure --host=arm-rockchip830-linux-uclibcgnueabihf -prefix=/home/ubuntu007/luckfox/zbar/build_dir_1/ --with-libiconv-prefix=-I/home/ubuntu007/luckfox/libiconv_build/libiconv_path
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for arm-rockchip830-linux-uclibcgnueabihf-strip... no
checking for strip... strip
checking for a race-free mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... arm-rockchip830-linux-uclibcgnueabihf
checking how to print strings... printf
checking whether make supports the include directive... yes (GNU style)
checking for arm-rockchip830-linux-uclibcgnueabihf-gcc... no
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 the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... 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... /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/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... no
checking for arm-rockchip830-linux-uclibcgnueabihf-dumpbin... no
checking for arm-rockchip830-linux-uclibcgnueabihf-link... no
checking for dumpbin... no
checking for link... link -dump
checking the name lister (nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to arm-rockchip830-linux-uclibcgnueabihf format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for arm-rockchip830-linux-uclibcgnueabihf-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for arm-rockchip830-linux-uclibcgnueabihf-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for arm-rockchip830-linux-uclibcgnueabihf-ar... no
checking for ar... ar
checking for archiver @FILE support... @
checking for arm-rockchip830-linux-uclibcgnueabihf-strip... strip
checking for arm-rockchip830-linux-uclibcgnueabihf-ranlib... no
checking for ranlib... ranlib
checking command to parse nm output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for arm-rockchip830-linux-uclibcgnueabihf-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for sys/param.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 for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... no
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 arm-rockchip830-linux-uclibcgnueabihf-windres... no
checking for windres... no
checking whether make supports nested variables... (cached) yes
checking for arm-rockchip830-linux-uclibcgnueabihf-gcc... gcc
checking whether the compiler supports GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to enable C11 features... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for arm-rockchip830-linux-uclibcgnueabihf-g++... no
checking for arm-rockchip830-linux-uclibcgnueabihf-c++... no
checking for arm-rockchip830-linux-uclibcgnueabihf-gpp... no
checking for arm-rockchip830-linux-uclibcgnueabihf-aCC... no
checking for arm-rockchip830-linux-uclibcgnueabihf-CC... no
checking for arm-rockchip830-linux-uclibcgnueabihf-cxx... no
checking for arm-rockchip830-linux-uclibcgnueabihf-cc++... no
checking for arm-rockchip830-linux-uclibcgnueabihf-cl.exe... no
checking for arm-rockchip830-linux-uclibcgnueabihf-FCC... no
checking for arm-rockchip830-linux-uclibcgnueabihf-KCC... no
checking for arm-rockchip830-linux-uclibcgnueabihf-RCC... no
checking for arm-rockchip830-linux-uclibcgnueabihf-xlC_r... no
checking for arm-rockchip830-linux-uclibcgnueabihf-xlC... no
checking for arm-rockchip830-linux-uclibcgnueabihf-clang++... no
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for arm-rockchip830-linux-uclibcgnueabihf-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether to build EAN symbologies... yes
checking whether to build DataBar symbology... yes
checking whether to build Code 128 symbology... yes
checking whether to build Code 93 symbology... yes
checking whether to build Code 39 symbology... yes
checking whether to build Codabar symbology... yes
checking whether to build Interleaved 2 of 5 symbology... yes
checking whether to build QR Code... yes
checking whether to build SQ Code... yes
checking whether to build PDF417 symbology (incomplete)... no
checking for library containing clock_gettime... none required
checking for ld... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking 32-bit host C ABI... yes
checking how to run the C preprocessor... gcc -E
checking for ELF binary format... yes
checking for the common suffixes of directories in the library search path... lib,lib32,lib
checking for iconv... yes
checking for working iconv... yes
checking for iconv declaration...
extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyPreferredLanguages... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking for poll.h... yes
checking for pthread.h... yes
checking for pthread_create in -lpthread... yes
checking for xmlto... no
checking for linux/videodev.h... no
checking for linux/videodev2.h... yes
checking for libv4l2.h... yes
checking for libv4l2... yes
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for X11/extensions/XShm.h... yes
checking for XShmQueryVersion in -lXext... yes
checking for X11/extensions/Xvlib.h... no
checking for dbus-1 >= 1.0... yes
checking for jpeglib.h... yes
checking for jerror.h... yes
checking for jpeg_read_header in -ljpeg... yes
checking for MagickWand >= 6.2.6... no
checking for Wand >= 6.2.6... no
checking for GraphicsMagickWand... no
configure: ImageMagick/GraphicsMagick not detected. Several features will be disabled
checking for gtk+-3.0... yes
configure: using GTK+ version 3.24.33
checking for python3... /home/ubuntu007/miniconda3/envs/RKNN-Toolkit2/bin/python3
checking whether /home/ubuntu007/miniconda3/envs/RKNN-Toolkit2/bin/python3 version is >= 2.7.0... yes
checking for /home/ubuntu007/miniconda3/envs/RKNN-Toolkit2/bin/python3 version... 3.8
checking for /home/ubuntu007/miniconda3/envs/RKNN-Toolkit2/bin/python3 platform... linux
checking for GNU default /home/ubuntu007/miniconda3/envs/RKNN-Toolkit2/bin/python3 prefix... ${prefix}
checking for GNU default /home/ubuntu007/miniconda3/envs/RKNN-Toolkit2/bin/python3 exec_prefix... ${exec_prefix}
checking for /home/ubuntu007/miniconda3/envs/RKNN-Toolkit2/bin/python3 script directory (pythondir)... ${PYTHON_PREFIX}/lib/python3.8/site-packages
checking for /home/ubuntu007/miniconda3/envs/RKNN-Toolkit2/bin/python3 extension module directory (pyexecdir)... ${PYTHON_EXEC_PREFIX}/lib/python3.8/site-packages
checking for Python.h... yes
checking for Qt5Core >= 5 Qt5Gui >= 5 Qt5Widgets >= 5.0 Qt5X11Extras >= 5.0... no
checking for javac... no
checking for jikes... no
checking for ecj... no
checking for gcj... no
checking for javah... no
checking for jar... no
checking for java... no
checking for jni.h... no
checking whether to enable assertions... yes
checking for errno.h... yes
checking for fcntl.h... yes
checking for features.h... yes
checking for inttypes.h... (cached) yes
checking for float.h... yes
checking for limits.h... yes
checking for locale.h... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for sys/ioctl.h... yes
checking for sys/time.h... yes
checking for sys/times.h... yes
checking for sys/ipc.h... yes
checking for sys/shm.h... yes
checking for sys/mman.h... yes
checking for sys/mkdev.h... no
checking for sys/sysmacros.h... yes
checking for _Bool... yes
checking for stdbool.h that conforms to C99... yes
checking for int32_t... yes
checking for uint32_t... yes
checking for uint8_t... yes
checking for uintptr_t... yes
checking for uid_t in sys/types.h... yes
checking for int32_t... (cached) yes
checking for int64_t... yes
checking for off_t... yes
checking for size_t... yes
checking for uint16_t... yes
checking for uint32_t... (cached) yes
checking for uint64_t... yes
checking for uint8_t... (cached) yes
checking for struct stat.st_rdev... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for getpagesize... yes
checking for working mmap... yes
checking for alarm... yes
checking for clock_gettime... yes
checking for floor... no
checking for getcwd... yes
checking for gettimeofday... yes
checking for localeconv... yes
checking for memchr... yes
checking for memmove... yes
checking for memset... yes
checking for modf... yes
checking for munmap... yes
checking for pow... no
checking for select... yes
checking for setenv... yes
checking for sqrt... no
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strrchr... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoul... yes
checking for malloc... yes
checking for realloc... yes
Generating config files
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gtk/Makefile
config.status: creating java/Makefile
config.status: creating po/Makefile.in
config.status: creating zbar/Makefile
config.status: creating zbar.pc
config.status: creating zbar-gtk.pc
config.status: creating doc/doxygen.conf
config.status: creating test/test_examples.sh
config.status: creating test/check_dbus.sh
config.status: creating include/config.h
config.status: include/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing po-directories commands
config.status: creating po/POTFILES
config.status: creating po/Makefile
config.status: executing doc/version.xml commands
config.status: executing doc/reldate.xml commands
please verify that the detected configuration matches your expectations:
------------------------------------------------------------------------
gettext yes
X --with-x=yes
pthreads --enable-pthread=yes
doc --enable-doc=no
v4l --enable-video=yes
jpeg --with-jpeg=yes
Python --with-python=auto python3.8
GTK --with-gtk=gtk3 Gtk3.24.33
GObject introspection --with-gir=no
Qt --with-qt=no
Java --with-java=no
Dbus --with-dbus=yes
ImageMagick --with-imagemagick=no
Enabled codes: ean databar code128 code93 code39 codabar i25 qrcode sqcode
Disabled codes: pdf417
=> the zbarimg file scanner will *NOT* be built
=> the Qt widget will *NOT* be built
=> the Java interface will *NOT* be built
=> the Java unit test will *NOT* be enabled
(RKNN-Toolkit2) ubuntu007@ubuntu007:~/luckfox/zbar$ make
make all-recursive
make[1]: Entering directory '/home/ubuntu007/luckfox/zbar'
Making all in zbar
make[2]: Entering directory '/home/ubuntu007/luckfox/zbar/zbar'
CC libzbar_la-config.lo
CC libzbar_la-error.lo
CC libzbar_la-symbol.lo
CC libzbar_la-image.lo
CC libzbar_la-convert.lo
CC libzbar_la-processor.lo
CC processor/libzbar_la-lock.lo
CC libzbar_la-refcnt.lo
CC libzbar_la-window.lo
CC libzbar_la-video.lo
CC libzbar_la-img_scanner.lo
CC libzbar_la-scanner.lo
CC libzbar_la-decoder.lo
CC libzbar_la-misc.lo
CC decoder/libzbar_la-ean.lo
CC decoder/libzbar_la-databar.lo
CC decoder/libzbar_la-code128.lo
CC decoder/libzbar_la-code93.lo
CC decoder/libzbar_la-code39.lo
CC decoder/libzbar_la-codabar.lo
CC decoder/libzbar_la-i25.lo
CC decoder/libzbar_la-qr_finder.lo
CC qrcode/libzbar_la-qrdec.lo
CC qrcode/libzbar_la-qrdectxt.lo
CC qrcode/libzbar_la-rs.lo
CC qrcode/libzbar_la-isaac.lo
CC qrcode/libzbar_la-bch15_5.lo
CC qrcode/libzbar_la-binarize.lo
CC qrcode/libzbar_la-util.lo
CC libzbar_la-sqcode.lo
CC decoder/libzbar_la-sq_finder.lo
CC processor/libzbar_la-posix.lo
CC video/libzbar_la-v4l.lo
CC video/libzbar_la-v4l2.lo
CC libzbar_la-jpeg.lo
CC processor/libzbar_la-x.lo
CC window/libzbar_la-x.lo
CC window/libzbar_la-ximage.lo
CCLD libzbar.la
copying selected object files to avoid basename conflicts...
make[2]: Leaving directory '/home/ubuntu007/luckfox/zbar/zbar'
Making all in po
make[2]: Entering directory '/home/ubuntu007/luckfox/zbar/po'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/ubuntu007/luckfox/zbar/po'
Making all in gtk
make[2]: Entering directory '/home/ubuntu007/luckfox/zbar/gtk'
/usr/bin/glib-genmarshal --g-fatal-warnings --prefix=zbar_marshal \
--body zbarmarshal.list > zbarmarshal.c
INFO: Reading zbarmarshal.list...
/usr/bin/glib-genmarshal --g-fatal-warnings --prefix=zbar_marshal \
--header zbarmarshal.list > zbarmarshal.h
INFO: Reading zbarmarshal.list...
make all-am
make[3]: Entering directory '/home/ubuntu007/luckfox/zbar/gtk'
CC libzbargtk_la-zbargtk.lo
CC libzbargtk_la-zbarmarshal.lo
CCLD libzbargtk.la
make[3]: Leaving directory '/home/ubuntu007/luckfox/zbar/gtk'
make[2]: Leaving directory '/home/ubuntu007/luckfox/zbar/gtk'
Making all in .
make[2]: Entering directory '/home/ubuntu007/luckfox/zbar'
CC zbarcam/zbarcam-zbarcam.o
CCLD zbarcam/zbarcam
CC zbarcam/zbarcam_gtk-zbarcam-gtk.o
CC zbarcam/zbarcam_gtk-scan_video.o
CCLD zbarcam/zbarcam-gtk
CC python/zbar_la-zbarmodule.lo
CC python/zbar_la-enum.lo
CC python/zbar_la-exception.lo
CC python/zbar_la-symbol.lo
CC python/zbar_la-symbolset.lo
CC python/zbar_la-symboliter.lo
CC python/zbar_la-image.lo
CC python/zbar_la-processor.lo
CC python/zbar_la-imagescanner.lo
CC python/zbar_la-decoder.lo
CC python/zbar_la-scanner.lo
CCLD python/zbar.la
nm: python/.libs/zbar_la-exception.o: no symbols
make[2]: Leaving directory '/home/ubuntu007/luckfox/zbar'
make[1]: Leaving directory '/home/ubuntu007/luckfox/zbar'
(RKNN-Toolkit2) ubuntu007@ubuntu007:~/luckfox/zbar$ sudo make install
[sudo] password for ubuntu007:
make install-recursive
make[1]: Entering directory '/home/ubuntu007/luckfox/zbar'
Making install in zbar
make[2]: Entering directory '/home/ubuntu007/luckfox/zbar/zbar'
make[3]: Entering directory '/home/ubuntu007/luckfox/zbar/zbar'
/usr/bin/mkdir -p '/home/ubuntu007/luckfox/zbar/build_dir_1/lib'
/bin/bash ../libtool --mode=install /usr/bin/install -c libzbar.la '/home/ubuntu007/luckfox/zbar/build_dir_1/lib'
libtool: install: /usr/bin/install -c .libs/libzbar.so.0.3.0 /home/ubuntu007/luckfox/zbar/build_dir_1/lib/libzbar.so.0.3.0
libtool: install: (cd /home/ubuntu007/luckfox/zbar/build_dir_1/lib && { ln -s -f libzbar.so.0.3.0 libzbar.so.0 || { rm -f libzbar.so.0 && ln -s libzbar.so.0.3.0 libzbar.so.0; }; })
libtool: install: (cd /home/ubuntu007/luckfox/zbar/build_dir_1/lib && { ln -s -f libzbar.so.0.3.0 libzbar.so || { rm -f libzbar.so && ln -s libzbar.so.0.3.0 libzbar.so; }; })
libtool: install: /usr/bin/install -c .libs/libzbar.lai /home/ubuntu007/luckfox/zbar/build_dir_1/lib/libzbar.la
libtool: install: /usr/bin/install -c .libs/libzbar.a /home/ubuntu007/luckfox/zbar/build_dir_1/lib/libzbar.a
libtool: install: chmod 644 /home/ubuntu007/luckfox/zbar/build_dir_1/lib/libzbar.a
libtool: install: ranlib /home/ubuntu007/luckfox/zbar/build_dir_1/lib/libzbar.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /home/ubuntu007/luckfox/zbar/build_dir_1/lib
----------------------------------------------------------------------
Libraries have been installed in:
/home/ubuntu007/luckfox/zbar/build_dir_1/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable
during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[3]: Nothing to be done for 'install-data-am'.
make[3]: Leaving directory '/home/ubuntu007/luckfox/zbar/zbar'
make[2]: Leaving directory '/home/ubuntu007/luckfox/zbar/zbar'
Making install in po
make[2]: Entering directory '/home/ubuntu007/luckfox/zbar/po'
installing pt_BR.gmo as /home/ubuntu007/luckfox/zbar/build_dir_1/share/locale/pt_BR/LC_MESSAGES/zbar.mo
if test "zbar" = "gettext-tools"; then \
/usr/bin/mkdir -p /home/ubuntu007/luckfox/zbar/build_dir_1/share/gettext/po; \
for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot Makevars.template; do \
/usr/bin/install -c -m 644 ./$file \
/home/ubuntu007/luckfox/zbar/build_dir_1/share/gettext/po/$file; \
done; \
for file in Makevars; do \
rm -f /home/ubuntu007/luckfox/zbar/build_dir_1/share/gettext/po/$file; \
done; \
else \
: ; \
fi
make[2]: Leaving directory '/home/ubuntu007/luckfox/zbar/po'
Making install in gtk
make[2]: Entering directory '/home/ubuntu007/luckfox/zbar/gtk'
make install-am
make[3]: Entering directory '/home/ubuntu007/luckfox/zbar/gtk'
make[4]: Entering directory '/home/ubuntu007/luckfox/zbar/gtk'
/usr/bin/mkdir -p '/home/ubuntu007/luckfox/zbar/build_dir_1/lib'
/bin/bash ../libtool --mode=install /usr/bin/install -c libzbargtk.la '/home/ubuntu007/luckfox/zbar/build_dir_1/lib'
libtool: warning: relinking 'libzbargtk.la'
libtool: install: (cd /home/ubuntu007/luckfox/zbar/gtk; /bin/bash "/home/ubuntu007/luckfox/zbar/libtool" --silent --tag CC --mode=relink gcc -Wall -Wno-parentheses -g -O2 -version-info 0:2:0 -export-symbols-regex "^zbar_.*" -no-undefined -o libzbargtk.la -rpath /home/ubuntu007/luckfox/zbar/build_dir_1/lib libzbargtk_la-zbargtk.lo libzbargtk_la-zbarmarshal.lo -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 ../zbar/libzbar.la -ljpeg -lpthread )
libtool: install: /usr/bin/install -c .libs/libzbargtk.so.0.0.2T /home/ubuntu007/luckfox/zbar/build_dir_1/lib/libzbargtk.so.0.0.2
libtool: install: (cd /home/ubuntu007/luckfox/zbar/build_dir_1/lib && { ln -s -f libzbargtk.so.0.0.2 libzbargtk.so.0 || { rm -f libzbargtk.so.0 && ln -s libzbargtk.so.0.0.2 libzbargtk.so.0; }; })
libtool: install: (cd /home/ubuntu007/luckfox/zbar/build_dir_1/lib && { ln -s -f libzbargtk.so.0.0.2 libzbargtk.so || { rm -f libzbargtk.so && ln -s libzbargtk.so.0.0.2 libzbargtk.so; }; })
libtool: install: /usr/bin/install -c .libs/libzbargtk.lai /home/ubuntu007/luckfox/zbar/build_dir_1/lib/libzbargtk.la
libtool: install: /usr/bin/install -c .libs/libzbargtk.a /home/ubuntu007/luckfox/zbar/build_dir_1/lib/libzbargtk.a
libtool: install: chmod 644 /home/ubuntu007/luckfox/zbar/build_dir_1/lib/libzbargtk.a
libtool: install: ranlib /home/ubuntu007/luckfox/zbar/build_dir_1/lib/libzbargtk.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /home/ubuntu007/luckfox/zbar/build_dir_1/lib
----------------------------------------------------------------------
Libraries have been installed in:
/home/ubuntu007/luckfox/zbar/build_dir_1/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable
during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[4]: Leaving directory '/home/ubuntu007/luckfox/zbar/gtk'
make[3]: Leaving directory '/home/ubuntu007/luckfox/zbar/gtk'
make[2]: Leaving directory '/home/ubuntu007/luckfox/zbar/gtk'
Making install in .
make[2]: Entering directory '/home/ubuntu007/luckfox/zbar'
make[3]: Entering directory '/home/ubuntu007/luckfox/zbar'
/usr/bin/mkdir -p '/home/ubuntu007/luckfox/zbar/build_dir_1/bin'
/bin/bash ./libtool --mode=install /usr/bin/install -c zbarcam/zbarcam zbarcam/zbarcam-gtk '/home/ubuntu007/luckfox/zbar/build_dir_1/bin'
libtool: install: /usr/bin/install -c zbarcam/.libs/zbarcam /home/ubuntu007/luckfox/zbar/build_dir_1/bin/zbarcam
libtool: install: /usr/bin/install -c zbarcam/.libs/zbarcam-gtk /home/ubuntu007/luckfox/zbar/build_dir_1/bin/zbarcam-gtk
/usr/bin/mkdir -p '/home/ubuntu007/luckfox/zbar/build_dir_1/lib/python3.8/site-packages'
/bin/bash ./libtool --mode=install /usr/bin/install -c python/zbar.la '/home/ubuntu007/luckfox/zbar/build_dir_1/lib/python3.8/site-packages'
libtool: warning: relinking 'python/zbar.la'
libtool: install: (cd /home/ubuntu007/luckfox/zbar; /bin/bash "/home/ubuntu007/luckfox/zbar/libtool" --silent --tag CC --mode=relink gcc -Wall -Wno-parentheses -DLOCALEDIR=\"/home/ubuntu007/luckfox/zbar/build_dir_1/share/locale\" -g -O2 -shared -module -avoid-version -export-dynamic -export-symbols-regex "(initzbar|PyInit_zbar)" -L/home/ubuntu007/miniconda3/envs/RKNN-Toolkit2/lib/python3.8/config-3.8-x86_64-linux-gnu -L/home/ubuntu007/miniconda3/envs/RKNN-Toolkit2/lib -lcrypt -lpthread -ldl -lutil -lm -lm -o python/zbar.la -rpath /home/ubuntu007/luckfox/zbar/build_dir_1/lib/python3.8/site-packages python/zbar_la-zbarmodule.lo python/zbar_la-enum.lo python/zbar_la-exception.lo python/zbar_la-symbol.lo python/zbar_la-symbolset.lo python/zbar_la-symboliter.lo python/zbar_la-image.lo python/zbar_la-processor.lo python/zbar_la-imagescanner.lo python/zbar_la-decoder.lo python/zbar_la-scanner.lo zbar/libzbar.la -ljpeg -lpthread )
nm: python/.libs/zbar_la-exception.o: no symbols
libtool: install: /usr/bin/install -c python/.libs/zbar.soT /home/ubuntu007/luckfox/zbar/build_dir_1/lib/python3.8/site-packages/zbar.so
libtool: install: /usr/bin/install -c python/.libs/zbar.lai /home/ubuntu007/luckfox/zbar/build_dir_1/lib/python3.8/site-packages/zbar.la
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /home/ubuntu007/luckfox/zbar/build_dir_1/lib/python3.8/site-packages
----------------------------------------------------------------------
Libraries have been installed in:
/home/ubuntu007/luckfox/zbar/build_dir_1/lib/python3.8/site-packages
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the '-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the 'LD_RUN_PATH' environment variable
during linking
- use the '-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to '/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/usr/bin/mkdir -p '/etc/dbus-1/system.d'
/usr/bin/install -c -m 644 ./dbus/org.linuxtv.Zbar.conf '/etc/dbus-1/system.d'
/usr/bin/mkdir -p '/home/ubuntu007/luckfox/zbar/build_dir_1/share/doc/zbar'
/usr/bin/install -c -m 644 COPYING HACKING.md INSTALL.md LICENSE.md NEWS.md README.md TODO.md ABOUT-NLS '/home/ubuntu007/luckfox/zbar/build_dir_1/share/doc/zbar'
/usr/bin/mkdir -p '/home/ubuntu007/luckfox/zbar/build_dir_1/include'
/usr/bin/install -c -m 644 include/zbar.h '/home/ubuntu007/luckfox/zbar/build_dir_1/include'
/usr/bin/mkdir -p '/home/ubuntu007/luckfox/zbar/build_dir_1/lib/pkgconfig'
/usr/bin/install -c -m 644 zbar.pc zbar-gtk.pc '/home/ubuntu007/luckfox/zbar/build_dir_1/lib/pkgconfig'
/usr/bin/mkdir -p '/home/ubuntu007/luckfox/zbar/build_dir_1/include/zbar'
/usr/bin/install -c -m 644 include/zbar/Scanner.h include/zbar/Decoder.h include/zbar/Exception.h include/zbar/Symbol.h include/zbar/Image.h include/zbar/ImageScanner.h include/zbar/Video.h include/zbar/Window.h include/zbar/Processor.h include/zbar/zbargtk.h '/home/ubuntu007/luckfox/zbar/build_dir_1/include/zbar'
make[3]: Leaving directory '/home/ubuntu007/luckfox/zbar'
make[2]: Leaving directory '/home/ubuntu007/luckfox/zbar'
make[1]: Leaving directory '/home/ubuntu007/luckfox/zbar'
Code: Select all
(RKNN-Toolkit2) ubuntu007@ubuntu007:~/luckfox/luckfox_pico_rkmpi_example$ ./build.sh
1) luckfox_pico_rtsp_opencv 4) luckfox_pico_rtsp_retinaface_osd
2) luckfox_pico_rtsp_opencv_capture 5) luckfox_pico_rtsp_yolov5
3) luckfox_pico_rtsp_retinaface
Enter your choice [1-5]: 5
You selected: luckfox_pico_rtsp_yolov5
你选择了: luckfox_pico_rtsp_yolov5
-- Selected source directory: example/luckfox_pico_rtsp_yolov5
-- Set project name: luckfox_pico_rtsp_yolov5
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/ubuntu007/luckfox/luckfox-pico//tools/linux/toolchain/arm-rockchip830-linux-uclibcgnueabihf/bin/arm-rockchip830-linux-uclibcgnueabihf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/ubuntu007/luckfox/luckfox-pico//tools/linux/toolchain/arm-rockchip830-linux-uclibcgnueabihf/bin/arm-rockchip830-linux-uclibcgnueabihf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenCV: /home/ubuntu007/luckfox/luckfox_pico_rkmpi_example (found version "4.10.0")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- model dir PATH: example/luckfox_pico_rtsp_yolov5/model
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu007/luckfox/luckfox_pico_rkmpi_example/build
[ 20%] Building CXX object CMakeFiles/luckfox_pico_rtsp_yolov5.dir/example/luckfox_pico_rtsp_yolov5/src/luckfox_mpi.cc.o
[ 40%] Building CXX object CMakeFiles/luckfox_pico_rtsp_yolov5.dir/example/luckfox_pico_rtsp_yolov5/src/main.cc.o
[ 60%] Building CXX object CMakeFiles/luckfox_pico_rtsp_yolov5.dir/example/luckfox_pico_rtsp_yolov5/src/postprocess.cc.o
/home/ubuntu007/luckfox/luckfox_pico_rkmpi_example/example/luckfox_pico_rtsp_yolov5/src/postprocess.cc: In function 'char* coco_cls_to_name(int)':
/home/ubuntu007/luckfox/luckfox_pico_rkmpi_example/example/luckfox_pico_rtsp_yolov5/src/postprocess.cc:496:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
return "null";
^~~~~~
/home/ubuntu007/luckfox/luckfox_pico_rkmpi_example/example/luckfox_pico_rtsp_yolov5/src/postprocess.cc:504:12: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
return "null";
^~~~~~
[ 80%] Building CXX object CMakeFiles/luckfox_pico_rtsp_yolov5.dir/example/luckfox_pico_rtsp_yolov5/src/yolov5.cc.o
[100%] Linking CXX executable luckfox_pico_rtsp_yolov5
/usr/local/lib/libzbar.so: file not recognized: file format not recognized
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/luckfox_pico_rtsp_yolov5.dir/build.make:155: luckfox_pico_rtsp_yolov5] Error 1
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/luckfox_pico_rtsp_yolov5.dir/all] Error 2
make: *** [Makefile:136: all] Error 2