1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

[SOLVED] please help how to compile libsub-1.0 ?

Discussion in 'Asuswrt-Merlin' started by dony71, Dec 6, 2019.

  1. dony71

    dony71 Occasional Visitor

    Joined:
    Nov 27, 2019
    Messages:
    23
    I want to cross compile this utility below, but it needs libusb-1.0
    https://github.com/nekromant/pl2303gpio

    I check brcm-arm toolchain, but doesn't have ready to use libusb-1.0.so
    Anybody can tell me how to cross compile this?
     
  2. TheOldMan

    TheOldMan Senior Member

    Joined:
    Jan 24, 2013
    Messages:
    205
    Location:
    USA
  3. dony71

    dony71 Occasional Visitor

    Joined:
    Nov 27, 2019
    Messages:
    23
    I checked further and found out in fact libusb-1.0 is already available in ~/asus-merlin.ng/release/src/router/libusb10
    however this is not the same source like in https://libusb.info
    There is no function libusb_get_port_number()
     
  4. dony71

    dony71 Occasional Visitor

    Joined:
    Nov 27, 2019
    Messages:
    23
    I think I found libusb-1.0 to use which is in directory
    asus-merlin.ng/release/src/router/arm-uclibc/install/libusb10/usr/lib
    then I manage to compile pl2303gpio / cp2103gpio successfully
    however executing pl2303gpio, got segmentation fault
    I try to debug using valgrind and show this below
    Anybody can help what it means?
     
    Last edited: Dec 9, 2019
  5. dony71

    dony71 Occasional Visitor

    Joined:
    Nov 27, 2019
    Messages:
    23
    I compile natively and problem solved now