問題如下:
$ cmake .. -- The C compiler identification is GNU 14.2.0 -- The CXX compiler identification is GNU 14.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Warning at Source/cmake/WebKitCommon.cmake:10 (message): No CMAKE_BUILD_TYPE value specified, defaulting to RelWithDebInfo. Call Stack (most recent call first): CMakeLists.txt:16 (include) CMake Error at Source/cmake/WebKitCommon.cmake:60 (message): Please choose which WebKit port to build (one of GTK;JSCOnly;Mac;PlayStation;WPE;Win) Call Stack (most recent call first): CMakeLists.txt:16 (include) -- Configuring incomplete, errors occurred!
解法如下:
$ cmake .. -DPORT=GTK