This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

configure: error: liboil-0.3.8 or later is required

在使用ti-processor-sdk-linux-rt-am57xx-evm-05.02.00.10-Linux-x86-Install.bin 开发工具时,

执行1.17 GCC ToolChain时

Configure/Autotools

The last case to cover is one where the environment-setup script is useful. In this case we will download the gst-plugins-bad package and configure and build it using the environment-setup script to configure the system for the autotools to properly detect the libraries available as pre-built libraries.

  1. First download the gst-plugins-bad-0.10.11.tar.gz package wget http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-0.10.11.tar.gz

    IMPORTANT In order to build the gst-plugins-bad package you will need libglib2.0-dev installed on your system. You can install this using sudo apt-get install libglib2.0-dev

  2. Extract the plugins tarball tar zxf gst-plugins-bad-0.10.11.tar.gz

  3. Change directory into the extracted sources cd gst-plugins-bad-0.10.11

  4. Source the <SDK INSTALL DIR>/linux-devkit/environment-setup script to prepare to configure and build the plugins. source <SDK INSTALL DIR>/linux-devkit/environment-setup

  5. Now configure the package. We need to define the host setting to tell the configuration utility what our host system is, and we will also disable some plugins that are known to be bad. ./configure –host=i686 –disable-deinterlace2 –disable-x264

  6. When the configuration is done the last sections will show which plugins will be build based on the libraries available. This is the key point behind what the environment-setup script provides. By setting up the PKG_CONFIG_* paths and other variables the configure script was able to check for required libraries being available to know which plugins to enable. Now that the sources have been configured you can compile them with a simple make command. make

    第5步骤,./configure –host=i686 –disable-deinterlace2 –disable-x264

     

    [linux-devkit]:~/TI/soft_Anzhuangbao/gst-plugins-bad-0.10.11> ./configure -host=i686 -disable-deinterlace2 -disable-x264
    configure: WARNING: If you wanted to set the --build type, don't use --host.
        If a cross compiler is detected then cross compile mode will be used.
    configure: loading site script /home/chengh/TI/sitara_linux_sdk/linux-devkit/site-config-armv7ahf-neon-linux-gnueabi
    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 for i686-strip... arm-linux-gnueabihf-strip
    checking nano version... 0 (release)
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... i686-pc-none
    checking for style of include used by make... GNU
    checking for i686-gcc... arm-linux-gnueabihf-gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... yes
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether arm-linux-gnueabihf-gcc accepts -g... yes
    checking for arm-linux-gnueabihf-gcc option to accept ISO C89... none needed
    checking dependency style of arm-linux-gnueabihf-gcc... gcc3
    checking for a sed that does not truncate output... (cached) 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 arm-linux-gnueabihf-gcc... /home/chengh/TI/sitara_linux_sdk/linux-devkit/sysroots/x86_64-arago-linux/usr/arm-linux-gnueabihf/bin/ld
    checking if the linker (/home/chengh/TI/sitara_linux_sdk/linux-devkit/sysroots/x86_64-arago-linux/usr/arm-linux-gnueabihf/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... arm-linux-gnueabihf-nm
    checking the name lister (arm-linux-gnueabihf-nm) 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 for /home/chengh/TI/sitara_linux_sdk/linux-devkit/sysroots/x86_64-arago-linux/usr/arm-linux-gnueabihf/bin/ld option to reload object files... -r
    checking how to recognize dependent libraries... unknown
    checking for i686-ar... arm-linux-gnueabihf-ar
    checking for i686-strip... (cached) arm-linux-gnueabihf-strip
    checking for i686-ranlib... arm-linux-gnueabihf-ranlib
    checking command to parse arm-linux-gnueabihf-nm output from arm-linux-gnueabihf-gcc object... ok
    checking how to run the C preprocessor... arm-linux-gnueabihf-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 arm-linux-gnueabihf-gcc supports -fno-rtti -fno-exceptions... no
    checking for arm-linux-gnueabihf-gcc option to produce PIC... -fPIC -DPIC
    checking if arm-linux-gnueabihf-gcc PIC flag -fPIC -DPIC works... yes
    checking if arm-linux-gnueabihf-gcc static flag -static works... yes
    checking if arm-linux-gnueabihf-gcc supports -c -o file.o... yes
    checking if arm-linux-gnueabihf-gcc supports -c -o file.o... (cached) yes
    checking whether the arm-linux-gnueabihf-gcc linker (/home/chengh/TI/sitara_linux_sdk/linux-devkit/sysroots/x86_64-arago-linux/usr/arm-linux-gnueabihf/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... no
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... no
    checking whether to build shared libraries... no
    checking whether to build static libraries... yes
    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 ld used by GCC... /home/chengh/TI/sitara_linux_sdk/linux-devkit/sysroots/x86_64-arago-linux/usr/arm-linux-gnueabihf/bin/ld
    checking if the linker (/home/chengh/TI/sitara_linux_sdk/linux-devkit/sysroots/x86_64-arago-linux/usr/arm-linux-gnueabihf/bin/ld) is GNU ld... yes
    checking for shared library run path origin... done
    checking for CFPreferencesCopyAppValue... no
    checking for CFLocaleCopyCurrent... no
    checking for GNU gettext in libc... yes
    checking whether to use NLS... yes
    checking where the gettext function comes from... libc
    checking for i686-pkg-config... no
    checking for pkg-config... /home/chengh/TI/sitara_linux_sdk/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/pkg-config
    configure: WARNING: using cross tools not prefixed with host triplet
    checking pkg-config is at least version 0.9.0... yes
    checking for VALGRIND... yes
    configure: Using extra code paths for valgrind
    configure: Using GStreamer Bad Plug-ins source release as package name
    configure: Using Unknown package origin as package origin

    configure: *** checking feature: building of plug-ins with external deps ***
    configure: building external plug-ins

    configure: *** checking feature: building of experimental plug-ins ***
    configure: not building experimental plug-ins
    checking whether byte ordering is bigendian... (cached) no
    checking whether byte ordering is bigendian... (cached) no
    checking for i686-gcc... (cached) arm-linux-gnueabihf-gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether arm-linux-gnueabihf-gcc accepts -g... (cached) yes
    checking for arm-linux-gnueabihf-gcc option to accept ISO C89... (cached) none needed
    checking dependency style of arm-linux-gnueabihf-gcc... (cached) gcc3
    checking whether we are using the GNU C++ compiler... yes
    checking whether arm-linux-gnueabihf-g++ accepts -g... yes
    checking dependency style of arm-linux-gnueabihf-g++... gcc3
    checking whether we are using the GNU C++ compiler... (cached) yes
    checking whether arm-linux-gnueabihf-g++ accepts -g... (cached) yes
    checking dependency style of arm-linux-gnueabihf-g++... (cached) gcc3
    checking how to run the C++ preprocessor... arm-linux-gnueabihf-g++ -E
    checking for ld used by arm-linux-gnueabihf-g++... /home/chengh/TI/sitara_linux_sdk/linux-devkit/sysroots/x86_64-arago-linux/usr/arm-linux-gnueabihf/bin/ld
    checking if the linker (/home/chengh/TI/sitara_linux_sdk/linux-devkit/sysroots/x86_64-arago-linux/usr/arm-linux-gnueabihf/bin/ld) is GNU ld... yes
    checking whether the arm-linux-gnueabihf-g++ linker (/home/chengh/TI/sitara_linux_sdk/linux-devkit/sysroots/x86_64-arago-linux/usr/arm-linux-gnueabihf/bin/ld) supports shared libraries... no
    checking for arm-linux-gnueabihf-g++ option to produce PIC... -fPIC -DPIC
    checking if arm-linux-gnueabihf-g++ PIC flag -fPIC -DPIC works... yes
    checking if arm-linux-gnueabihf-g++ static flag -static works... yes
    checking if arm-linux-gnueabihf-g++ supports -c -o file.o... yes
    checking if arm-linux-gnueabihf-g++ supports -c -o file.o... (cached) yes
    checking whether the arm-linux-gnueabihf-g++ linker (/home/chengh/TI/sitara_linux_sdk/linux-devkit/sysroots/x86_64-arago-linux/usr/arm-linux-gnueabihf/bin/ld) supports shared libraries... no
    checking dynamic linker characteristics... no
    checking how to hardcode library paths into programs... immediate
    checking for arm-linux-gnueabihf-g++... yes
    checking for i686-objcc... no
    checking for i686-objc... no
    checking for i686-gcc... no
    checking for i686-cc... no
    checking for i686-CC... no
    checking for objcc... no
    checking for objc... no
    checking for gcc... gcc
    checking dependency style of gcc... gcc3
    checking if Objective C compiler works... no
    checking whether arm-linux-gnueabihf-gcc and cc understand -c and -o together... yes
    checking for working do while(0) macros... yes
    checking for valgrind... no
    checking whether to build gtk-doc documentation... no
    checking for gtkdoc-check... no
    configure: Looking for Python version >= 2.1
    checking for python... /usr/bin/python
    checking "/usr/bin/python":... okay
    checking local Python configuration... looks good
    checking whether to build plugin documentation... no (gtk-doc disabled or not available)
    checking for cos in -lm... yes
    checking for stdlib.h... (cached) yes
    checking for unistd.h... (cached) yes
    checking for getpagesize... (cached) yes
    checking for working mmap... (cached) yes
    checking for unistd.h... (cached) yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking for stdint types... stdint.h (shortcircuit)
    make use of stdint.h in _stdint.h (assuming C99 compatible system)
    checking for FIONREAD in sys/ioctl.h... yes
    checking if compiler supports gcc-style inline assembly... yes
    checking for socket... yes
    checking for gethostbyname... yes
    checking for GLIB... yes
    checking for LIBOIL... no
    configure: error: liboil-0.3.8 or later is required

    提示,需要安装liboil 0.3.8以上版本, 我从网上下载了0.3.17版本,安装了,再执行这个congfigure命令,仍然提示这个错误.问题到底在哪里,怎么解决?