: ) sorry, my linux no chinese input.
i download qt-x11-opensource-src-4.1.1.tar.gz try to compile in redhat.
my step:
cd /usr/local
tar xf qt-x11-version.tar
mv qt-version qt
QTDIR=/usr/local/qt
PATH=$QTDIR/bin:$PATH
MANPATH=$QTDIR/man:$MANPATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export QTDIR PATH MANPATH LD_LIBRARY_PATH
./configure
gmake
error information:
gmake[5]: Entering directory `/usr/local/qt/src/plugins/sqldrivers/psql'
g++ -c -pipe -g -D_REENTRANT -Wall -W -fPIC -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../mkspecs/linux-g++ -I. -I../../../../include/QtCore -I../../../../include/QtSql -I../../../../include -I.moc/debug-shared -I. -o .obj/debug-shared/main.o main.cpp
g++ -c -pipe -g -D_REENTRANT -Wall -W -fPIC -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_PLUGIN -DQT_SQL_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -I../../../../mkspecs/linux-g++ -I. -I../../../../include/QtCore -I../../../../include/QtSql -I../../../../include -I.moc/debug-shared -I. -o .obj/debug-shared/qsql_psql.o ../../../sql/drivers/psql/qsql_psql.cpp
../../../sql/drivers/psql/qsql_psql.cpp: In member function `virtual QVariant
QPSQLResult::data(int)':
../../../sql/drivers/psql/qsql_psql.cpp:303: `PQfreemem' undeclared (first use
this function)
i try grep "PQfreemem", but found nothing.
please help~~~
[ 此贴被XChinux在2006-03-16 11:58重新编辑 ]