I am writing C++ application which will be using libusb library. This application will be working on both linux and windows systems. Currently I am preparing application for windows system. I downloaded compiled libusb library, and I am linking it to my application. I am also using mingw compilers. Unfortunately while linker creates exe file it complains about missing __ms_vsnprintf functions. I think the libusb library I am linking was compiled in environment which was using missing functions. So I think building new libusb library on windows will solve that problem. In libusb repository (git://git.libusb.org/libusb.git) I found in file INSTALL_WIN, that I can build libusb using Visual Studio or Windows DDK/WDK. Unfortunately I can't install it. I also noticed, in root libusb directory there are some build linux scripts. Is there some other way to build libusb library without Visual Studio but only with mingw compilers?
Note: I am using Windows 7 64 bit
libusb ships with a Visual Studio project you can use to build libusb on Windows. They are located in the msvc folder, an example is libusb_dll_2017.vcxproj.
Easier still, libusb has also been integrated in vcpkg, so you can just run vcpkg install libusb to get started.
Related
I was trying to install PyQt on my MacOS. With SIP installed, an error occurred when python3 PyQt-gpl-5.4/configure.py inputted:
Error: Use the --qmake argument to explicitly specify a working Qt qmake.
It seems that Qt should be installed before PyQt. There're many optional components in the installation of Qt:
-Qt 5.4
--clang 64-bit
--source components
---Add-Ons
---Essentials
--.....
Which components should I choose for installing qmake??
qmake is the executable that is included with any version of the qt libraries; and there is a different version of qmake for each compiler the Qt Libraries are built with/against. On a mac, and for building projects that run on OSX, you will probably want clang x64. And you will find qmake under ~/Qt/5.x/clang_64/bin It will also install qt creator (I don't think you can uncheck it), but you don't need all the extras besides that.
Building with qmake often needs XCode installed and the Command Line Tools (CLT) to use its included compiler. With Python, you probably won't need the compiler, unless you need to build some of its libraries.
Hope that helps.
I want to compile the lm4flash tool for my Stellaris Launchpad, but when I run the make command, it returns an error, because libusb 1.0 isn't installed.
How can I register the libusb library on pkg-config (I only have the bare dev-library you can download from their website)?
I tried to search for a solution with Google, but I couldn't find a answer.
I'm using Windows 7 and already installed pkg-config, a cross compiler (for ARM) and MinGW.
Thank you for help,
Turakar
I am trying to build mDNSResponder on MinGW for a very important project. I have MinGW installed and I've downloaded the latest version of mDNSResponder from Apple's site. There doesn't seem to be any way to build for MinGW. Also, it appears to require pthreads in order to build
I also found the Bonjour SDK, but it seems like it only has MSVC compatible libraries in it and when I try to use reimp in MinGW to convert them to DLLs I get the "invalid or corrupt library" error back. Presumably this is because MS changes it's name mangling scheme on occasion.
Any help at all would be appreciated!
Greg
I have attempted compiling libgcrypt 1.5.0 with MinGW32 on Windows 7 to no avail. I have already installed the GCC C/C++ compiler and binutils as part of MinGW32, but when I enter autogen.sh --build-w32 it tells me that there is no cross compiler kit installed...?
Despite searching around for answers, I still do not have a clue as to what is going on. How on earth do you compile libgcrypt with MinGW32? And why is it so stupidly difficult? Most standard libs usually provide a Visual Studio project, but the only Visual Studio project I can find for libgcrypt is extremely dated (1.2.2).
The --build-w32 switch is for compiling for Windows on Linux. The readme doesn't mention compiling for Windows on Windows.
I would say try autogen.sh with no arguments and hope it works.
If that doesn't work, install Linux I guess. :/
I have a Qt application that I can compile in Ubuntu 10.04 64-bit and on Windows. However, I would like to avoid switching to Windows every time I want to compile the Windows version.
Is there a way I can compile a Windows Qt executable in Ubuntu with mingw32 or something?
Further, is there a way to integrate that compiler into Qt Creator?
There is a PPA (Personal Package Archive) for some people who are cross-compiling Qt and related software on Ubuntu for Windows. The PPA contains both the cross-compilers and the dependencies you will need to cross-compile Qt programs. If you look at the source packages there, I think you will be able to figure out how to configure your projects and build them.
If you most of your time spend coding with Qt on Linux (for example, Ubuntu), you may produce some experiment: install Wine, install Qt SDK for Windows with Wine and tried to build some simple project!
And if you don't like crazy things, which I wrote above, just use VirtualBox.