How to use obex-data-server to transfer a file on ARM-xScale platform (原创)

2024-02-04 11:38

本文主要是介绍How to use obex-data-server to transfer a file on ARM-xScale platform (原创),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

1.
接上文 obex-data-server 已经运行起来了
接下来就可以运行obex-data-server/test 下的ods-dbus-test 来测试OPP 功能了
# ./ods-dbus-test 00:1B:FB:17:6B:E1 OPP /test.txt
** Message: CreateBluetoothSession ("00:1B:FB:17:6B:E1", "00:00:00:00:00:00", "OPP")
** Message: Object path: /org/openobex/session0
** Message: Session connected: /org/openobex/session0
** Message: SendFile ("/test.txt")
** (process:317): WARNING **: Error: Message did not receive a reply (timeout by message bus)

再看一下./obex-data-server 进程的log发现输出如下错误

** Message: session_connect_result_cb
** Message: LOCK
** Message: ods_filename_to_utf16 error: Conversion from character set 'UTF8' to 'UTF16BE' is not supported
Segmentation fault

 

2.
在完颜的提醒下,发现glib-2.18下确实没有把iconv的库编译进去。于是立即下载 libiconv-1.12 并编译
cross compile libiconv-1.12
./configure --host=arm-xscale-linux-gnu --prefix=/usr/arm-xscale-linux-gnu
make & make install

 

3.
重新编译glib-2.18
echo ac_cv_type_long_long=yes>arm-linux.cache
echo glib_cv_stack_grows=no>>arm-linux.cache
echo glib_cv_uscore=no>>arm-linux.cache
echo ac_cv_func_posix_getpwuid_r=yes>>arm-linux.cache
echo ac_cv_func_posix_getgrgid_r=yes>>arm-linux.cache
./configure --host=arm-xscale-linux-gnu --cache-file=arm-linux.cache --prefix=/usr/arm-xscale-linux-gnu --with-libiconv=gnu

configure出错
checking for libiconv_open in -liconv... no
configure: error: *** No iconv() implementation found in C library or libiconv


查看config.log
configure:8418: checking for libiconv_open in -liconv
configure:8453: arm-xscale-linux-gnu-gcc -o conftest -g -O2   conftest.c -liconv   >&5
/opt/gcc-4.1.2-glibc-2.4/arm-xscale-linux-gnu/lib/gcc/arm-xscale-linux-gnu/4.1.2/../../../../arm-xscale-linux-gnu/bin/ld: cannot find -liconv

发现iconv 根本不支持pkgconfig,参./configure --help的帮助 加入 CFLAGS LDFLA

这篇关于How to use obex-data-server to transfer a file on ARM-xScale platform (原创)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/677367

相关文章

解决JavaWeb-file.isDirectory()遇到的坑问题

《解决JavaWeb-file.isDirectory()遇到的坑问题》JavaWeb开发中,使用`file.isDirectory()`判断路径是否为文件夹时,需要特别注意:该方法只能判断已存在的文... 目录Jahttp://www.chinasem.cnvaWeb-file.isDirectory()遇

查询SQL Server数据库服务器IP地址的多种有效方法

《查询SQLServer数据库服务器IP地址的多种有效方法》作为数据库管理员或开发人员,了解如何查询SQLServer数据库服务器的IP地址是一项重要技能,本文将介绍几种简单而有效的方法,帮助你轻松... 目录使用T-SQL查询方法1:使用系统函数方法2:使用系统视图使用SQL Server Configu

SQL Server数据库迁移到MySQL的完整指南

《SQLServer数据库迁移到MySQL的完整指南》在企业应用开发中,数据库迁移是一个常见的需求,随着业务的发展,企业可能会从SQLServer转向MySQL,原因可能是成本、性能、跨平台兼容性等... 目录一、迁移前的准备工作1.1 确定迁移范围1.2 评估兼容性1.3 备份数据二、迁移工具的选择2.1

SQL Server使用SELECT INTO实现表备份的代码示例

《SQLServer使用SELECTINTO实现表备份的代码示例》在数据库管理过程中,有时我们需要对表进行备份,以防数据丢失或修改错误,在SQLServer中,可以使用SELECTINT... 在数据库管理过程中,有时我们需要对表进行备份,以防数据丢失或修改错误。在 SQL Server 中,可以使用 SE

Window Server创建2台服务器的故障转移群集的图文教程

《WindowServer创建2台服务器的故障转移群集的图文教程》本文主要介绍了在WindowsServer系统上创建一个包含两台成员服务器的故障转移群集,文中通过图文示例介绍的非常详细,对大家的... 目录一、 准备条件二、在ServerB安装故障转移群集三、在ServerC安装故障转移群集,操作与Ser

VMWare报错“指定的文件不是虚拟磁盘“或“The file specified is not a virtual disk”问题

《VMWare报错“指定的文件不是虚拟磁盘“或“Thefilespecifiedisnotavirtualdisk”问题》文章描述了如何修复VMware虚拟机中出现的“指定的文件不是虚拟... 目录VMWare报错“指定的文件不是虚拟磁盘“或“The file specified is not a virt

SQL Server数据库磁盘满了的解决办法

《SQLServer数据库磁盘满了的解决办法》系统再正常运行,我还在操作中,突然发现接口报错,后续所有接口都报错了,一查日志发现说是数据库磁盘满了,所以本文记录了SQLServer数据库磁盘满了的解... 目录问题解决方法删除数据库日志设置数据库日志大小问题今http://www.chinasem.cn天发

提示:Decompiled.class file,bytecode version如何解决

《提示:Decompiled.classfile,bytecodeversion如何解决》在处理Decompiled.classfile和bytecodeversion问题时,通过修改Maven配... 目录问题原因总结问题1、提示:Decompiled .class file,China编程 bytecode

论文翻译:arxiv-2024 Benchmark Data Contamination of Large Language Models: A Survey

Benchmark Data Contamination of Large Language Models: A Survey https://arxiv.org/abs/2406.04244 大规模语言模型的基准数据污染:一项综述 文章目录 大规模语言模型的基准数据污染:一项综述摘要1 引言 摘要 大规模语言模型(LLMs),如GPT-4、Claude-3和Gemini的快

red5-server源码

red5-server源码:https://github.com/Red5/red5-server