如何重建bluez [英] How to rebuild bluez
问题描述
如何重建bluez?是否有可能?可以说,例如,我想更改avctp.c中的某些内容.我从他们的网站上下载了最新的bluez版本,并进行了所需的更改.现在,我如何使更改生效?即,我需要做什么来重建蓝牙?
How can I rebuild bluez? Is it possible? Lets just say I want to change something in avctp.c for example. I download the latest bluez release from their website and make the change I need to make. Now, how do I get the changes to be effective; i.e. what do I need to do to rebuild bluetoothd?
注意:我正在使用Ubuntu 12.04
Note: I am using Ubuntu 12.04
推荐答案
最快的方法是使用以下命令重新制作整个bluez软件包:
The quickest way to do this is just to remake the whole bluez package with the following commands:
./configure
make
make install
此后,您可以使用./bluetoothd
从/src目录运行配置的蓝牙可执行文件,或者将/usr/sbin中的蓝牙替换为/src中的蓝牙可执行文件,以便每次bluetoothd
命令被通过后,将调用新配置的可执行文件.
After that, you can run the configured bluetoothd executable form the /src directory by using ./bluetoothd
, or replacing the bluetoothd in /usr/sbin with the bluetoothd executable in /src so that every time the bluetoothd
command is passed, the new configured executable is called.
希望这会有所帮助.
这篇关于如何重建bluez的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!