[Webkit-unassigned] [Bug 207100] New: WebKit fails to build when both OpenJPEG 1.5 and 2.3 are installed on the system

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Feb 2 05:41:37 PST 2020


https://bugs.webkit.org/show_bug.cgi?id=207100

            Bug ID: 207100
           Summary: WebKit fails to build when both OpenJPEG 1.5 and 2.3
                    are installed on the system
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CMake
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: lantw44 at gmail.com

WebKit needs OpenJPEG 2.2.0 or later versions, but it is possible for a
system to have both OpenJPEG 1 and OpenJPEG 2 installed. However, some
distributions do not put OpenJPEG 1 under a versioned directory and
put its header file directly under /usr/include or /usr/local/include.
Since CMake prefers its prefixes to paths given in HINTS, it is possible
that openjpeg.h from OpenJPEG 1 is found before the one from OpenJPEG 2,
causing WebKit to fail to build because of using the wrong header file.

Resolve the problem by checking opj_config.h instead of openjpeg.h.
OpenJPEG 1.5 does not have opj_config.h, so only OpenJPEG 2 can be
found. This also makes it consistent with the code below which already
uses opj_config.h.

[3/507] Building CXX object Source/WebCore/CMakeFiles/WebCore.dir/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp.o
FAILED: Source/WebCore/CMakeFiles/WebCore.dir/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp.o 
/usr/bin/clang++  -B/home/lantw44/.local/bin  -DBUILDING_GTK__=1 -DBUILDING_WEBKIT -DBUILDING_WITH_CMAKE=1 -DBUILDING_WebCore -DGETTEXT_PACKAGE=\"WebKit2GTK-4.0\" -DHAVE_CONFIG_H=1 -DJSC_GLIB_API_ENABLED -DSTATICALLY_LINKED_WITH_PAL=1 -DSVN_REVISION=\"tarball\" -DWEBKITGTK_API_VERSION_STRING=\"4.0\" -D_THREAD_SAFE -IDerivedSources/ForwardingHeaders -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/libwpe -I. -IDerivedSources/WebCore -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/airplay -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/applepay -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/applepay/paymentrequest -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/applicationmanifest -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/async-clipboard -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/beacon -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/cache -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/credentialmanagement -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/encryptedmedia -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/encryptedmedia/legacy -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/entriesapi -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/fetch -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/geolocation -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/highlight -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/indexeddb -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/indexeddb/client -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/indexeddb/server -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/indexeddb/shared -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/mediacapabilities -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/mediacontrols -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/mediarecorder -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/mediasession -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/mediasource -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/mediastream -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/mediastream/libwebrtc -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/navigatorcontentutils -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/notifications -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/paymentrequest -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/plugins -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/quota -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/speech -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/streams -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/webaudio -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/webauthn -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/webauthn/cbor -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/webauthn/fido -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/webdatabase -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/webdriver -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/webgpu -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/webgpu/WHLSL -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/webgpu/WHLSL/AST -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/websockets -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/Modules/webvr -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/accessibility -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/accessibility/isolatedtree -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/animation -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/bindings -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/bindings/js -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/bridge -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/bridge/c -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/bridge/jsc -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/contentextensions -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/crypto -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/crypto/algorithms -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/crypto/keys -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/crypto/parameters -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/css -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/css/parser -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/css/typedom -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/cssjit -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/dom -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/dom/messageports -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/domjit -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/editing -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/fileapi -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/history -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/html -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/html/canvas -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/html/forms -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/html/parser -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/html/shadow -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/html/track -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/inspector -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/inspector/agents -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/inspector/agents/page -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/inspector/agents/worker -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/layout -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/layout/blockformatting -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/layout/displaytree -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/layout/floats -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/layout/inlineformatting -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/layout/inlineformatting/text -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/layout/integration -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/layout/layouttree -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/loader -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/loader/appcache -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/loader/archive -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/loader/archive/mhtml -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/loader/cache -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/loader/icon -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/mathml -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/page -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/page/animation -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/page/csp -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/page/scrolling -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform
-I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/animation -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/audio -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/encryptedmedia -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/gamepad -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/cpu/arm -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/cpu/arm/filters -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/displaylists -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/filters -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/iso -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/opentype -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/transforms -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/mediacapabilities -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/mediarecorder -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/mediasession -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/mediastream -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/mediastream/libwebrtc -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/mock -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/mock/mediasource -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/network -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/sql -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/text -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/vr -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/plugins -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/rendering -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/rendering/line -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/rendering/mathml -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/rendering/shapes -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/rendering/style -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/rendering/svg -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/rendering/updating -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/replay -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/storage -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/style -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/svg -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/svg/animation -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/svg/graphics -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/svg/graphics/filters -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/svg/properties -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/websockets -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/workers -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/workers/service -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/workers/service/context -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/workers/service/server -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/worklets -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/xml -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/xml/parser -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/gpu -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/ThirdParty/xdgmime/src -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/cairo -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/freetype -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/harfbuzz -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/harfbuzz/ng -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/gstreamer -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/gstreamer/mse -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/gstreamer/eme -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/audio/gstreamer -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/bmp -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/gif -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/ico -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/jpeg -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/jpeg2000 -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/png -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/webp -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/network/soup -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/texmap -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/nicosia -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/page/scrolling/nicosia -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/texmap/coordinated -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/nicosia/cairo -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/nicosia/texmap -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/accessibility/atk -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/editing/atk -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/page/gtk -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/generic -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/gtk -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/egl -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/glx -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/gtk -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/opengl -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/wayland -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/graphics/x11 -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/mediastream/gtk -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/mediastream/gstreamer -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/network/gtk -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/text/gtk -IDerivedSources -I/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/ThirdParty -isystem /usr/local/include/libxml2 -isystem /home/lantw44/gnome/devinstall/include/cairo -isystem /usr/local/include/freetype2 -isystem /home/lantw44/gnome/devinstall/include/gstreamer-1.0 -isystem /home/lantw44/gnome/devinstall/include/glib-2.0 -isystem /home/lantw44/gnome/devinstall/lib/glib-2.0/include -isystem /usr/local/lib/libffi-3.2.1/include -isystem /usr/local/include/orc-0.4 -isystem /home/lantw44/gnome/devinstall/lib/gstreamer-1.0/include -isystem /home/lantw44/gnome/devinstall/include/libsoup-2.4 -isystem /home/lantw44/gnome/devinstall/include/atk-1.0 -isystem /home/lantw44/gnome/devinstall/include/enchant-2 -isystem /home/lantw44/gnome/devinstall/include/gtk-3.0 -isystem /home/lantw44/gnome/devinstall/include/pango-1.0 -isystem /home/lantw44/gnome/devinstall/include/harfbuzz
-isystem /home/lantw44/gnome/devinstall/include/fribidi -isystem /usr/local/include/libpng16 -isystem /usr/local/include/uuid -isystem /home/lantw44/gnome/devinstall/include/pixman-1 -isystem /usr/local/include/libdrm -isystem /home/lantw44/gnome/devinstall/include/gdk-pixbuf-2.0 -isystem /home/lantw44/gnome/devinstall/include/gio-unix-2.0 -isystem /home/lantw44/gnome/devinstall/include/at-spi2-atk/2.0 -isystem /usr/local/include/dbus-1.0 -isystem /usr/local/lib/dbus-1.0/include -isystem /home/lantw44/gnome/devinstall/include/at-spi-2.0 -isystem /home/lantw44/gnome/devinstall/include/libsecret-1 -isystem /home/lantw44/gnome/devinstall/include/wpe-1.0 -fdiagnostics-color=always -fcolor-diagnostics -Wextra -Wall -Wno-parentheses-equality -Wno-noexcept-type -Qunused-arguments -Wwrite-strings -Wundef -Wpointer-arith -Wmissing-format-attribute -Wformat-security -Wcast-align -march=corei7 -B/home/lantw44/.local/bin -pipe -g3 -Og -gz -fdebug-macro -fno-strict-aliasing -fno-exceptions -fno-rtti -O2 -g -DNDEBUG -fPIC   -pthread -pthread -std=c++17 -MD -MT Source/WebCore/CMakeFiles/WebCore.dir/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp.o -MF Source/WebCore/CMakeFiles/WebCore.dir/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp.o.d -o Source/WebCore/CMakeFiles/WebCore.dir/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp.o -c /home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp
/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp:74:34: error: use of undeclared identifier 'opj_image_data_alloc'
    auto* d0 = static_cast<int*>(opj_image_data_alloc(sizeof(int) * max));
                                 ^
/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp:75:34: error: use of undeclared identifier 'opj_image_data_alloc'
    auto* d1 = static_cast<int*>(opj_image_data_alloc(sizeof(int) * max));
                                 ^
/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp:76:34: error: use of undeclared identifier 'opj_image_data_alloc'
    auto* d2 = static_cast<int*>(opj_image_data_alloc(sizeof(int) * max));
                                 ^
/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp:98:5: error: use of undeclared identifier 'opj_image_data_free'
    opj_image_data_free(img->comps[0].data);
    ^
/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp:100:5: error: use of undeclared identifier 'opj_image_data_free'
    opj_image_data_free(img->comps[1].data);
    ^
/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp:102:5: error: use of undeclared identifier 'opj_image_data_free'
    opj_image_data_free(img->comps[2].data);
    ^
/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp:104:24: error: use of undeclared identifier 'OPJ_CLRSPC_SRGB'; did you mean 'CLRSPC_SRGB'?
    img->color_space = OPJ_CLRSPC_SRGB;
                       ^~~~~~~~~~~~~~~
                       CLRSPC_SRGB
/usr/local/include/openjpeg.h:133:2: note: 'CLRSPC_SRGB' declared here
        CLRSPC_SRGB = 1,                /**< sRGB */
        ^
/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp:121:34: error: use of undeclared identifier 'opj_image_data_alloc'
    auto* d0 = static_cast<int*>(opj_image_data_alloc(sizeof(int) * max));
                                 ^
/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp:122:34: error: use of undeclared identifier 'opj_image_data_alloc'
    auto* d1 = static_cast<int*>(opj_image_data_alloc(sizeof(int) * max));
                                 ^
/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp:123:34: error: use of undeclared identifier 'opj_image_data_alloc'
    auto* d2 = static_cast<int*>(opj_image_data_alloc(sizeof(int) * max));
                                 ^
/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp:175:5: error: use of undeclared identifier 'opj_image_data_free'
    opj_image_data_free(img->comps[0].data);
    ^
/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp:177:5: error: use of undeclared identifier 'opj_image_data_free'
    opj_image_data_free(img->comps[1].data);
    ^
/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp:179:5: error: use of undeclared identifier 'opj_image_data_free'
    opj_image_data_free(img->comps[2].data);
    ^
/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp:186:24: error: use of undeclared identifier 'OPJ_CLRSPC_SRGB'; did you mean 'CLRSPC_SRGB'?
    img->color_space = OPJ_CLRSPC_SRGB;
                       ^~~~~~~~~~~~~~~
                       CLRSPC_SRGB
/usr/local/include/openjpeg.h:133:2: note: 'CLRSPC_SRGB' declared here
        CLRSPC_SRGB = 1,                /**< sRGB */
        ^
/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp:203:34: error: use of undeclared identifier 'opj_image_data_alloc'
    auto* d0 = static_cast<int*>(opj_image_data_alloc(sizeof(int) * max));
                                 ^
/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp:204:34: error: use of undeclared identifier 'opj_image_data_alloc'
    auto* d1 = static_cast<int*>(opj_image_data_alloc(sizeof(int) * max));
                                 ^
/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp:205:34: error: use of undeclared identifier 'opj_image_data_alloc'
    auto* d2 = static_cast<int*>(opj_image_data_alloc(sizeof(int) * max));
                                 ^
/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp:324:5: error: use of undeclared identifier 'opj_image_data_free'
    opj_image_data_free(img->comps[0].data);
    ^
/home/lantw44/gnome/source/webkitgtk-2.27.4/Source/WebCore/platform/image-decoders/jpeg2000/JPEG2000ImageDecoder.cpp:326:5: error: use of undeclared identifier 'opj_image_data_free'
    opj_image_data_free(img->comps[1].data);
    ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
ninja: build stopped: subcommand failed.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200202/e2537926/attachment-0001.htm>


More information about the webkit-unassigned mailing list