Errors encountered in compiling bluez-5.25 and how to resolve them

Source: Internet
Author: User

Before compiling, I have done the compilation of d-bus1.8.10,glib2.28.6,bluez-libs-3.36,bluez-utils-3.36, and has set up the environment, if it has been successfully compiled, but could not find the compiled library file, you can refer to the HTTP ://blog.csdn.net/wang_shuai_ww/article/details/41720841.


After I have completed the above, the compiler bluez-5.25 encountered the following problems:

First of all, I can't find Libudev.

This error uses the command sudo apt-get install Libudev-dev. If you are using an official Ubuntu source, you may get an error, a specific workaround, referring to http://blog.csdn.net/wang_shuai_ww/article/details/41720605.

After installation, the error:libical is required error is configured again, libical is not found.

Workaround as above sudo apt-get install Libical-dev, if reference http://blog.csdn.net/wang_shuai_ww/article/details/41720605 has modified the source, Then there is no problem with this step.


And then error error:readline header files are required, this can refer to http://blog.chinaunix.net/uid-20196318-id-3930371.html or http:/ /ubuntuforums.org/showthread.php?t=1670531, you can actually use the sudo apt-get install Libreadline-dev command. If the arm compiler you are using does not have a header file, even if it is installed, you may still not be able to fix it, simply copy the entire directory of the host's/usr/includereadline to the Usr/include directory of your Arm-linux compiler. Different arm compilers may have different paths, and my path here is/usr/local/arm/arm-cortex_a9-eabi-4.7/arm-cortex_a9-linux-gnueabi/sysroot/usr/include/.


Then there's the error checking systemd system Unit dir ... CONFIGURE:ERROR:SYSTEMD System Unit Directory is required, the error is so much, it's annoying.

This error can be referred to http://askubuntu.com/questions/343663/ Ubuntu-13-04-and-bluez-5-8-configure-error-systemd-system-unit-directory-is-re, specifically, add the compile option --sysconfdir=/ etc--localstatedir=/var--enable-experimental--with-systemdsystemunitdir=/lib/systemd/system-- With-systemduserunitdir=/usr/lib/systemd

Reconfigure and finally done.

Attach the entire process of configuration:

Checking for a bsd-compatible install .../usr/bin/install-cchecking whether build environment is sane ... yeschecking for Arm-strip ... nochecking for strip ... stripchecking for a thread-safe mkdir-p .../bin/mkdir-pchecking for gawk ... nocheck ing for Mawk ... mawkchecking whether make sets $ (make) ... yeschecking whether make supports nested variables ... Yescheckin G How to create a pax tar archive ... gnutarchecking for style's include used by make ... Gnuchecking for ARM-GCC ... arm-cortex_a9-linux-gnueabi-gcc-l/wsh_space/my_install/usr/lib/lib-i/wsh_space/my_ Install/usr/lib/includechecking whether the C compiler works ... yeschecking for C compiler default output file name ... a.o utchecking for suffix of executables ... checking whether we is cross compiling ... yeschecking for suffix of object files. .. Ochecking whether we are using the GNU C compiler ... yeschecking whether arm-cortex_a9-linux-gnueabi-gcc-l/wsh_space/my_i Nstall/usr/lib/lib-i/wsh_space/my_install/usr/lib/include AcceptS-g ... yeschecking for arm-cortex_a9-linux-gnueabi-gcc-l/wsh_space/my_install/usr/lib/lib-i/wsh_space/my_install/ Usr/lib/include option to accept ISO C89 ... none neededchecking dependency style of arm-cortex_a9-linux-gnueabi-gcc-l/wsh _space/my_install/usr/lib/lib-i/wsh_space/my_install/usr/lib/include ... gcc3checking how to run the C preprocessor ... Arm-cortex_a9-linux-gnueabi-gcc-l/wsh_space/my_install/usr/lib/lib-i/wsh_space/my_install/usr/lib/include-  Echecking for grep that handles long lines and-e .../bin/grepchecking for egrep .../bin/grep-echecking for ANSI C header Files ... yeschecking for sys/types.h ... yeschecking for sys/stat.h ... yeschecking for stdlib.h ... yeschecking for string. H ... yeschecking for memory.h ... yeschecking for strings.h ... yeschecking for inttypes.h ... yeschecking for stdint.h ... ye Schecking for unistd.h ... yeschecking minix/config.h usability ... nochecking minix/config.h presence ... nochecking for MI Nix/config.h nochecking Whether it is safe tO Define __extensions__ ... yeschecking whether make supports nested variables ... (cached) yeschecking whether to enable maintainer-specific portions of makefiles ... nochecking for arm-pkg-config ... noche cking for Pkg-config .../usr/bin/pkg-configchecking pkg-config are at least version 0.9.0 ... Yeschecking for C + + Restrict keyword ... __restrictchecking for arm-gcc ... (cached) arm-cortex_a9-linux-gnueabi-gcc-l/wsh_space/my_install/usr/lib/lib-i/wsh_space/my_install/usr/lib/ Includechecking whether we are using the GNU C compiler ... (cached) yeschecking whether Arm-cortex_a9-linux-gnueabi-gcc-l/wsh_space/my_install/usr/lib/lib-i/wsh_space/my_ Install/usr/lib/include accepts-g ... (cached) Yeschecking for Arm-cortex_a9-linux-gnueabi-gcc-l/wsh_space/my_install/usr/lib/lib-i/wsh_space/my_ Install/usr/lib/include option to accept ISO C89 ... (cached) None neededchecking dependency style of Arm-cortex_a9-linux-gnueabi-gcc-l/wsh_space/my_install/usr/lib/lib- i/wsh_space/my_install/usr/lib/Include ... (cached) gcc3checking whether Arm-cortex_a9-linux-gnueabi-gcc-l/wsh_space/my_install/usr/lib/lib-i/wsh_space/my_ Install/usr/lib/include and CC understand-c and-o together ... yeschecking whether ARM-CORTEX_A9-LINUX-GNUEABI-GCC-L/WS H_space/my_install/usr/lib/lib-i/wsh_space/my_install/usr/lib/include accepts-fpie ... yeschecking build system type ... arm-cortex_a9-linux-gnueabichecking host system type ... arm-unknown-nonechecking how to print strings ... Printfchecking for a sed this does not truncate output .../bin/sedchecking for fgrep .../bin/grep-fchecking for LD used B Y arm-cortex_a9-linux-gnueabi-gcc-l/wsh_space/my_install/usr/lib/lib-i/wsh_space/my_install/usr/lib/include .../ Usr/local/arm/arm-cortex_a9-eabi-4.7/arm-cortex_a9-linux-gnueabi/bin/ldchecking if the linker (/usr/local/arm/ ARM-CORTEX_A9-EABI-4.7/ARM-CORTEX_A9-LINUX-GNUEABI/BIN/LD) is GNU ld ... Yeschecking for bsd-or ms-compatible name Lister (nm) ... nochecking for arm-dumpbin ... nochecking for Arm-linK ... nochecking for dumpbin ... nochecking for link ... link-dumpchecking the name Lister (nm) interface ... BSD nmchecking whether Ln-s works ... yeschecking the maximum length of command line arguments ... 1572864checking whether the shell understands some XSI constructs ... yeschecking whether the shell understands "+ =" ... yes Checking how to convert Arm-cortex_a9-linux-gnueabi file names to Arm-unknown-none format ... func_convert_file_ Noopchecking How to convert Arm-cortex_a9-linux-gnueabi file names to toolchain format ... func_convert_file_noopchecking FOR/USR/LOCAL/ARM/ARM-CORTEX_A9-EABI-4.7/ARM-CORTEX_A9-LINUX-GNUEABI/BIN/LD option to reload object files ...- Rchecking for Arm-objdump ... nochecking for objdump ... objdumpchecking how to recognize dependent libraries ... Unknownchec King for Arm-dlltool ... nochecking for dlltool ... nochecking how to associate Runtime and link libraries ... printf%s\nche cking for Arm-ar ... Nochecking for ar ... Archecking for archiver @FILE support ... @checking for Arm-strip ... stripchecking for arm-ranlib ... nochecking for ranlib ... ranlibchecking command to parse NM output From Arm-cortex_a9-linux-gnueabi-gcc-l/wsh_space/my_install/usr/lib/lib-i/wsh_space/my_install/usr/lib/include Object ... okchecking for sysroot ... nochecking for arm-mt ... Nochecking for MT ... mtchecking If MT is a manifest tool ... nochecking for dlfcn.h ... yeschecking for objdir .... libschecking if arm-cortex_a9-linux-gnueabi-gcc-l/wsh_space/my_install/usr/lib/lib-i/wsh_space/my_install/usr/ Lib/include supports-fno-rtti-fno-exceptions ... nochecking for Arm-cortex_a9-linux-gnueabi-gcc-l/wsh_space/my_ Install/usr/lib/lib-i/wsh_space/my_install/usr/lib/include option to produce PIC ...-fpic-dpicchecking if arm-cortex_ A9-linux-gnueabi-gcc-l/wsh_space/my_install/usr/lib/lib-i/wsh_space/my_install/usr/lib/include PIC Flag-fpic- Dpic works ... yeschecking if Arm-cortex_a9-linux-gnueabi-gcc-l/wsh_space/my_install/usr/lib/lib-i/wsh_space/my_ Install/usr/lib/incluDe static flag-static works ... yeschecking if arm-cortex_a9-linux-gnueabi-gcc-l/wsh_space/my_install/usr/lib/lib-i/ Wsh_space/my_install/usr/lib/include supports-c-o file.o ... yeschecking if arm-cortex_a9-linux-gnueabi-gcc-l/wsh_ Space/my_install/usr/lib/lib-i/wsh_space/my_install/usr/lib/include supports-c-o file.o ... (cached) yeschecking whether the arm-cortex_a9-linux-gnueabi-gcc-l/wsh_space/my_install/usr/lib/lib-i/wsh_space/my _INSTALL/USR/LIB/INCLUDE Linker (/USR/LOCAL/ARM/ARM-CORTEX_A9-EABI-4.7/ARM-CORTEX_A9-LINUX-GNUEABI/BIN/LD) Supports shared libraries ... yeschecking WHETHER-LC should be explicitly linked in ... nochecking Dynamic linker characteristics ... nochecking how to hardcode library paths into programs ... immediatechecking W Hether stripping libraries is possible ... yeschecking if Libtool supports GKFX libraries ... nochecking whether to build Shared libraries ... nochecking whether to build static libraries ... yeschecking for SIGNALFD ... yeschecking for Clock_GetTime in-lrt ... yeschecking for pthread_create in-lpthread ... yeschecking for Dlopen in-ldl ... yeschecking for GLIB ... . Yeschecking for DBUS ... yeschecking d-bus configuration directory .../wsh_space/my_install/usr/lib/etcchecking d-bus System bus Services dir ... /wsh_space/my_install/usr/lib/share/dbus-1/system-serviceschecking D-bus session Bus Services dir ... /wsh_space/my_install/usr/lib/share/dbus-1/serviceschecking for UDEV ... yeschecking for udev_hwdb_new In-ludev ... Nochecking udev directory .../lib/udevchecking for ICAL ... yeschecking readline/readline.h usability ... yeschecking Readline/readline.h presence ... yeschecking for readline/readline.h ... yesconfigure:creating. Config.statusconfig.status:creating Makefileconfig.status:creating src/bluetoothd.8config.status:creating lib/ Bluez.pcconfig.status:creating Config.hconfig.status:config.h is unchangedconfig.status:executing depfiles commandsconfig.status:executing Libtool Commands
Here is a record, hoping to solve the problems other people have encountered.

Errors encountered in compiling bluez-5.25 and how to resolve them

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.