fatal error: bluetooth/bluetooth.h: No such file or directory

1809 ワード

羅技f 710駆動のrosでのアプリケーションをテストする際に、最新のjoyコードをダウンロードし、コンパイルする際にこのような問題に遭遇した.
fatal error: bluetooth/bluetooth.h: No such file or directory 
joystick_drivers/wiimote/include/wiimote/wiimote_controller.h:52:35: 
fatal error: cwiid.h: No such file or directory compilation terminated.

一部のライブラリが完全にインストールされていないことがわかりました
解決方法:
sudo apt-get install libbluetooth-dev

実行中にエラーが発生しましたfatal error:cwiid.h: No such file or directory
github https://github.com/abstrakraft/cwiid/tree/mastercwiidソースをダウンロードし、次のコマンドのコンパイルインストールを実行します.
$ aclocal
$ autoconf
$ ./configure
$ make
$ sudo make install

実行./configureの場合、エラーが発生しました.configure:error:flex not found
$ ./configure 
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gawk... no
checking for mawk... mawk
checking for flex... no
checking for lex... no
configure: error: flex not found

解決策:flexのインストール
$ sudo apt-get install flex

実行を続行し、error:bison not foundをプロンプト
$ sudo apt-get install bison byacc

実行を続行./configure成功
次にmakeを実行します
warningはいくつかありますが無視できます
次はsudo make install、インストールに成功しました
次のコマンドで、インストールが完了したかどうかを確認し、ライブラリに追加します.
$ whereis cwiid.h
cwiid: /usr/local/etc/cwiid /usr/local/lib/cwiid

問題が解決する.joystick_driverパッケージのwiimoteパッケージのコンパイルに合格しました.