- macOS 11+
- Homebrew
g++orclang++with C++17 support- Qt 6
- PostgreSQL client libraries
libpqxx(C++ PostgreSQL wrapper)
brew install qt libpqxx- Windows 10 or 11
- vcpkg (C++ package manager)
- C++17-compatible compiler (Visual Studio with MSVC or MinGW)
- PostgreSQL access (Supabase or local)
- Qt 6
Install libpqxx using vcpkg:
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.bat
vcpkg install libpqxxg++ -std=c++17 -fPIC -Wno-unknown-attributes -Wno-deprecated-declarations \
main.cpp MainWindow.cpp CustomerDialog.cpp ProviderDialog.cpp InvoiceDialog.cpp ServiceDialog.cpp \
moc_MainWindow.cpp moc_CustomerDialog.cpp moc_ProviderDialog.cpp moc_InvoiceDialog.cpp moc_ServiceDialog.cpp \
Customer.cpp Provider.cpp Service.cpp Invoice.cpp Bill.cpp \
-I/opt/homebrew/include \
-I/opt/homebrew/opt/libpqxx/include \
-I/opt/homebrew/opt/libpq/include \
-L/opt/homebrew/lib \
-L/opt/homebrew/opt/libpqxx/lib \
-L/opt/homebrew/opt/libpq/lib \
$(pkg-config --cflags --libs Qt6Widgets) \
-lpqxx -lpq \
-o utility_gui
Run the program:
./utility_guig++ -std=c++17 -fPIC ^
main.cpp MainWindow.cpp moc_MainWindow.cpp ^
Customer.cpp Provider.cpp Service.cpp Invoice.cpp Bill.cpp ^
-I[path_to_vcpkg]/installed/x64-windows/include ^
-L[path_to_vcpkg]/installed/x64-windows/lib ^
-lpqxx -lpq ^
-o utility_gui.exe
Run the program:
./utility_gui.exe
Replace
[path_to_vcpkg]with your actual vcpkg path (e.g.,C:/dev/vcpkg).