Bug 211346
| Summary: | can not build webkit on macOS using CMake | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | ele828 |
| Component: | CMake | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | ||
| Priority: | P2 | ||
| Version: | WebKit Local Build | ||
| Hardware: | Mac | ||
| OS: | macOS 10.15 | ||
ele828
It fails to build WebKit project using CMake on my macOS, there are a bunch of file declaration issues in CMakeLists.txt across different subdirectories.
I wonder if it's me did not configure it correctly or are there any cmake build issues in the project. Btw, is there any instructions on how to build webkit using CMake for macOS users? Thanks :)
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
ele828
Build command: ./Tools/Scripts/build-webkit --mac --debug --cmake
CMake output:
CMake Error at Source/cmake/WebKitMacros.cmake:142 (add_library):
Cannot find source file:
WebKit/WebKitBuild/Release/DerivedSources/WebCore/JSApplePayInstallmentConfiguration.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
Call Stack (most recent call first):
Source/WebCore/CMakeLists.txt:1717 (WEBKIT_FRAMEWORK_DECLARE)
CMake Error at Source/cmake/WebKitMacros.cmake:142 (add_library):
Cannot find source file:
WebKit/WebKitBuild/Release/DerivedSources/WebKit/RemoteMediaSessionHelperMessageReceiver.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
Call Stack (most recent call first):
Source/WebKit/CMakeLists.txt:386 (WEBKIT_FRAMEWORK_DECLARE)
CMake Error at Source/cmake/WebKitMacros.cmake:146 (add_executable):
Cannot find source file:
/cocoa/ClassMethodSwizzler.mm
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
Call Stack (most recent call first):
Tools/DumpRenderTree/CMakeLists.txt:61 (WEBKIT_EXECUTABLE_DECLARE)
CMake Error at Source/cmake/WebKitMacros.cmake:146 (add_executable):
Cannot find source file:
/cg/TestInvocationCG.cpp
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
Call Stack (most recent call first):
Tools/WebKitTestRunner/CMakeLists.txt:119 (WEBKIT_EXECUTABLE_DECLARE)
CMake Error at Tools/WebKitTestRunner/CMakeLists.txt:122 (add_library):
Cannot find source file:
/cocoa/CrashReporterInfo.mm
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error in Source/WebCore/CMakeLists.txt:
Cannot find source file:
platform/cocoa/PlaybackSessionInterface.h
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
CMake Error at Tools/WebKitTestRunner/CMakeLists.txt:122 (add_library):
No SOURCES given to target: TestRunnerInjectedBundle
CMake Generate step failed. Build files cannot be regenerated correctly.
~/D/WebKit git:(master)