How to install qt libraries in Qt creator in windows?

58 Views Asked by At

I am trying to install qren libraries in Qt creator to generate a QR code from a string.

I tried downloading the git repo but it is not working. After downloading the git repo there is no lib files to choose in Qt creator. So how do I can install the required libraries in Qt and use it for my purpose?

The git repo that i am using:https://github.com/fukuchi/libqrencode

Qt creator image Next option is not enabled

1

There are 1 best solutions below

1
André Lehto On

It looks like you are misunderstanding how repositories work. What you are looking for is a binary. A repository rarely (and shouldn't) contain binaries, but rather the source code from which you can build said binaries.

Looking at the repository that you linked, there are multiple ways of getting said binaries.

  1. Build them yourself using CMake; you will find the instruction inside the README of the repository.
  2. Install it using vcpkg; the instructions are once again found in the README of the repository.

vcpkg instructions from the repository:

git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
./vcpkg integrate install
./vcpkg install libqrencode

If you are working on Windows, using vcpkg is most likely the most painless way of getting the binaries you want.