Here's my configure:

Qt Code:
  1. ./configure \
  2. -opensource \
  3. -debug-and-release \
  4. -fast \
  5. -no-sql-mysql \
  6. -no-sql-db2 \
  7. -no-sql-ibase \
  8. -no-sql-db2 \
  9. -no-sql-ibase \
  10. -no-sql-mysql \
  11. -no-sql-oci \
  12. -no-sql-odbc \
  13. -no-sql-psql \
  14. -no-sql-sqlite2 \
  15. -no-sql-sqlite_symbian \
  16. -no-sql-tds \
  17. -system-sqlite \
  18. -no-qt3support \
  19. -no-dbus \
  20. -no-multimedia \
  21. -no-audio-backend \
  22. -no-phonon \
  23. -no-phonon-backend \
  24. -qt-zlib \
  25. -qt-gif \
  26. -qt-libtiff \
  27. -qt-libpng \
  28. -qt-libmng \
  29. -qt-libjpeg \
  30. -no-3dnow \
  31. -no-mmx \
  32. -no-sse \
  33. -no-sse2 \
  34. -no-sse3 \
  35. -no-ssse3 \
  36. -no-sse4.1 \
  37. -no-sse4.2 \
  38. -no-avx \
  39. -no-neon \
  40. -svg \
  41. -no-webkit \
  42. -verbose \
  43. -universal
To copy to clipboard, switch view to plain text mode 
And then when I build, I get the following errors:

Qt Code:
  1. cd sqlite/ && make -f Makefile
  2. "/Users/igor/dev/qt-4.7.2-carbon/bin/qmake" -spec /Users/igor/dev/
  3. qt-4.7.2-carbon/mkspecs/macx-g++ -o "/Users/igor/dev/qt-4.7.2-carbon/./
  4. src/plugins/sqldrivers/sqlite" "/Users/igor/dev/qt-4.7.2-carbon/src/
  5. plugins/sqldrivers/sqlite/sqlite.pro"
  6. cd "/Users/igor/dev/qt-4.7.2-carbon/./src/plugins/sqldrivers/sqlite"
  7. make Makefile
  8. make[4]: `Makefile' is up to date.
  9. make -f Makefile.Debug all
  10. g++ -c -pipe -Xarch_i386 -mmacosx-version-min=10.4 -Xarch_ppc -mmacosx-
  11. version-min=10.4 -g -gdwarf-2 -arch i386 -fvisibility=hidden -
  12. fvisibility-inlines-hidden -arch ppc -Wall -W -fPIC -
  13. DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_PLUGIN -DQT_SQL_LIB -
  14. DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -
  15. I../../../../mkspecs/macx-g++ -I. -I../../../../lib/QtCore.framework/
  16. Versions/4/Headers -I../../../../include/QtCore -I../../../../lib/
  17. QtSql.framework/Versions/4/Headers -I../../../../include/QtSql -
  18. I../../../../include -I.moc/debug-shared -F/Users/igor/dev/qt-4.7.2-
  19. carbon/lib -o .obj/debug-shared/smain.o smain.cpp
  20. g++ -c -pipe -Xarch_i386 -mmacosx-version-min=10.4 -Xarch_ppc -mmacosx-
  21. version-min=10.4 -g -gdwarf-2 -arch i386 -fvisibility=hidden -
  22. fvisibility-inlines-hidden -arch ppc -Wall -W -fPIC -
  23. DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_PLUGIN -DQT_SQL_LIB -
  24. DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_SHARED -
  25. I../../../../mkspecs/macx-g++ -I. -I../../../../lib/QtCore.framework/
  26. Versions/4/Headers -I../../../../include/QtCore -I../../../../lib/
  27. QtSql.framework/Versions/4/Headers -I../../../../include/QtSql -
  28. I../../../../include -I.moc/debug-shared -F/Users/igor/dev/qt-4.7.2-
  29. carbon/lib -o .obj/debug-shared/qsql_sqlite.o ../../../sql/drivers/
  30. sqlite/qsql_sqlite.cpp
  31. ../../../sql/drivers/sqlite/qsql_sqlite.cpp: In member function
  32. ‘virtual bool QSQLiteDriver::open(const QString&, const QString&,
  33. const QString&, const QString&, int, const QString&)’:
  34. ../../../sql/drivers/sqlite/qsql_sqlite.cpp:516: error:
  35. ‘SQLITE_OPEN_READWRITE’ was not declared in this scope
  36. ../../../sql/drivers/sqlite/qsql_sqlite.cpp:516: error:
  37. ‘SQLITE_OPEN_CREATE’ was not declared in this scope
  38. ../../../sql/drivers/sqlite/qsql_sqlite.cpp:526: error:
  39. ‘SQLITE_OPEN_READONLY’ was not declared in this scope
  40. ../../../sql/drivers/sqlite/qsql_sqlite.cpp:533: error:
  41. ‘sqlite3_open_v2’ was not declared in this scope
  42. ../../../sql/drivers/sqlite/qsql_sqlite.cpp: In member function
  43. ‘virtual bool QSQLiteDriver::open(const QString&, const QString&,
  44. const QString&, const QString&, int, const QString&)’:
  45. ../../../sql/drivers/sqlite/qsql_sqlite.cpp:516: error:
  46. ‘SQLITE_OPEN_READWRITE’ was not declared in this scope
  47. ../../../sql/drivers/sqlite/qsql_sqlite.cpp:516: error:
  48. ‘SQLITE_OPEN_CREATE’ was not declared in this scope
  49. ../../../sql/drivers/sqlite/qsql_sqlite.cpp:526: error:
  50. ‘SQLITE_OPEN_READONLY’ was not declared in this scope
  51. ../../../sql/drivers/sqlite/qsql_sqlite.cpp:533: error:
  52. ‘sqlite3_open_v2’ was not declared in this scope
  53. ../../../sql/drivers/sqlite/qsql_sqlite.cpp:544: warning: control
  54. reaches end of non-void function
  55. ../../../sql/drivers/sqlite/qsql_sqlite.cpp:544: warning: control
  56. reaches end of non-void function
  57. lipo: can't open input file: /var/folders/JE/JErK3OjGF302coDeImRYiE++
  58. +TI/-Tmp-//ccCyH9hl.out (No such file or directory)
  59. make[4]: *** [.obj/debug-shared/qsql_sqlite.o] Error 1
  60. make[3]: *** [debug-all] Error 2
  61. make[2]: *** [sub-sqlite-make_default] Error 2
  62. make[1]: *** [sub-sqldrivers-make_default] Error 2
  63. make: *** [sub-plugins-make_default-ordered] Error 2
To copy to clipboard, switch view to plain text mode 
I suspect the problem is related to this sequence of configure
parameters:
Qt Code:
  1. -no-sql-mysql \
  2. -no-sql-db2 \
  3. -no-sql-ibase \
  4. -no-sql-db2 \
  5. -no-sql-ibase \
  6. -no-sql-mysql \
  7. -no-sql-oci \
  8. -no-sql-odbc \
  9. -no-sql-psql \
  10. -no-sql-sqlite2 \
  11. -no-sql-sqlite_symbian \
  12. -no-sql-tds \
  13. -system-sqlite \
To copy to clipboard, switch view to plain text mode 
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 ?