[Qt-interest] Building from source on a G4 iMac

Dan White ygor at comcast.net
Thu May 19 03:04:33 CEST 2011


Thanks for the pointer

I believe I need to build from source as I want to work with SQLite  
and some of the classes from QtMobility

But I am having problems.

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 ?

On May 16, 2011, at 7:45 AM, Konstantin Tokarev wrote:

>
>
> 16.05.2011, 04:59, "Dan White" <ygor at comcast.net>:
>> A G4 iMac running Mac OS 10.5.8 (last version of Leopard) using XCode
>> 3.1.3 (last version that can run on a PPC)
>> Is is possible to build Qt 4.7.2 from scratch (from qt-everywhere-
>> opensource-src-4.7.2.tar.gz) ?
>
> Yes. You can build either Cocoa or Carbon version (or install  
> official Carbon build
> from here:
> http://qt.nokia.com/downloads/qt-for-open-source-cpp-development-on-mac-os-x/)
>
> -- 
> Regards,
> Konstantin




More information about the Qt-interest-old mailing list