Error while compiling static Qt 5.10.0 with PostgreSQL

前端 未结 1 1937
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-28 03:22

I\'m trying to compile Qt 5.10.0 with PostgreSQL 10 (or 9.2, but same error) using mingw on Windows 7.

However when I include the psql include and lib dirs I always get

相关标签:
1条回答
  • 2021-01-28 03:53

    It seems like you haven't built Qt recently (post 5.8) - the -I and -L configuration syntax is no longer supported.

    For me postgres just works, all I need is the -sql-psql configuration flag and the library in my system path.

    If that alone doesn't work, you could specify the paths via the addition of the following configuration flags:

    PSQL_INCDIR=C:\POSTGRESQL\10\include
    PSQL_LIBDIR=C:\POSTGRESQL\10\lib
    
    0 讨论(0)
提交回复
热议问题