2

When compiling psql with following command:

cd %QTDIR%\src\plugins\sqldrivers\psql
qmake "INCLUDEPATH+=D:\Program Files\PostgreSQL\8.3\include" "LIBS+=D:\Program Files\PostgreSQL\8.3\lib\libpq.lib" psql.pro
make

I got following message:

... g++: Files\PostgreSQL\8.3\lib -Lc:\Qt\2010.05\qt\lib tmp\obj\debug_shared\qsqlpsqld_resource_res.o D:\Progra~1\PostgreSQL\8.3\lib\libpq.lib -lQtSqld4 -lQtCored4 : Invalid argument  
make[1]: *** [..\..\..\..\plugins\sqldrivers\qsqlpsqld4.dll] Error 1  
make[1]: Leaving directory `C:/Qt/2010.05/qt/src/plugins/sqldrivers/psql'  
make: *** [debug-all] Error 2

Replacement D:\Program Files -> D:\Progra~1 doesn't change anything. How to solve that problem?

2 Answers 2

1

Try using single quotes instead of double quotes in the qmake invocation. If that fails, try using forward slashes instead of backslashes in the path.

Sign up to request clarification or add additional context in comments.

Comments

1

Commands should be:

cd %QTDIR%\src\plugins\sqldrivers\psql
qmake "INCLUDEPATH+=D:\Progra~1\PostgreSQL\8.3\include" "LIBS+=D:\Progra~1\PostgreSQL\8.3\lib\libpq.lib" psql.pro

then it is needed to manually fix Makefiles (Debug and Release) to exclude all occurencies of space in dirname, then run

make

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.