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

Claudio Saavedra csaavedra at igalia.com
Thu Nov 1 03:03:16 PDT 2018


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

On Thu, 2018-11-01 at 12:22 +0800, Jin Huang wrote:
> 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::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
> 
> 
> 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?
> _______________________________________________
> webkit-gtk mailing list
> webkit-gtk at lists.webkit.org
> https://lists.webkit.org/mailman/listinfo/webkit-gtk



More information about the webkit-gtk mailing list