Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. libusb installation and usage in qtcreator

libusb installation and usage in qtcreator

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 3.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • GiorgiG Offline
    GiorgiG Offline
    Giorgi
    wrote on last edited by Giorgi
    #1

    Hi all. I am trying to install libusb on qt. After long time googling I've found that my .pro file need to add these lines. I got libusb from official site libusb:

    INCLUDEPATH += D:\my_files\Qt\resources\libusb-1.0.21\libusb
    LIBS += -L D:\my_files\Qt\resources\libusb-1.0.21\Win32\Debug\lib -llibusb-1.0

    So now I've got error undefined reference to `@__security_check_cookie@4'. After googling for a long time I found that I am missing something and need to link them. What to do and how to link these libraries? Does anyone knows step by step tutorial how to install and use libusb in qtcreator?

    jsulmJ 1 Reply Last reply
    0
    • GiorgiG Giorgi

      Hi all. I am trying to install libusb on qt. After long time googling I've found that my .pro file need to add these lines. I got libusb from official site libusb:

      INCLUDEPATH += D:\my_files\Qt\resources\libusb-1.0.21\libusb
      LIBS += -L D:\my_files\Qt\resources\libusb-1.0.21\Win32\Debug\lib -llibusb-1.0

      So now I've got error undefined reference to `@__security_check_cookie@4'. After googling for a long time I found that I am missing something and need to link them. What to do and how to link these libraries? Does anyone knows step by step tutorial how to install and use libusb in qtcreator?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Giorgi Remove the space between -L and D and remove lib prefix from -llibusb-1.0:

      LIBS += -LD:/my_files/Qt/resources/libusb-1.0.21/Win32/Debug/lib -lusb-1.0
      

      And use / instead of \

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved