Skip to content

Instantly share code, notes, and snippets.

@whynotavailable
Last active July 6, 2025 12:57
Show Gist options
  • Save whynotavailable/f373e5bf748e2fdfc770473fc67e9ab7 to your computer and use it in GitHub Desktop.
Save whynotavailable/f373e5bf748e2fdfc770473fc67e9ab7 to your computer and use it in GitHub Desktop.
QT Setup w/psql on mac
# install pg (not needed if it's already done, will set up a local server)
brew uninstall postgresql
set -gx PKG_CONFIG_PATH "/opt/homebrew/opt/postgresql@14/lib/postgresql@14/pkgconfig"
~/QtSources/6.9.1/Src/configure -sql-psql -- \
-DPostgreSQL_ROOT="/opt/homebrew/opt/postgresql@14"
cmake --build . --parallel
sudo cmake --install .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment