Code Monkey home page Code Monkey logo

Comments (4)

nbgsmk avatar nbgsmk commented on August 20, 2024 1

Hello!
I was able to set it up like this:
Qt is installed in C:\Qt
Below left you see where my libusb is, and it's contents. On the right side I marked the two lines which I add to the Application.pro. Surely there is a more correct way, but once I got it working, I was afraid to touch it again. :-)

image

from librevna.

jankae avatar jankae commented on August 20, 2024

Hi,

did you install the QtCreator as well or did you setup your toolchain manually? (I believe going with the QtCreator is the easier option on Windows).
My current setup is slightly different than yours:

  • Qt Creator 4.13.2
  • Qt 5.15.1
  • MinGW81_64

My Qt installation directory is C:\Qt, so I copied the libusb-1.0.a to C:\Qt\5.15.1\mingw81_64\lib and the libusb.h to C:\Qt\5.15.1\mingw81_64\include\libusb

Your error message is from the linker, meaning your compiler finds the libusb.h, you must have copied it to the right place already. You also didn't forget a linker option (in that case the linker wouldn't look for the lib and you would get "undefined reference" errors). The '-lusb-1.0' is in the Application.pro file.

At the moment I can think of two things you could try:

  • Make sure you copied the correct .a file (32 vs 64bit). You mention MinGW73_64 so you only need the .a file from the MinGW64 folder
  • As a workaround you could put your .a file in any folder you like and add the following line to the Application.pro:
win32:LIBS += -L$ABSOLUTE_PATH_TO_THE_FOLDER$

This should fix the error for you but of course is not very portable.

from librevna.

alextsure avatar alextsure commented on August 20, 2024

Thanks for help,
after substitution of the local path to the libusb files the build goes without errors.

from librevna.

jankae avatar jankae commented on August 20, 2024

Glad to hear that :)

from librevna.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.