PDA

View Full Version : Qt 4.5 compilation error on OS X 10.5.6



serega
19th March 2009, 02:46
Hello all.
Are there any Mac users?

I tried several times to build Qt 4.5 on OS X 10.5.6 on Mac Book Pro,
but it always fails when compiling WebKit related code.

Here is my configure command
/configure -cocoa -arch x86_64 -no-cups -no-nis -debug-and-release -system-sqlite -no-qt3support -prefix /Users/sergey/Developer/Libs -platform macx-g++.

And the error
g++ -c -include .pch/debug-shared/QtWebKit_debug -pipe -fconstant-cfstrings -Wreturn-type -fno-strict-aliasing -I/opt/local/include -gdwarf-2 -fvisibility=hidden -fvisibility-inlines-hidden -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.5 -fPIC -DQT_SHARED -DBUILDING_QT__=1 -DUSE_SYSTEM_MALLOC -DNDEBUG -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DBUILD_WEBKIT -DENABLE_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DENABLE_DATABASE=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_XPATH=1 -DENABLE_WML=0 -DENABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_FILTERS=1 -DENABLE_SVG_FOREIGN_OBJECT=1 -DENABLE_SVG_ANIMATION=1 -DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENABLE_VIDEO=1 -DENABLE_NETSCAPE_PLUGIN_API=1 -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DWTF_CHANGES=1 -DBUILDING_QT__ -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../../../mkspecs/macx-g++ -I. -I../../../../include/QtCore -I../../../../include/QtNetwork -I../../../../include/QtGui -I../../../../include -Istorage -I../WebKit/qt/Api -I../../../../include/QtWebKit -I.rcc/debug-shared -I. -I../JavaScriptCore -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/interpreter -I../JavaScriptCore/bytecode -I../JavaScriptCore/debugger -I../JavaScriptCore/parser -I../JavaScriptCore/runtime -I/Users/sergey/Downloads/qt-mac-opensource-src-4.5.0/src/3rdparty/webkit/WebCore/../JavaScriptCore/bindings -I../JavaScriptCore/wrec -I../JavaScriptCore/jit -I../JavaScriptCore/wtf -Itmp -I../JavaScriptCore -I../JavaScriptCore/parser -I../JavaScriptCore/bytecompiler -I../JavaScriptCore/debugger -I../JavaScriptCore/runtime -I../JavaScriptCore/wtf -I../JavaScriptCore/wtf/unicode -I../JavaScriptCore/interpreter -I../JavaScriptCore/jit -I../JavaScriptCore/profiler -I../JavaScriptCore/wrec -I../JavaScriptCore/API -I../../webkit -I../JavaScriptCore/ForwardingHeaders -I../JavaScriptCore/bytecode -I../JavaScriptCore/assembler -I../JavaScriptCore/pcre -I/Users/sergey/Downloads/qt-mac-opensource-src-4.5.0/src/3rdparty/webkit/WebKitBuild/Debug/JavaScriptCore/tmp -Iplatform/qt -Iplatform/network/qt -Iplatform/graphics/filters -Iplatform/graphics/transforms -Iplatform/graphics/qt -Isvg/graphics/qt -Iloader -Ipage/qt -I../WebKit/qt/WebCoreSupport -I../WebKit/qt/Api -Ibridge/qt -I. -IForwardingHeaders -I../../webkit -Iplatform -Iplatform/animation -Iplatform/network -Iplatform/graphics -Isvg/animation -Isvg/graphics -Isvg/graphics/filters -Iplatform/sql -Iplatform/text -Iloader -Iloader/appcache -Iloader/archive -Iloader/icon -Icss -Idom -Ipage -Ipage/animation -Ibridge -Iediting -Irendering -Irendering/style -Ihistory -Iinspector -Ixml -Ihtml -Iwml -Ibindings/js -Isvg -Iplatform/image-decoders -Iplugins -Ibridge -Ibridge/c -Ibridge/qt -Igenerated -Iplatform/mac -I../../../../include/phonon -I/Users/sergey/Downloads/qt-mac-opensource-src-4.5.0/lib/phonon.framework/Headers -I.moc/debug-shared -I.uic/debug-shared -F/Users/sergey/Downloads/qt-mac-opensource-src-4.5.0/lib -o .obj/debug-shared/JSHTMLOptionsCollectionCustom.o bindings/js/JSHTMLOptionsCollectionCustom.cpp
html/HTMLSelectElement.h:168: error: ‘DOMTimeStamp’ does not name a type
make[2]: *** [.obj/debug-shared/JSHTMLOptionsCollectionCustom.o] Error 1
make[1]: *** [debug-all] Error 2
make: *** [sub-webkit-make_default-ordered] Error 2

I'd appretiate if somebody can help. I built Qt many times on Linux before, and never had any problems.
This is the first time on Mac, and no success. :(

Thanks.

Sergey.

Boron
19th March 2009, 18:20
Would a -no-webkit option for the configure command be a possible solution for you?

serega
20th March 2009, 01:56
Yes, it compiled with -no-webkit, thanks. But, still, why doesn't webkit compile?

Sergey.

Boron
20th March 2009, 15:25
I am not sure.
Does WebKit need an absolutely "state of the C++ art" compiler?
Or does it depend on an additional library?
Can it be compiled only when the weather is fine or only before 5 p.m.?

It is a complete mystery to me. Since WebKit is part of Qt I never could compile Qt with WebKit support. I always had to turn support off.