编译bluez-5.25遇到的错误及解决方法

更新时间:2023-06-29 08:59:56 阅读: 评论:0

编译bluez-5.25遇到的错误及解决⽅法
我这⾥在完成上⾯说的之后,编译bluez-5.25遇到的问题如下:
⾸先是找不到libudev。
安装完之后,再次配置出现error: libical is required的错误,找不到 libical 。
然后还有错误checking systemd system configure: error: systemd system unit directory is required,错误真多,烦死
⼈。
最后的配置命令是:./configure --prefix=/wsh_space/my_install/usr/lib/lib --host=arm --build=arm-cortex_a9-linux-gnueabi
CC=arm-cortex_a9-linux-gnueabi-gcc --sysconfdir=/etc --localstatedir=/var --enable-experimental --with-
systemdsystemunitdir=/lib/systemd/system --with-systemdurunitdir=/usr/lib/systemd
⼀定要注意CC后⾯的编译器,千万不要加上D-bus1.8.10,glib2.28.6,bluez-libs-3.36,bluez-utils-3.36这些库的安装路径,好像是
新版的bluez-5.25集成了⼀些东西,不再需要依赖bluez-libs-3.36提供的头⽂件,加上的话会报错的(sdp_lib.h的481⾏与sdpd-
request.c的225⾏,函数调⽤参数不匹配)。不添加安装路径就使⽤默认的路径,也就是在bluez-5.25/lib/bluetooth⽬录下的
sdp_lib.h(实际上是bluez-5.25/lib/⽬录下的sdp_lib.h),这个是正确的函数声明。
重新配置,终于⼤功告成。
附上配置的整个流程:
checking for a /usr/bin/install -c
全部歌曲checking whether build environment yes
checking no
checking strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking no
checking mawk
checking whether make ts $(MAKE)... yes
checking whether make supports yes
checking how to create a pax gnutar
checking for style of include ud GNU
checking arm-cortex_a9-linux-gnueabi-gcc -L/wsh_space/my_install/usr/lib/lib -I/wsh_space/my_install/usr/lib/include
checking whether the C yes
checking for C compiler default output a.out
checking for suffix
checking whether we are yes
checking for suffix of o
checking whether we are using the GNU yes
checking 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... yes
checking 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 none needed checking dependency style of arm-cortex_a9-linux-gnueabi-gcc -L/wsh_space/my_install/usr/lib/lib -I/wsh_space/my_install/usr/ gcc3
checking how to run the arm-cortex_a9-linux-gnueabi-gcc -L/wsh_space/my_install/usr/lib/lib -I/wsh_space/my_install/usr/lib/include -E checking for grep that handles long lines and -e... /bin/grep
checking /bin/grep -E
checking for ANSI C yes
checking for sys/ yes
checking for sys/ yes
checking for yes
checking for yes
checking for yes
checking for yes
checking for yes
checking for yes
checking for yes
checking for yes
checking minix/config. no
checking minix/config. no
checking for minix/ no
checking whether it is safe to define __EXTENSIONS__... yes
checking whether make supports (cached) yes
checking whether to enable maintainer-specific portions no
checking no
checking /usr/bin/pkg-config
checking pkg-config is at least version 0. yes
checking for C/C++ __restrict
checking (cached) arm-cortex_a9-linux-gnueabi-gcc -L/wsh_space/my_install/usr/lib/lib -I/wsh_space/my_install/usr/lib/include
checking whether we are using the GNU (cached) yes
checking 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) yes checking 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 (cached) non checking dependency style of arm-cortex_a9-linux-gnueabi-gcc -L/wsh_space/my_install/usr/lib/lib -I/wsh_space/my_install/usr/ (cached) gcc3 checking 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 togeth checking whether arm-cortex_a9-linux-gnueabi-gcc -L/wsh_space/my_install/usr/lib/lib -I/wsh_space/my_install/usr/lib/include accepts - yes
checking build arm-cortex_a9-linux-gnueabi
checking host arm-unknown-none
checking how to printf
checking for a d that does not /bin/d
checking /bin/grep -F
checking for ld ud by arm-cortex_a9-linux-gnueabi-gcc -L/wsh_space/my_install/usr/lib/lib -I/wsh_space/my_install/usr/ /usr/local/arm/arm-cortex_a9 checking if the linker (/usr/local/arm/arm-cortex_a9-eabi-4.7/arm-cortex_a9-linux-gnueabi/bin/ld) is yes
checking for BSD- or MS-compatible name lister (nm)... no
checking no
checking no
checking no
qq名片
checking link -dump
checking the name lister (nm) BSD nm
checking whether ln - yes
checking the maximum length of command line arguments (1572864)
checking whether the shell understands some yes
checking whether the shell understands "+="... yes
checking how to convert arm-cortex_a9-linux-gnueabi file names to func_convert_file_noop
checking how to convert arm-cortex_a9-linux-gnueabi file names to func_convert_file_noop
checking for /usr/local/arm/arm-cortex_a9-eabi-4.7/arm-cortex_a9-linux-gnueabi/bin/ld option to reload -r
checking no
checking objdump
甘肃麦积山checking how to recognize unknown
checking no
checking no
checking how to associate runtime and printf %s\n
checking no
checking ar
checking for archiver @ @
checking strip
checking no
清帐
checking ranlib
checking command to par nm output from arm-cortex_a9-linux-gnueabi-gcc -L/wsh_space/my_install/usr/lib/lib -I/wsh_space/my_install/usr/lib/ checking no
checking no
checking mt反义词是什么
checking if mt is a no
checking for yes
checking .libs
checking 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 - no checking 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 -fPIC -DPIC checking 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 - yes checking 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 - yes
checking 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 - yes
checking 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 - (cached) yes checking 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 checking whether -lc should be explicitly no
checking dynamic no
checking dynamic no
checking how to hardcode library paths immediate
checking whether stripping libraries yes
checking if libtool supports no
checking whether to build no
checking whether to build yes
checking yes
checking for clock_gettime in - yes
checking for pthread_create in - yes
checking for dlopen in - yes
水墨人物
checking yes
checking yes
checking D-Bus /wsh_space/my_install/usr/lib/etc
checking D-Bus system bus /wsh_space/my_install/usr/lib/share/dbus-1/system-rvices checking D-Bus ssion bus /wsh_space/my_install/usr/lib/share/dbus-1/rvices checking yes
checking for udev_hwdb_new in - no
checking /lib/udev
checking yes
学瑜伽要多少钱checking readline/readline. yes
checking readline/readline. yes
checking for readline/ yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/bluetoothd.8
config.status: creating lib/bluez.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
上⾯配置虽然没问题了,可是编译还是有问题的,如下:
obexd/plugins/phonebook-dummy.c:40:26: fatal error: libical/ical.h: 没有那个⽂件或⽬录解决⽅法是:没有了。
重来,前⾯都废了,编译不过去。安全出口英文

本文发布于:2023-06-29 08:59:56,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/82/1065302.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:路径   配置   遇到   错误   东西   加上
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图