My first custom Dreambox package

  • Hi all!


    I try to build a package with a c program that uses libusb by including <usb.h>. Although I added the DEPENDS line and in my bb file and the option -l usb to the compiler call (see below), the compilation failes with "error: usb.h: No such file or directory".


    Some hints:


    - I can imagine when I built the package at the first time, the dependencies of libusb have been parsed successfully.
    - Compiling that program on my Ubuntu machine works perfectly.


    Any suggestions from the professionals? :smiling_face:


    Here is my bb-file:




    edit: Meanwhile I looked into some other Packages that use the c compiler. There is an additional entry ${CFLAGS} ${LDFLAGS}. I changed the corresponding line and now it looks like this:


    Code
    ${CC} ${CFLAGS} ${LDFLAGS} vitalwerterfassung.c -o vitalwerterfassung.out



    The error that is produced now looks a little different, but seems to point to the same problem as certain libusb-specific functions can not be found:



    Einmal editiert, zuletzt von Frighty_KH ()

  • This bb-File now got compiled. The "-lusb" was missing in the modified version. Thanks for listening :grinning_squinting_face: