linuxbluetoothbluez

How to rebuild BlueZ


How can I rebuild BlueZ? Is it possible?

Let’s just say I want to change something in file 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?

Note: I am using Ubuntu 12.04 (Precise Pangolin)


Solution

  • The quickest way to do this is just to remake the whole BlueZ package with the following commands:

    ./configure
    make
    make install
    

    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.