Builing Qt Statically with PostgreSQL 9.6



  • Hi

    I am trying to build Qt Statically and building in the use of PostgreSQL 9.6. I have been following the guide on the QT website and have downloaded the source files and placed it in the directory D:\Qt

    I have ran the following commands:
    configure -commercial -release -static -platform win32-msvc2013 -qt-sql-psql -I "C:\Program Files (x86)\PostgreSQL\9.6\include" -L "C:\Program Files (x86)\PostgreSQL\9.6\lib" -l libpq -l ssleay32 -l postgres

    nmake

    On the nmake command I am getting the error:
    IntermNode.cpp
    ../../../3rdparty/angle/src/compiler/translator/IntermNode.cpp(1117) : error C2440: '?' : cannot convert from 'const TConstantUnion' to 'bool'
    No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
    ../../../3rdparty/angle/src/compiler/translator/IntermNode.cpp(1127) : error C2440: '?' : cannot convert from 'const TConstantUnion' to 'bool'
    No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
    error: stastus 2 from C:\Program Files (x86)\VC\Bin\cl.exe

    Any help would be greatly appriciated

    Thanks


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Since you have a commercial license, I'd recommend checking with the Qt Company. This error is likely completely unrelated to PostgreSQL although I'd recommend installing it in a folder without spaces. They can be tricky at time.


Log in to reply