Clash Posted April 7, 2018 Posted April 7, 2018 Hello, I want to install libdrm from here https://github.com/rockchip-linux/libdrm-rockchip But there are already problems with autogen.sh. See below. Does anyone have a tip for armbian (Debian stretch) on how to install this library? The Clash Spoiler $ ./autogen.sh autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 ${ACLOCAL_FLAGS} autoreconf: configure.ac: tracing autoreconf: configure.ac: creating directory build-aux autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'. libtoolize: copying file 'build-aux/ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' autoreconf: running: /usr/bin/autoconf --force autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing configure.ac:45: installing 'build-aux/compile' configure.ac:37: installing 'build-aux/config.guess' configure.ac:37: installing 'build-aux/config.sub' configure.ac:39: installing 'build-aux/install-sh' configure.ac:39: installing 'build-aux/missing' Makefile.am: installing 'build-aux/depcomp' parallel-tests: installing 'build-aux/test-driver' autoreconf: Leaving directory `.' checking for xsltproc... no configure: WARNING: xsltproc not found - cannot transform XML documents checking build system type... armv7l-unknown-linux-gnueabihf checking host system type... armv7l-unknown-linux-gnueabihf checking for a sed that does not truncate output... /bin/sed 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 whether make supports nested variables... (cached) yes 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 for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for gcc option to accept ISO C99... none needed 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 minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... 64 checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes checking whether sys/types.h defines makedev... yes checking sys/sysctl.h usability... yes checking sys/sysctl.h presence... yes checking for sys/sysctl.h... yes checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select.h... yes checking how to print strings... printf checking for a sed that does not truncate output... (cached) /bin/sed 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 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 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 a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for mt... mt checking if mt is a manifest tool... no 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... no checking for clock_gettime... yes checking for open_memstream... yes checking for supported warning flags... checking whether gcc supports -Wall... yes checking whether gcc supports -Wextra... yes checking whether gcc supports -Wsign-compare... yes checking whether gcc supports -Werror-implicit-function-declaration... yes checking whether gcc supports -Wpointer-arith... yes checking whether gcc supports -Wwrite-strings... yes checking whether gcc supports -Wstrict-prototypes... yes checking whether gcc supports -Wmissing-prototypes... yes checking whether gcc supports -Wmissing-declarations... yes checking whether gcc supports -Wnested-externs... yes checking whether gcc supports -Wpacked... yes checking whether gcc supports -Wswitch-enum... yes checking whether gcc supports -Wmissing-format-attribute... yes checking whether gcc supports -Wstrict-aliasing=2... yes checking whether gcc supports -Winit-self... yes checking whether gcc supports -Wdeclaration-after-statement... yes checking whether gcc supports -Wold-style-definition... yes checking whether gcc supports -Wno-unused-parameter... yes checking whether gcc supports -Wno-attributes... yes checking whether gcc supports -Wno-long-long... yes checking whether gcc supports -Winline... yes checking whether gcc supports -Wshadow... yes checking whether gcc supports -Wno-missing-field-initializers... yes checking which warning flags were supported... -Wall -Wextra -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -Wshadow -Wno-missing-field-initializers checking for native atomic primitives... Intel ./configure: line 13657: syntax error near unexpected token `PCIACCESS,' ./configure: line 13657: ` PKG_CHECK_MODULES(PCIACCESS, pciaccess >= 0.10)'
JMCC Posted April 7, 2018 Posted April 7, 2018 Do you have some specific reason for needing it? I know there are many projects within the Rockchip repos that are outdated, and have been superseded by newer ones. That particular one hasn't been updated in over a year. that library is not included in current Rockchip-Linaro images, nor in ASUS TinkerOS, nor I have found any need to include it in the Armbian multimedia package that is currently under development. Everything works well without it.
Clash Posted April 8, 2018 Author Posted April 8, 2018 This library is used in TinkerOS-2.0.5 (Debian Stretch). There are some projects that use them. I want to use them, but I can't get them built because there are already problems with the configuration. Can't I use the library of TinkerOS under Armbia Debian Stretch? Unfortunately, there is no package available on the Internet.
JMCC Posted April 8, 2018 Posted April 8, 2018 14 hours ago, Clash said: This library is used in TinkerOS-2.0.5 (Debian Stretch) You're right. They are still using an old set of libs, with libmali r0p9 (Rockchip is using r0p14 now). I was hoping they changed it in their last release. I tested it, and saw lots of artifacts in webgl that don't happen when you use the more recent versions of the libs. In Armbian, we are implementing the most updated versions, and everything has worked so far very well, including drm, without that lib. However I have repackaged it from TinkerOS, and I'm attaching the deb to this post. But you must realize that if you install it in Armbian Stretch, you will not have all the other libraries necessary to make GPU acceleration work. My recommendation would be that you start from an Armbian Xenial default image, if your project can work on Xenial, and then follow the steps in the following guide (only the parts you need): https://forum.armbian.com/topic/6506-tutorial-3d-video-acceleration-and-opencl-in-rk3288-boards-with-new-44-default-kernel/ Then try to make your project work without libdrm-rockchip. If it doesn't , then install the deb and try. I'm very interested in knowing the results, so I would appreciate if you shared them. That would help to the development, and we may include that lib in case it turns out to be useful. Thanks. libdrm-rockchip1_2.4.74-2_armhf.deb 2
Clash Posted April 9, 2018 Author Posted April 9, 2018 20 hours ago, JMCC said: In Armbian, we are implementing the most updated versions, and everything has worked so far very well, including drm, without that lib. You're right. As I was informed by the developer of the VDR (a TV application (http://www.tvdr.de/) plugin softhddevice-drm (https://github.com/zillevdr/vdr-plugin-softhddevice-drm), the rockchip-libdrm Lib is not needed. I need to install a current version of mpp (https://github.com/rockchip-linux/mpp) and the current version of FFmpeg (https://github.com/FFmpeg/FFmpeg). This softhddevice-drm plugin is an application which displays the OSD of the VDR application in the console or under X. Can I include this softhddevice-drm plugin as a package? Thank you for your help.
JMCC Posted April 9, 2018 Posted April 9, 2018 1 minute ago, Clash said: I need to install a current version of mpp (https://github.com/rockchip-linux/mpp) and the current version of FFmpeg (https://github.com/FFmpeg/FFmpeg). You'll find both things already compiled for Xenial in the post referenced above. And right now I am working in a testing dev image with all the latest bleeding-edge changes enabled. If you want, I can give you the download link when it is ready.
Clash Posted April 9, 2018 Author Posted April 9, 2018 13 minutes ago, JMCC said: If you want, I can give you the download link when it is ready. I like to test that for Xenial when it's finished, but I like Debian stretch...
Recommended Posts