Discussion:
[webkit-gtk] webkitGTK+ 2.22.2 CMake Error:undefined reference to 'WebCore::LayerRepresentation::releasePlatformLayer(void*)
Jin Huang
2018-11-01 04:22:13 UTC
Permalink
HiI compiled webkitGTK+ 2.22.2 (release version) on Linux (Ubuntu 16.04.5
LTS), but get error as below:

[ 99%] Built target WebProcess
[ 99%] Built target StorageProcess
[ 99%] Built target PluginProcess
[ 99%] Built target webkit2gtkinjectedbundle
[ 99%] Linking CXX executable ../../../bin/MiniBrowser
../../../lib/libwebkit2gtk-4.0.so.37.33.3: error: undefined reference to
'WebCore::LayerRepresentation::releasePlatformLayer(void*)'
../../../lib/libwebkit2gtk-4.0.so.37.33.3: error: undefined reference to
'WebCore::LayerRepresentation::retainPlatformLayer(void*)'
../../../lib/libwebkit2gtk-4.0.so.37.33.3: error: undefined reference to
'WebCore::LayerRepresentation::makePlatformLayerTypeless(WebCore::TextureMapperPlatformLayer*)'
clang-7: error: linker command failed with exit code 1 (use -v to see
invocation)
Tools/MiniBrowser/gtk/CMakeFiles/MiniBrowser.dir/build.make:330: recipe for
target 'bin/MiniBrowser' failed
make[2]: *** [bin/MiniBrowser] Error 1
CMakeFiles/Makefile2:1415: recipe for target
'Tools/MiniBrowser/gtk/CMakeFiles/MiniBrowser.dir/all' failed
make[1]: *** [Tools/MiniBrowser/gtk/CMakeFiles/MiniBrowser.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2


The compile command I used is as below:

mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=.
-DCMAKE_SKIP_RPATH=ON -DPORT=GTK -DLIB_INSTALL_DIR=./lib
-DUSE_LIBHYPHEN=OFF -DENABLE_MINIBROWSER=ON -DUSE_SYSTEM_MALLOC=ON
-DENABLE_GEOLOCATION=OFF -DENABLE_GTKDOC=OFF -DENABLE_INTROSPECTION=OFF
-DENABLE_OPENGL=OFF -DENABLE_ACCELERATED_2D_CANVAS=OFF
-DENABLE_CREDENTIAL_STORAGE=OFF -DENABLE_GAMEPAD_DEPRECATED=OFF
-DENABLE_MEDIA_STREAM=OFF -DENABLE_WEB_RTC=OFF
-DENABLE_PLUGIN_PROCESS_GTK2=OFF -DENABLE_SPELLCHECK=OFF -DENABLE_VIDEO=OFF
-DENABLE_WEB_AUDIO=OFF -DUSE_LIBNOTIFY=OFF -DENABLE_SUBTLE_CRYPTO=OFF
-DUSE_WOFF2=OFF -Wno-dev ..
make -j 4

How can I fix it?
--
Kind Regards!
-Jin Huang
Claudio Saavedra
2018-11-01 10:03:16 UTC
Permalink
Hi,

I tried to build WebKit from git with your build parameters. Build with
VIDEO and WEB_AUDIO disabled is currently broken. I submitted a patch
to https://bugs.webkit.org/show_bug.cgi?id=191147 but I'm not sure if
it will be backported to the stable branch, so you can fetch it and try
it.

There might be other issues though, but this built for me. I used
-GNinja to use ninja instead of make, though.

Claudio
Hi,I compiled webkitGTK+ 2.22.2 (release version) on Linux (Ubuntu
16.04.5
[ 99%] Built target WebProcess
[ 99%] Built target StorageProcess
[ 99%] Built target PluginProcess
[ 99%] Built target webkit2gtkinjectedbundle
[ 99%] Linking CXX executable ../../../bin/MiniBrowser
../../../lib/libwebkit2gtk-4.0.so.37.33.3: error: undefined reference to
'WebCore::LayerRepresentation::releasePlatformLayer(void*)'
../../../lib/libwebkit2gtk-4.0.so.37.33.3: error: undefined reference to
'WebCore::LayerRepresentation::retainPlatformLayer(void*)'
../../../lib/libwebkit2gtk-4.0.so.37.33.3: error: undefined reference to
'WebCore::LayerRepresentation::makePlatformLayerTypeless(WebCore::Tex
tureMapperPlatformLayer*)'
clang-7: error: linker command failed with exit code 1 (use -v to see
invocation)
Tools/MiniBrowser/gtk/CMakeFiles/MiniBrowser.dir/build.make:330: recipe for
target 'bin/MiniBrowser' failed
make[2]: *** [bin/MiniBrowser] Error 1
CMakeFiles/Makefile2:1415: recipe for target
'Tools/MiniBrowser/gtk/CMakeFiles/MiniBrowser.dir/all' failed
make[1]: *** [Tools/MiniBrowser/gtk/CMakeFiles/MiniBrowser.dir/all] Error 2
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=.
-DCMAKE_SKIP_RPATH=ON -DPORT=GTK -DLIB_INSTALL_DIR=./lib
-DUSE_LIBHYPHEN=OFF -DENABLE_MINIBROWSER=ON -DUSE_SYSTEM_MALLOC=ON
-DENABLE_GEOLOCATION=OFF -DENABLE_GTKDOC=OFF
-DENABLE_INTROSPECTION=OFF
-DENABLE_OPENGL=OFF -DENABLE_ACCELERATED_2D_CANVAS=OFF
-DENABLE_CREDENTIAL_STORAGE=OFF -DENABLE_GAMEPAD_DEPRECATED=OFF
-DENABLE_MEDIA_STREAM=OFF -DENABLE_WEB_RTC=OFF
-DENABLE_PLUGIN_PROCESS_GTK2=OFF -DENABLE_SPELLCHECK=OFF
-DENABLE_VIDEO=OFF
-DENABLE_WEB_AUDIO=OFF -DUSE_LIBNOTIFY=OFF -DENABLE_SUBTLE_CRYPTO=OFF
-DUSE_WOFF2=OFF -Wno-dev ..
make -j 4
How can I fix it?
_______________________________________________
webkit-gtk mailing list
https://lists.webkit.org/mailman/listinfo/webkit-gtk
Adrian Perez de Castro
2018-11-05 22:11:34 UTC
Permalink
Hi,
Post by Claudio Saavedra
I tried to build WebKit from git with your build parameters. Build with
VIDEO and WEB_AUDIO disabled is currently broken. I submitted a patch
to https://bugs.webkit.org/show_bug.cgi?id=191147 but I'm not sure if
it will be backported to the stable branch, so you can fetch it and try
it.
The fixes for building with the multimedia support disabled have been
backported to the stable release branch [1][2] and the issue will be fixed
in WebKitGTK+ 2.22.4 — Thanks for reporting it, and to Claudio for the
quick fix :)

Cheers,


-Adrián

---
[1] https://trac.webkit.org/changeset/237689/webkit/releases/WebKitGTK/webkit-2.22
[2] https://trac.webkit.org/changeset/237690/webkit/releases/WebKitGTK/webkit-2.22
Loading...