[Interest] Building Qt from source ('libpq-fe.h' file not found)

Nuno Santos nunosantos at imaginando.pt
Wed Jan 28 12:21:19 CET 2015


Hi,

I’m trying to build Qt from source.

I need to do this because I need to patch a bug since it’s fix will only be released in 5.4.1 and I can’t wait for it.

I wanted to build the required framework only but i’m not sure where it belongs to (qmacmime.mm from platfaform support)

So, I’m trying to build the whole Qt from source but i’m being faced with the following error:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -c -pipe -I/usr/local/Cellar/postgresql/9.3.5_1/include -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -std=c++11 -stdlib=libc++ -mmacosx-version-min=10.7 -fvisibility=hidden -fvisibility-inlines-hidden -fno-exceptions -Wall -W -fPIC -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_EVAL -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -I../../../../mkspecs/macx-clang -I. -I../../../../lib/QtCore.framework/Versions/5/Headers -I../../../../lib/QtCore.framework/Versions/5/Headers/5.4.0 -I../../../../lib/QtCore.framework/Versions/5/Headers/5.4.0/QtCore -I../../../../lib/QtSql.framework/Versions/5/Headers -I../../../../lib/QtSql.framework/Versions/5/Headers/5.4.0 -I../../../../lib/QtSql.framework/Versions/5/Headers/5.4.0/QtSql -I.moc/debug -F/Users/nsantos/Qt/5.4/Src/qtbase/lib -o .obj/debug/qsql_psql.o ../../../sql/drivers/psql/qsql_psql.cpp

../../../sql/drivers/psql/qsql_psql.cpp:51:10: fatal error: 'libpq-fe.h' file not found
#include <libpq-fe.h>
         ^
1 error generated.
MACKIE:Src nsantos$ 

I have already tried to install postgresql from MacPorts but it keeps failing.

Any ideas?

Thanks

Regards,

Nuno Santos


More information about the Interest mailing list