a1ien / libusb1-sys

MIT License
13 stars 10 forks source link

travis: Add a job without libusb-1.0 binaries #7

Closed otavio closed 4 years ago

otavio commented 4 years ago

The job ensures we can build libusb-1.0 from source, when it is not available on the build host.

Signed-off-by: Otavio Salvador otavio@ossystems.com.br

otavio commented 4 years ago

The job currently fails and it seems it exposes a problem when we build the library from source.

a1ien commented 4 years ago

Built without errors but fails on test. The problem is that we are linking to the system library and not to the compiled

otavio commented 4 years ago

Built without errors but fails on test. The problem is that we are linking to the system library and not to the compiled

Are you sure? I did not install the library so I assumed it'd not link to the system one.

a1ien commented 4 years ago

Are you sure? I did not install the library so I assumed it'd not link to the system one.

No, it's just a guess. I try tomorrow.

a1ien commented 4 years ago

What error you get? Main problem to build libusb on linux from source it's you need udev library. Without udev libusb use usbfs. And we fail test because usbfs deprecated. I think build libusb on linux from source in this project useless.

a1ien commented 4 years ago

Can you add

      addons:
        apt:
          packages:
            - libudev-dev

to commit

otavio commented 4 years ago

Thanks @a1ien, it did the trick.