[webkit-gtk] webkitGTK+ 2.22.2 CMake Error:undefined reference to 'WebCore::LayerRepresentation::releasePlatformLayer(void*)

Jin Huang 54jin.huang at gmail.com
Wed Oct 31 21:22:13 PDT 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20181101/425e8020/attachment.html>


More information about the webkit-gtk mailing list