Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#15252 closed defect (fixed)

qt4-mac 4.4.0: build fails if openjpeg is installed

Reported by: michal-macports@… Owned by: erickt@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: qt4-mac Cc: jochen@…
Port:

Description

The file /opt/local/include/event.h which is part of openjpeg (1.2_3) can make the build fail, if the filesystem is case-insensitive. It is included ahead of src/3rdparty/webkit/WebCore/dom/Event.h and causes a failure in the src/3rdparty/webkit/WebCore directory.

cd src/3rdparty/webkit/WebCore/ && make -f Makefile
make -f Makefile.Release
/usr/bin/g++-4.0 -c -O2 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-mac-opensource-src-4.4.0/include -I/opt/local/include -fconstant-cfstrings -Wreturn-type -fno-strict-aliasing -O2 -fvisibility=hidden -fvisibility-inlines-hidden -fPIC -DQT_SHARED -DBUILDING_QT__=1 -DUSE_SYSTEM_MALLOC -DNDEBUG -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DBUILD_WEBKIT -DENABLE_ICONDATABASE=1 -DENABLE_XPATH=1 -DENABLE_SVG=1 -DWTF_CHANGES=1 -DBUILDING_QT__ -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -DQT_NO_DEBUG -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/QtCore -I../../../../include/QtNetwork -I../../../../include/QtNetwork -I../../../../include/QtGui -I../../../../include/QtGui -I../../../../include -I../WebKit/qt/Api -I../JavaScriptCore -I../JavaScriptCore/kjs -I../JavaScriptCore/bindings -I../JavaScriptCore/bindings/c -I../JavaScriptCore/wtf -I../JavaScriptCore/ForwardingHeaders -I. -IForwardingHeaders -Iplatform -Iplatform/network -Iplatform/graphics -Iloader -Ipage -Icss -Idom -Ibridge -Iediting -Irendering -Ihistory -Ixml -Ihtml -Iplugins -I/usr/include/libxml2 -I../../../../include/QtWebKit -I.rcc/release-shared -Igenerated -Itmp -I../JavaScriptCore -I../JavaScriptCore/kjs -I../JavaScriptCore/bindings -I../JavaScriptCore/bindings/c -I../JavaScriptCore/wtf -I../JavaScriptCore/bindings/qt -I../JavaScriptCore/pcre -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-mac-opensource-src-4.4.0/src/3rdparty/webkit/WebKitBuild/Debug/JavaScriptCore/kjs/tmp -Iplatform/qt -Iplatform/network/qt -Iplatform/graphics/qt -Iplatform/graphics/svg/qt -Iloader/qt -Ipage/qt -I../WebKit/qt/WebCoreSupport -I../WebKit/qt/Api -I. -IForwardingHeaders -I../../webkit -I../JavaScriptCore/kjs -I../JavaScriptCore/bindings -Iplatform -Iplatform/network -Iplatform/graphics -Iplatform/graphics/svg -Iplatform/graphics/svg/filters -Iloader -Iloader/icon -Icss -Idom -Ipage -Ibridge -Iediting -Irendering -Ihistory -Ixml -Ihtml -Ibindings/js -Iksvg2 -Iksvg2/css -Iksvg2/svg -Iksvg2/misc -Iksvg2/events -Iplatform/image-decoders -I../../sqlite -I.moc/release-shared -I.uic/release-shared -F/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-mac-opensource-src-4.4.0/lib -o .obj/release-shared/JSEventCustom.o bindings/js/JSEventCustom.cpp
/opt/local/include/Event.h:52: error: 'opj_common_ptr' was not declared in this scope
/opt/local/include/Event.h:52: error: expected primary-expression before 'int'
/opt/local/include/Event.h:52: error: expected primary-expression before 'const'
/opt/local/include/Event.h:52: error: expected primary-expression before '...' token
/opt/local/include/Event.h:52: error: initializer expression list treated as compound expression
make[2]: *** [.obj/release-shared/JSEventCustom.o] Error 1
make[1]: *** [release] Error 2
make: *** [sub-webkit-make_default-ordered] Error 2

Change History (3)

comment:1 Changed 16 years ago by jmroot (Joshua Root)

Cc: jochen@… added; jochen removed
Milestone: Port Bugs
Owner: changed from macports-tickets@… to erickt@…

comment:2 Changed 16 years ago by erickt@…

Resolution: fixed
Status: newclosed

I've put in a temporary fix in r36673. This will cause building qt4-mac to error out if openjpeg is active.

comment:3 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.