How can build Qt 5.0.0 with postgresql driver ?



  • OS : Windows 7 Pro SP1 64 bit
    Compiler : VS2012 Ultimate Edition
    Configure Command :
    F:\Qt\5.0.0\sources\configure -opensource -confirm-license -platform win32-msvc2012 -nomake examples -nomake demos -debug-and-release -plugin-sql-psql -l libpq -I C:\Progra~2\PostgreSQL\9.2\include -L C:\Progra~2\PostgreSQL\9.2\lib

    I'm getting some error.

    F:\Qt\5.0.0\sources\qtwebkit\Source\JavaScriptCore\interpreter\Interpreter.h(215) : warning C4183: 'getOpcodeID': missing return type; assumed to be a member function returning 'int'
    F:\Qt\5.0.0\sources\qtwebkit\Source\JavaScriptCore\interpreter\Interpreter.h(217) : error C2061: syntax error : identifier 'Opcode'
    F:\Qt\5.0.0\sources\qtwebkit\Source\JavaScriptCore\interpreter\Interpreter.h(267) : error C2061: syntax error : identifier 'Opcode'
    F:\Qt\5.0.0\sources\qtwebkit\Source\JavaScriptCore\interpreter\Interpreter.h(202) : error C2065: 'id' : undeclared identifier
    F:\Qt\5.0.0\sources\qtwebkit\Source\JavaScriptCore\interpreter\Interpreter.h(213) : error C2065: 'opcode' : undeclared identifier
    F:\Qt\5.0.0\sources\qtwebkit\Source\JavaScriptCore\interpreter\Interpreter.h(267) : error C2065: 'opcode' : undeclared identifier
    F:\Qt\5.0.0\sources\qtwebkit\Source\JavaScriptCore\interpreter\Interpreter.h(267) : error C2065: 'op_call' : undeclared identifier
    F:\Qt\5.0.0\sources\qtwebkit\Source\JavaScriptCore\interpreter\Interpreter.h(267) : error C2065: 'op_construct' : undeclared identifier
    F:\Qt\5.0.0\sources\qtwebkit\Source\JavaScriptCore\interpreter\Interpreter.h(267) : error C2065: 'op_call_eval' : undeclared identifier
    OpaqueJSString.cpp
    C:\Progra~2\PostgreSQL\9.2\include\Opcode.h(151) : error C2065: 'Py_LT' : undeclared identifier
    C:\Progra~2\PostgreSQL\9.2\include\Opcode.h(151) : error C2065: 'Py_LE' : undeclared identifier
    C:\Progra~2\PostgreSQL\9.2\include\Opcode.h(151) : error C2065: 'Py_EQ' : undeclared identifier
    C:\Progra~2\PostgreSQL\9.2\include\Opcode.h(151) : error C2065: 'Py_NE' : undeclared identifier
    C:\Progra~2\PostgreSQL\9.2\include\Opcode.h(151) : error C2065: 'Py_GT' : undeclared identifier
    C:\Progra~2\PostgreSQL\9.2\include\Opcode.h(151) : error C2065: 'Py_GE' : undeclared identifier
    Generating Code...
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\cl.EXE"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe"' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: '(' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.
    NMAKE : fatal error U1077: 'cd' : return code '0x2'
    Stop.

    I think conflict with the postgresql libraries, how can i solve this problem ?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.