luetzel / bluez

Fork of Bluez with patches to support PS3 Gasia/ Shanwan game controllers
http://luetzels.raspiblog.com
GNU General Public License v2.0
27 stars 9 forks source link

5.42 compilation error #2

Closed ianuxfr closed 7 years ago

ianuxfr commented 7 years ago

I've got compilation error:

make --no-print-directory all-am
  CC       client/main.o
make[1]: *** No rule to make target 'client/advertising.c', needed by 'client/advertising.o'.  Stop.
make[1]: *** Waiting for unfinished jobs....
  CC       client/agent.o
client/main.c:47:25: fatal error: advertising.h: No such file or directory
 #include "advertising.h"
                         ^
compilation terminated.
make[1]: *** [Makefile:5670: client/main.o] Error 1
make: *** [Makefile:3133: all] Error 2

Looking at bluez source, there is the following files in client directory:

$ ls src/bluez-5.42/client/
advertising.c  advertising.h  advertising.o  agent.c  agent.h  agent.o  display.c  display.h  display.o  gatt.c  gatt.h  main.c

but in your repo there is only:

$ ls src/bluez/client/
agent.c  agent.h  agent.o  display.c  display.h  display.o  gatt.c  gatt.h  main.c

Copying advertising.* from bluez source makes compilation error go away.

luetzel commented 7 years ago

Thank you! I've included the missing files.