Comments (4)
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. :-)
from librevna.
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.
Thanks for help,
after substitution of the local path to the libusb files the build goes without errors.
from librevna.
Glad to hear that :)
from librevna.
Related Issues (20)
- Request for *OPC? : Operation complete Check. HOT 3
- Signal Generator Output drifting w.r.t. Ref Out HOT 4
- [Proposal] PC_Application: Replacing QMake with CMake HOT 7
- Mistake in calculation of quality factor HOT 5
- Spikes at 31MHz and 62MHz HOT 2
- cannot click "edit" button which is on the left bottom HOT 3
- v1.5 and later segmented sweeps don't work HOT 1
- The ConnectToFirstDevice functionality does not respect the restricted device list created by the command line option HOT 4
- Inability to view S11, S22, S33 of s3p file on Smith chart. HOT 2
- MacOS GUI Marker drowdown HOT 7
- v1.5.0 not working on macos HOT 18
- Firmware Update Fails HOT 7
- Can not run on win7 64bit HOT 7
- GUI_Windows-v1.5.0 not working under Win7 HOT 3
- Qt6 compilation of LibreVNA-GUI HOT 5
- GUI Window cannot connect to LibreVNA HOT 5
- PyVISA-py support for LibreVNA HOT 10
- NanoVNA-H HW: 3.61_SM-ST not detected with LibreVNA-GUI v 1.5.1 HOT 3
- Make SCPI interface more standard HOT 17
- Add keyboard shortcut for CSV export HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from librevna.