SQRC (show QR code) is simple utility that takes data from the clipboard and shows you QR code. It is very helpfull for transfering text data into you smartphone via QR code recognition.
You have to build it manually or take a look at Issues tab it could be that executable for your OS has already been built.
Used Qt SDK version 5.12.1.
Aquire source code with submodules:
$ git clone --recurse-submodules https://github.com/koutoftimer/sqrc.gitUse QtCreator or any other way to build c++/sqrc-qt/sqrc-qt.pro project.
Linux users can use build-app-image.sh to create AppImage bundle. It behaves much like staticaly
linked executable from user's perspective but take about 25% more space. On the other hand it is much faster
then compiling static Qt library.
- Download Qt sources v5.12.1. It can be fine to work with any 5.* but I was using 5.12.1, no other version were tested.
- Extract it and configure with
$ ./configure -opensource -confirm-license -release -static \
-c++std c++14 -nomake examples -nomake tests -nomake tools \
-prefix ./build
Windows users should use configure.bat instead.
3. Run make -j$(nproc) && make -j$(nproc) install. This will take a while.
- Go to sqrc's root directory.
- Make
builddirectory and go into it.
$ cd c++
$ mkdir build
$ cd build
- Launch
qmakebuilt with Qt
$ /path/to/Qt/build/bin/qmake ../src/sqrc.pro
- Build sqrc with
make. You can specifyreleaseoption, otherwise both release and debug versions will be in correcponding directories.
$ make -j$(nproc) release
Cross build for Windows with MXE
- Clone it or download archive for this commit https://github.com/mxe/mxe/tree/ecca1162cba6017c3b73348312cbebc83e3e47f3. You can use any, but I was lucky with this particular one.
- Check your system requirements for MXE
- Go to MXE's root directory and install Qt5 with following command
$ make -j$(nproc) qt5
This will take a while. 4. To build sqrc with MXE's Qt5 static library do
$ PATH="/path/to/mxe/usr/bin:$PATH" /path/to/mxe/i686-w64-mingw32.static/qt5/bin/qmake ../src/sqrc-qt.pro
$ PATH="/path/to/mxe/usr/bin:$PATH" make -j$(nproc)
You can specify release option, otherwise both release and debug versions will be in correcponding directories.
If you already have python on your working machine, you can download pythonic version from pip in single
command and start using it.
Using pip: pip install sqrc
You have to execute command line
$ sqrc
or use any other way to launch sqrc executable.
Utility consists from 3 external libraries:
pyperclipto access clipboard.qrcodeto qenerate QR code for data in the clipboard.Pillowto display generated image.
You should dive deaper to discover weak points but none of them is single man project. All dependencies have 20+ contributors. It is very unlikely to push some maleware into source code.
