PDA

View Full Version : Trying to build customized 4.7.2 on a G4 iMac running Leopard (10.5)



igor
25th May 2011, 20:07
Here's my configure:


./configure \
-opensource \
-debug-and-release \
-fast \
-no-sql-mysql \
-no-sql-db2 \
-no-sql-ibase \
-no-sql-db2 \
-no-sql-ibase \
-no-sql-mysql \
-no-sql-oci \
-no-sql-odbc \
-no-sql-psql \
-no-sql-sqlite2 \
-no-sql-sqlite_symbian \
-no-sql-tds \
-system-sqlite \
-no-qt3support \
-no-dbus \
-no-multimedia \
-no-audio-backend \
-no-phonon \
-no-phonon-backend \
-qt-zlib \
-qt-gif \
-qt-libtiff \
-qt-libpng \
-qt-libmng \
-qt-libjpeg \
-no-3dnow \
-no-mmx \
-no-sse \
-no-sse2 \
-no-sse3 \
-no-ssse3 \
-no-sse4.1 \
-no-sse4.2 \
-no-avx \
-no-neon \
-svg \
-no-webkit \
-verbose \
-universal

And then when I build, I get the following errors:


cd sqlite/ && make -f Makefile
"/Users/igor/dev/qt-4.7.2-carbon/bin/qmake" -spec /Users/igor/dev/
qt-4.7.2-carbon/mkspecs/macx-g++ -o "/Users/igor/dev/qt-4.7.2-carbon/./
src/plugins/sqldrivers/sqlite" "/Users/igor/dev/qt-4.7.2-carbon/src/
plugins/sqldrivers/sqlite/sqlite.pro"
cd "/Users/igor/dev/qt-4.7.2-carbon/./src/plugins/sqldrivers/sqlite"
make Makefile
make[4]: `Makefile' is up to date.
make -f Makefile.Debug all
g++ -c -pipe -Xarch_i386 -mmacosx-version-min=10.4 -Xarch_ppc -mmacosx-
version-min=10.4 -g -gdwarf-2 -arch i386 -fvisibility=hidden -
fvisibility-inlines-hidden -arch ppc -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/macx-g++ -I. -I../../../../lib/QtCore.framework/
Versions/4/Headers -I../../../../include/QtCore -I../../../../lib/
QtSql.framework/Versions/4/Headers -I../../../../include/QtSql -
I../../../../include -I.moc/debug-shared -F/Users/igor/dev/qt-4.7.2-
carbon/lib -o .obj/debug-shared/smain.o smain.cpp
g++ -c -pipe -Xarch_i386 -mmacosx-version-min=10.4 -Xarch_ppc -mmacosx-
version-min=10.4 -g -gdwarf-2 -arch i386 -fvisibility=hidden -
fvisibility-inlines-hidden -arch ppc -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/macx-g++ -I. -I../../../../lib/QtCore.framework/
Versions/4/Headers -I../../../../include/QtCore -I../../../../lib/
QtSql.framework/Versions/4/Headers -I../../../../include/QtSql -
I../../../../include -I.moc/debug-shared -F/Users/igor/dev/qt-4.7.2-
carbon/lib -o .obj/debug-shared/qsql_sqlite.o ../../../sql/drivers/
sqlite/qsql_sqlite.cpp
../../../sql/drivers/sqlite/qsql_sqlite.cpp: In member function
‘virtual bool QSQLiteDriver::open(const QString&, const QString&,
const QString&, const QString&, int, const QString&)’:
../../../sql/drivers/sqlite/qsql_sqlite.cpp:516: error:
‘SQLITE_OPEN_READWRITE‚Äà ƒÂ´ was not declared in this scope
../../../sql/drivers/sqlite/qsql_sqlite.cpp:516: error:
‘SQLITE_OPEN_CREATE’ was not declared in this scope
../../../sql/drivers/sqlite/qsql_sqlite.cpp:526: error:
‘SQLITE_OPEN_READONLY‚Äà ´ was not declared in this scope
../../../sql/drivers/sqlite/qsql_sqlite.cpp:533: error:
‘sqlite3_open_v2’ was not declared in this scope
../../../sql/drivers/sqlite/qsql_sqlite.cpp: In member function
‘virtual bool QSQLiteDriver::open(const QString&, const QString&,
const QString&, const QString&, int, const QString&)’:
../../../sql/drivers/sqlite/qsql_sqlite.cpp:516: error:
‘SQLITE_OPEN_READWRITE‚Äà ƒÂ´ was not declared in this scope
../../../sql/drivers/sqlite/qsql_sqlite.cpp:516: error:
‘SQLITE_OPEN_CREATE’ was not declared in this scope
../../../sql/drivers/sqlite/qsql_sqlite.cpp:526: error:
‘SQLITE_OPEN_READONLY‚Äà ´ was not declared in this scope
../../../sql/drivers/sqlite/qsql_sqlite.cpp:533: error:
‘sqlite3_open_v2’ was not declared in this scope
../../../sql/drivers/sqlite/qsql_sqlite.cpp:544: warning: control
reaches end of non-void function
../../../sql/drivers/sqlite/qsql_sqlite.cpp:544: warning: control
reaches end of non-void function
lipo: can't open input file: /var/folders/JE/JErK3OjGF302coDeImRYiE++
+TI/-Tmp-//ccCyH9hl.out (No such file or directory)
make[4]: *** [.obj/debug-shared/qsql_sqlite.o] Error 1
make[3]: *** [debug-all] Error 2
make[2]: *** [sub-sqlite-make_default] Error 2
make[1]: *** [sub-sqldrivers-make_default] Error 2
make: *** [sub-plugins-make_default-ordered] Error 2

I suspect the problem is related to this sequence of configure
parameters:

-no-sql-mysql \
-no-sql-db2 \
-no-sql-ibase \
-no-sql-db2 \
-no-sql-ibase \
-no-sql-mysql \
-no-sql-oci \
-no-sql-odbc \
-no-sql-psql \
-no-sql-sqlite2 \
-no-sql-sqlite_symbian \
-no-sql-tds \
-system-sqlite \

Did I mess this up or what ?
I only want the sqlite that is installed with MacOS, and that is sqlite3 (--version says 3.4.0)
Without all the other --no-sqlxxx flags, it tried to build them all.

Any clues for this clueless one ? :confused: