[ 1%] Building C object source/wtf/wtf/CMakeFiles/WTF.dir/nothing.c.o
[ 3%] Linking C static library ../../../lib/libWTF.a
[ 3%] Built target WTF
[ 5%] Generating ../../../DerivedSources/ForwardingHeaders/wtf/Compiler.h
[ 6%] Generating ../../../DerivedSources/ForwardingHeaders/wtf/ExportMacros.h
[ 8%] Generating ../../../DerivedSources/ForwardingHeaders/wtf/Platform.h
[ 10%] Generating ../../../DerivedSources/ForwardingHeaders/wtf/PlatformCPU.h
[ 11%] Generating ../../../DerivedSources/ForwardingHeaders/wtf/PlatformCallingConventions.h
[ 13%] Generating ../../../DerivedSources/ForwardingHeaders/wtf/PlatformEnable.h
[ 15%] Generating ../../../DerivedSources/ForwardingHeaders/wtf/PlatformHave.h
[ 16%] Generating ../../../DerivedSources/ForwardingHeaders/wtf/PlatformLegacy.h
[ 18%] Generating ../../../DerivedSources/ForwardingHeaders/wtf/PlatformOS.h
[ 20%] Generating ../../../DerivedSources/ForwardingHeaders/wtf/PlatformUse.h
[ 20%] Built target WTF_CopyHeaders
[ 22%] Building C object source/lib/CMakeFiles/xGUIPro.dir/utils/avl-cmp.c.o
[ 23%] Building C object source/lib/CMakeFiles/xGUIPro.dir/utils/avl.c.o
[ 25%] Building C object source/lib/CMakeFiles/xGUIPro.dir/utils/base64-alloc.c.o
[ 27%] Building C object source/lib/CMakeFiles/xGUIPro.dir/utils/gslist.c.o
[ 28%] Building C object source/lib/CMakeFiles/xGUIPro.dir/utils/hvml-uri.c.o
[ 30%] Building C object source/lib/CMakeFiles/xGUIPro.dir/utils/kvlist.c.o
[ 32%] Building C object source/lib/CMakeFiles/xGUIPro.dir/utils/load-asset.c.o
[ 33%] Building C object source/lib/CMakeFiles/xGUIPro.dir/utils/misc.c.o
[ 35%] Building C object source/lib/CMakeFiles/xGUIPro.dir/utils/sha1.c.o
[ 37%] Building C object source/lib/CMakeFiles/xGUIPro.dir/utils/sorted-array.c.o
[ 38%] Linking C static library ../../lib/libxGUIPro.a
[ 38%] Built target xGUIPro
[ 38%] Built target xGUIPro_CopyPrivateHeaders
[ 40%] Generating ../../DerivedSources/xGUIPro/minigui/BrowserMarshal.c, ../../DerivedSources/xGUIPro/minigui/BrowserMarshal.h
INFO: Reading /home/cchailong/workspace/xGUI-Pro/xGUI-Pro-main/source/bin/minigui/browser-marshal.list...
INFO: Reading /home/cchailong/workspace/xGUI-Pro/xGUI-Pro-main/source/bin/minigui/browser-marshal.list...
[ 42%] Building C object source/bin/CMakeFiles/xguipro.dir/layouter/dom-ops.c.o
[ 44%] Building C object source/bin/CMakeFiles/xguipro.dir/layouter/layouter.c.o
[ 45%] Building C object source/bin/CMakeFiles/xguipro.dir/purcmc/endpoint.c.o
[ 47%] Building C object source/bin/CMakeFiles/xguipro.dir/purcmc/server.c.o
[ 49%] Building C object source/bin/CMakeFiles/xguipro.dir/purcmc/unixsocket.c.o
[ 50%] Building C object source/bin/CMakeFiles/xguipro.dir/purcmc/websocket.c.o
[ 52%] Building C object source/bin/CMakeFiles/xguipro.dir/schema/HVMLURISchema.c.o
[ 54%] Building C object source/bin/CMakeFiles/xguipro.dir/schema/HbdrunURISchema.c.o
[ 55%] Building C object source/bin/CMakeFiles/xguipro.dir/sd/sd.c.o
[ 57%] Building C object source/bin/CMakeFiles/xguipro.dir/utils/hbdrun-uri.c.o
[ 59%] Building C object source/bin/CMakeFiles/xguipro.dir/utils/utils.c.o
/home/cchailong/workspace/xGUI-Pro/xGUI-Pro-main/source/bin/utils/utils.c: In function 'xgutils_set_webview_density':
/home/cchailong/workspace/xGUI-Pro/xGUI-Pro-main/source/bin/utils/utils.c:390:5: warning: implicit declaration of function 'webkit_web_view_set_intrinsic_device_scale_factor' [-Wimplicit-function-declaration]
390 | webkit_web_view_set_intrinsic_device_scale_factor(webview,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 61%] Building C object source/bin/CMakeFiles/xguipro.dir/__/__/DerivedSources/xGUIPro/minigui/BrowserMarshal.c.o
[ 62%] Building C object source/bin/CMakeFiles/xguipro.dir/minigui/Common.c.o
[ 64%] Building C object source/bin/CMakeFiles/xguipro.dir/minigui/BrowserTab.c.o
[ 66%] Building C object source/bin/CMakeFiles/xguipro.dir/minigui/BrowserPane.c.o
[ 67%] Building C object source/bin/CMakeFiles/xguipro.dir/minigui/BrowserPlainWindow.c.o
[ 69%] Building C object source/bin/CMakeFiles/xguipro.dir/minigui/BrowserTabbedWindow.c.o
[ 71%] Building C object source/bin/CMakeFiles/xguipro.dir/minigui/BrowserLayoutContainer.c.o
[ 72%] Building C object source/bin/CMakeFiles/xguipro.dir/minigui/BrowserPaneContainer.c.o
[ 74%] Building C object source/bin/CMakeFiles/xguipro.dir/minigui/BrowserTabContainer.c.o
[ 76%] Building C object source/bin/CMakeFiles/xguipro.dir/minigui/PurcmcCallbacks.c.o
[ 77%] Building C object source/bin/CMakeFiles/xguipro.dir/minigui/LayouterWidgets.c.o
[ 79%] Building C object source/bin/CMakeFiles/xguipro.dir/minigui/main.c.o
[ 81%] Building C object source/bin/CMakeFiles/xguipro.dir/minigui/FloatingToolWindow.c.o
[ 83%] Building C object source/bin/CMakeFiles/xguipro.dir/minigui/FloatingWindow.c.o
[ 84%] Building C object source/bin/CMakeFiles/xguipro.dir/minigui/SwitchRendererWindow.c.o
[ 86%] Linking C executable ../../bin/xguipro
/home/cchailong/workspace/xGUI-Pro/xGUI-Pro-main/source/bin/utils/utils.c:390: error: undefined reference to 'webkit_web_view_set_intrinsic_device_scale_factor'
collect2: error: ld returned 1 exit status
gmake[2]: *** [source/bin/CMakeFiles/xguipro.dir/build.make:518: bin/xguipro] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:294: source/bin/CMakeFiles/xguipro.dir/all] Error 2
gmake: *** [Makefile:156: all] Error 2
构建xGUI-Pro时,运行
cmake --build build
出现问题:我已经成功构建了WebKitHBD,且构建xGUI-Pro时能够发现
/usr/local/include/webkithbd-4.1/webkit2
。 我在WebKitHBD相关文件中中并没有找到webkit_web_view_set_intrinsic_device_scale_factor
这个函数,这个函数写在了哪里呢?为什么会出现这个问题呢?