Bug 136921 - [GTK] Cannot find WebCore/LayoutUnit.h
Summary: [GTK] Cannot find WebCore/LayoutUnit.h
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-18 07:30 PDT by Geng Qifu
Modified: 2015-04-24 21:17 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Geng Qifu 2014-09-18 07:30:53 PDT
When build webkit on ubuntu 14.04, there is an error:
../../Tools/TestWebKitAPI/Tests/WebCore/LayoutUnit.cpp:34:32: fatal error: WebCore/LayoutUnit.h: No such file or directory

[5/117] Building CXX object Tools/TestWebKitAPI/CMakeFiles/TestWebCore.dir/Tests/WebCore/LayoutUnit.cpp.o
FAILED: /usr/bin/c++   -DBUILDING_GTK__=1 -DBUILDING_WEBKIT2__ -DBUILDING_WITH_CMAKE=1 -DDATA_DIR=\"share\" -DENABLE_3D_RENDERING=1 -DENABLE_PLUGIN_PROCESS_GTK2=1 -DGETTEXT_PACKAGE=\"WebKit2GTK-4.0\" -DGTEST_HAS_RTTI=0 -DGTEST_LINKED_AS_SHARED_LIBRARY=1 -DHAVE_CONFIG_H=1 -DMOZ_X11=1 -DTEST_INJECTED_BUNDLE_PATH=\"/home/gengqifu/projects/WebKit/WebKitBuild/Release/lib/libTestWebKitAPIInjectedBundle.so\" -DTEST_WEBKIT2_RESOURCES_DIR=\"/home/gengqifu/projects/WebKit/Tools/TestWebKitAPI/Tests/WebKit2\" -DUSER_AGENT_GTK_MAJOR_VERSION=601 -DUSER_AGENT_GTK_MINOR_VERSION=1 -DWEBKITGTK_API_VERSION_STRING=\"4.0\" -DWTF_PLATFORM_X11=1 -DWTF_USE_3D_GRAPHICS=1 -DWTF_USE_EGL=1 -DWTF_USE_GLX=1 -DWTF_USE_GSTREAMER -DWTF_USE_OPENGL=1 -DWTF_USE_TEXTURE_MAPPER=1 -DWTF_USE_TEXTURE_MAPPER_GL=1 -DWTF_USE_WEBAUDIO_GSTREAMER -DXP_UNIX -std=c++11 -O3 -DNDEBUG -fno-exceptions -fno-strict-aliasing -fno-rtti -fno-omit-frame-pointer -fno-tree-dce -I. -I../../Tools/TestWebKitAPI -I../../Source -IDerivedSources/JavaScriptCore -IDerivedSources/WebCore -I../../Source/JavaScriptCore -I../../Source/JavaScriptCore/API -I../../Source/JavaScriptCore/ForwardingHeaders -I../../Source/JavaScriptCore/assembler -I../../Source/JavaScriptCore/bytecode -I../../Source/JavaScriptCore/disassembler -I../../Source/JavaScriptCore/interpreter -I../../Source/JavaScriptCore/heap -I../../Source/JavaScriptCore/jit -I../../Source/JavaScriptCore/llint -I../../Source/JavaScriptCore/parser -I../../Source/JavaScriptCore/runtime -I../../Source/ThirdParty/gtest/include -I../../Source/WebCore/editing -I../../Source/WebCore/platform -I../../Source/WebCore/platform/graphics -I../../Source/WebCore/platform/text -I../../Source/WebCore/platform/network -I../../Source/WebCore/platform/network/soup -I../../Source/WebKit2/Platform/IPC -I../../Source/WebKit2/Shared -I../../Source/WebKit2/Shared/API/c -I../../Source/WebKit2/Shared/Plugins -I../../Source/WebKit2/UIProcess -I../../Source/WebKit2/WebProcess/InjectedBundle -I../../Source/WebKit2/WebProcess/InjectedBundle/API/c -I../../Source/WTF -IDerivedSources/ForwardingHeaders -I../../Source/WebKit2/UIProcess/API/C/soup -I../../Source/WebKit2/UIProcess/API/C/gtk -I../../Source/WebKit2/UIProcess/API/gtk -I../Dependencies/Root/include/gtk-3.0 -I../Dependencies/Root/include/gio-unix-2.0 -I../Dependencies/Root/include/cairo -I../Dependencies/Root/include/gdk-pixbuf-2.0 -I../Dependencies/Root/include/glib-2.0 -I../Dependencies/Root/lib64/glib-2.0/include -I../Dependencies/Root/include/pixman-1 -I../Dependencies/Root/include/freetype2 -I../Dependencies/Root/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/libpng12 -I/usr/include/libdrm -I../Dependencies/Root/include/atk-1.0 -I../Dependencies/Root/include/at-spi2-atk/2.0 -I../Dependencies/Root/include/libsoup-2.4 -MMD -MT Tools/TestWebKitAPI/CMakeFiles/TestWebCore.dir/Tests/WebCore/LayoutUnit.cpp.o -MF "Tools/TestWebKitAPI/CMakeFiles/TestWebCore.dir/Tests/WebCore/LayoutUnit.cpp.o.d" -o Tools/TestWebKitAPI/CMakeFiles/TestWebCore.dir/Tests/WebCore/LayoutUnit.cpp.o -c ../../Tools/TestWebKitAPI/Tests/WebCore/LayoutUnit.cpp
../../Tools/TestWebKitAPI/Tests/WebCore/LayoutUnit.cpp:34:32: fatal error: WebCore/LayoutUnit.h: No such file or directory

I do a workaround for this error:
Add absolute path "...Tools/TestWebKitAPI/ForwardingHeaders" in file Tools/TestWebKitAPI, under include_directories.
Then building continue and success.

I think the variable ${FORWARDING_HEADERS_DIR} is not correctly set here.
Comment 1 Alberto Garcia 2014-09-23 14:20:24 PDT
Can you tell me the exact steps you use to build WebKit?

Do you use ninja or make?

Thanks!
Comment 2 Geng Qifu 2014-09-24 08:17:31 PDT
I build it follow this page:
http://trac.webkit.org/wiki/BuildingGtk
I use make rather than ninja.

(In reply to comment #1)
> Can you tell me the exact steps you use to build WebKit?
> 
> Do you use ninja or make?
> 
> Thanks!
Comment 3 Alberto Garcia 2014-12-08 01:34:16 PST
I have never been able to reproduce this, is this still happening with the latest webkit?
Comment 4 Martin Robinson 2015-04-24 21:17:13 PDT
Closing this since we don't have any word of a reproduction.