xfangfang / wiliwili

第三方B站客户端,目前可以运行在PC全平台、PSVita、PS4 、Xbox 和 Nintendo Switch上
https://xfangfang.github.io/wiliwili
GNU General Public License v3.0
3.33k stars 158 forks source link

使用系统 glfw (v3.3.9) 编译时出现错误 #271

Closed Puqns67 closed 10 months ago

Puqns67 commented 10 months ago

使用如下命令进行编译:

cmake \
  -S "${srcdir}/wiliwili" \
  -B "${srcdir}/build" \
  -G Ninja \
  -D CMAKE_BUILD_TYPE=Release \
  -D CMAKE_INSTALL_PREFIX='/usr' \
  -D INSTALL=ON \
  -D PLATFORM_DESKTOP=ON \
  -D USE_SYSTEM_CURL=ON \
  -D USE_SYSTEM_OPENCC=ON \
  -D USE_SYSTEM_PYSTRING=ON \
  -D USE_SYSTEM_SDL2=ON \
  -D USE_SYSTEM_GLFW=ON

ninja -C "${srcdir}/build" wiliwili

编译日志:

-- Build Type: Release
-- building for Desktop
-- USE_GL3/4
-- GLFW
-- Found Git: /usr/bin/git (found version "2.43.0") 
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
-- building from git tag: 
-- building from git commit: 
-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.2.1
-- 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
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found MPV: /usr/include  
-- Found libmpv:  /usr/include /lib/libmpv.so
-- Found the following WebP libraries:
--  WebP (required): /usr/lib/libwebp.so
-- Found WebP: /usr/include  
-- Found webp: /usr/include /usr/lib/libwebp.so
-- CXX standard: 17
-- C++ Requests CMake Options
-- =======================================================
--   CPR_GENERATE_COVERAGE: OFF
--   CPR_CURL_NOSIGNAL: OFF
--   CURL_VERBOSE_LOGGING: OFF
--   CPR_USE_SYSTEM_GTEST: OFF
--   CPR_USE_SYSTEM_CURL: ON
--   CPR_ENABLE_CURL_HTTP_ONLY: ON
--   CPR_ENABLE_SSL: ON
--   CPR_FORCE_OPENSSL_BACKEND: OFF
--   CPR_FORCE_WINSSL_BACKEND: OFF
--   CPR_FORCE_DARWINSSL_BACKEND: OFF
--   CPR_FORCE_MBEDTLS_BACKEND: OFF
--   CPR_ENABLE_LINTING: OFF
--   CPR_ENABLE_CPPCHECK: OFF
--   CPR_BUILD_TESTS: OFF
--   CPR_BUILD_TESTS_SSL: OFF
--   CPR_BUILD_TESTS_PROXY: OFF
--   CPR_SKIP_CA_BUNDLE_SEARCH: OFF
--   CPR_USE_BOOST_FILESYSTEM: OFF
--   CPR_DEBUG_SANITIZER_FLAG_THREAD: OFF
--   CPR_DEBUG_SANITIZER_FLAG_ADDR: OFF
--   CPR_DEBUG_SANITIZER_FLAG_LEAK: OFF
--   CPR_DEBUG_SANITIZER_FLAG_UB: OFF
--   CPR_DEBUG_SANITIZER_FLAG_ALL: OFF
-- =======================================================
-- Performing Test THREAD_SANITIZER_AVAILABLE
-- Performing Test THREAD_SANITIZER_AVAILABLE - Success
-- Performing Test ADDRESS_SANITIZER_AVAILABLE
-- Performing Test ADDRESS_SANITIZER_AVAILABLE - Success
-- Performing Test LEAK_SANITIZER_AVAILABLE
-- Performing Test LEAK_SANITIZER_AVAILABLE - Success
-- Performing Test UNDEFINED_BEHAVIOUR_SANITIZER_AVAILABLE
-- Performing Test UNDEFINED_BEHAVIOUR_SANITIZER_AVAILABLE - Success
-- Performing Test ALL_SANITIZERS_AVAILABLE
-- Performing Test ALL_SANITIZERS_AVAILABLE - Success
-- Automatically detecting SSL backend.
-- Detecting SSL backend...
-- Found OpenSSL: /usr/lib/libcrypto.so (found version "3.2.0")  
-- SSL auto detect: Using OpenSSL.
-- Found CURL: /usr/lib/libcurl.so (found version "8.5.0") found components: HTTP HTTPS 
-- Curl 8.5.0 found on this system.
-- Found PkgConfig: /usr/bin/pkg-config (found version "2.1.0") 
-- Checking for module 'opencc'
--   Found opencc, version 1.1.7
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Version: 10.0.0
-- Build type: Release
CMake Deprecation Warning at library/borealis/library/lib/extern/tweeny/CMakeLists.txt:28 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- Found DBus: /usr/include/dbus-1.0;/usr/lib/dbus-1.0/include  
-- BOREALIS_SOURCE: /build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw;/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/desktop;/build/wiliwili/src/wiliwili/library/borealis/library/lib/core;/build/wiliwili/src/wiliwili/library/borealis/library/lib/core/touch;/build/wiliwili/src/wiliwili/library/borealis/library/lib/views;/build/wiliwili/src/wiliwili/library/borealis/library/lib/views/cells;/build/wiliwili/src/wiliwili/library/borealis/library/lib/views/widgets;/build/wiliwili/src/wiliwili/library/borealis/library/lib/extern/glad;/build/wiliwili/src/wiliwili/library/borealis/library/lib/extern/libretro-common/compat;/build/wiliwili/src/wiliwili/library/borealis/library/lib/extern/libretro-common/encodings;/build/wiliwili/src/wiliwili/library/borealis/library/lib/extern/libretro-common/features
-- borealis driver BOREALIS_USE_OPENGL
install prefix: /usr
-- Configuring done (2.2s)
-- Generating done (0.0s)
-- Build files have been written to: /build/wiliwili/src/build
ninja: Entering directory `/build/wiliwili/src/build'
[0/2] Re-checking globbed directories...
[1/267] cd /build/wiliwili/src/build && /usr/bin/cmake -E copy_directory /build/wiliwili/src/wiliwili/resources /build/wiliwili/src/build/resources && echo copy\ resources
copy resources
[2/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/cert_info.cpp.o
[3/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/error.cpp.o
[4/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/curlholder.cpp.o
[5/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/cprtypes.cpp.o
[6/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/curl_container.cpp.o
[7/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/cookies.cpp.o
[8/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/callback.cpp.o
[9/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/accept_encoding.cpp.o
[10/267] Building CXX object library/CMakeFiles/pdr.dir/libpdr/src/protocol_define.cpp.o
[11/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/bearer.cpp.o
[12/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/auth.cpp.o
[13/267] Building CXX object library/CMakeFiles/qrcode.dir/QR-Code-generator/cpp/qrcodegen.cpp.o
[14/267] Building CXX object library/CMakeFiles/pdr.dir/libpdr/src/ssdp.cpp.o
[15/267] Building CXX object library/CMakeFiles/pdr.dir/libpdr/src/soap.cpp.o
[16/267] Building CXX object library/CMakeFiles/pdr.dir/libpdr/src/libpdr.cpp.o
/build/wiliwili/src/wiliwili/library/libpdr/src/libpdr.cpp: In static member function ‘static void pdr::Event::showError(std::string, bool)’:
/build/wiliwili/src/wiliwili/library/libpdr/src/libpdr.cpp:83:19: warning: ignoring return value of ‘char* strerror_r(int, char*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   83 |         strerror_r(errno, ErrnoMsgShareBuf, sizeof(ErrnoMsgShareBuf));
      |         ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[17/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/async.cpp.o
[18/267] Building CXX object library/CMakeFiles/pdr.dir/libpdr/src/protocol.cpp.o
[19/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/activity/main_activity.cpp.o
[20/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/activity/gallery_activity.cpp.o
[21/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/activity/hint_activity.cpp.o
[22/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/api/bilibili.cpp.o
[23/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/activity/dlna_activity.cpp.o
[24/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/activity/search_activity_tv.cpp.o
[25/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/api/dynamic_api.cpp.o
[26/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/activity/pgc_index_activity.cpp.o
[27/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/activity/search_activity.cpp.o
[28/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/api/dlna.cpp.o
[29/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/api/util/dl_emoticon.cpp.o
[30/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/api/analytics.cpp.o
[31/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/api/util/ws_utils.cpp.o
[32/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/activity/setting_activity.cpp.o
[33/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/api/util/extract_messages.cpp.o
[34/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/activity/live_player_activity.cpp.o
[35/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/api/danmaku_live.cpp.o
[36/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/api/search_api.cpp.o
[37/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/home_hots.cpp.o
[38/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/activity/player_season_activity.cpp.o
[39/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/api/util/http.cpp.o
[40/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/activity/player_activity.cpp.o
[41/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/home_cinema.cpp.o
[42/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/activity/player_base_activity.cpp.o
[43/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/api/mine_api.cpp.o
[44/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/home_bangumi.cpp.o
[45/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/api/home_api.cpp.o
[46/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/home_tab.cpp.o
[47/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/dynamic_tab.cpp.o
[48/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/home_hots_all.cpp.o
[49/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/home_hots_history.cpp.o
[50/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/home_hots_rank.cpp.o
[51/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/home_hots_weekly.cpp.o
[52/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/home_recommends.cpp.o
[53/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/player_coin.cpp.o
[54/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/mine_bangumi.cpp.o
[55/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/player_evaluate.cpp.o
[56/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/mine_collection_video_list.cpp.o
[57/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/mine_collection.cpp.o
[58/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/home_live.cpp.o
[59/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/player_fragments.cpp.o
[60/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/mine_history.cpp.o
[61/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/mine_later.cpp.o
[62/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/latest_update.cpp.o
[63/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/player_danmaku_setting.cpp.o
[64/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/player_collection.cpp.o
[65/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/mine_qr_login.cpp.o
[66/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/search_hots.cpp.o
[67/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/search_history.cpp.o
[68/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/test_rumble.cpp.o
[69/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/search_cinema.cpp.o
[70/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/api/video_detail_api.cpp.o
/build/wiliwili/src/wiliwili/wiliwili/source/api/video_detail_api.cpp: In static member function ‘static void bilibili::BilibiliClient::get_webmask(const std::string&, uint64_t, uint64_t, const std::function<void(std::__cxx11::basic_string<char>)>&, const bilibili::ErrorCallback&)’:
/build/wiliwili/src/wiliwili/wiliwili/source/api/video_detail_api.cpp:43:20: warning: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
   43 |     if (rangeStart != -1) start = rangeStart;
      |         ~~~~~~~~~~~^~~~~
/build/wiliwili/src/wiliwili/wiliwili/source/api/video_detail_api.cpp:44:18: warning: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
   44 |     if (rangeEnd != -1) end = rangeEnd;
      |         ~~~~~~~~~^~~~~
[71/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/season_evaluate.cpp.o
[72/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/search_bangumi.cpp.o
[73/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/player_dlna_search.cpp.o
[74/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/mine_tab.cpp.o
[75/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/search_tab.cpp.o
[76/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/presenter/dynamic_tab.cpp.o
[77/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/setting_network.cpp.o
[78/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/space_tab.cpp.o
[79/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/search_video.cpp.o
[80/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/presenter/home_hots_all.cpp.o
[81/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/presenter/dynamic_video.cpp.o
[82/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/presenter/home_hots_history.cpp.o
[83/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/presenter/home_hots_rank.cpp.o
[84/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/presenter/home_hots_weekly.cpp.o
[85/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/presenter/home_recommends.cpp.o
[86/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/main.cpp.o
[87/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/player_setting.cpp.o
[88/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/utils/event_helper.cpp.o
[89/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/utils/number_helper.cpp.o
[90/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/fragment/player_single_comment.cpp.o
[91/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/presenter/home_live.cpp.o
[92/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/utils/gesture_helper.cpp.o
[93/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/utils/vibration_helper.cpp.o
[94/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/presenter/mine_history.cpp.o
[95/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/utils/string_helper.cpp.o
[96/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/presenter/mine_collection.cpp.o
[97/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/presenter/mine_later.cpp.o
[98/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/presenter/mine_bangumi.cpp.o
[99/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/presenter/home_pgc.cpp.o
[100/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/presenter/pgc_index.cpp.o
[101/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/view/check_box.cpp.o
[102/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/utils/dialog_helper.cpp.o
[103/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/view/custom_button.cpp.o
[104/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/view/button_close.cpp.o
[105/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/view/animation_image.cpp.o
[106/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/presenter/live_data.cpp.o
[107/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/view/auto_tab_frame.cpp.o
[108/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/view/live_core.cpp.o
[109/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/view/gallery_view.cpp.o
[110/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/view/grid_dropdown.cpp.o
/build/wiliwili/src/wiliwili/wiliwili/source/view/grid_dropdown.cpp: In member function ‘void BaseDropdown::setDataSource(DataSourceDropdown*)’:
/build/wiliwili/src/wiliwili/wiliwili/source/view/grid_dropdown.cpp:113:44: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  113 |     recycler->setDefaultCellFocus(selected == -1 ? 0 : selected);
      |                                   ~~~~~~~~~^~~~~
[111/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/view/hint_label.cpp.o
[112/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/utils/activity_helper.cpp.o
[113/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/utils/shader_helper.cpp.o
[114/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/view/hots_card.cpp.o
[115/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/utils/image_helper.cpp.o
[116/267] Linking CXX static library library/libqrcode.a
[117/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/view/recycling_grid.cpp.o
[118/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/view/up_user_small.cpp.o
[119/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/view/svg_image.cpp.o
[120/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/file.cpp.o
[121/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/multipart.cpp.o
[122/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/view/user_info.cpp.o
[123/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/parameters.cpp.o
[124/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/payload.cpp.o
[125/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/utils/version_helper.cpp.o
[126/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/view/video_profile.cpp.o
[127/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/view/video_progress_slider.cpp.o
[128/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/view/danmaku_core.cpp.o
/build/wiliwili/src/wiliwili/wiliwili/source/view/danmaku_core.cpp: In lambda function:
/build/wiliwili/src/wiliwili/wiliwili/source/view/danmaku_core.cpp:279:37: warning: comparison of integer expressions of different signedness: ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  279 |                     if (text.size() != 16 * maskData.length) {
      |                         ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
/build/wiliwili/src/wiliwili/wiliwili/source/view/danmaku_core.cpp: In member function ‘void WebMask::parseHeader2(const std::string&)’:
/build/wiliwili/src/wiliwili/wiliwili/source/view/danmaku_core.cpp:718:26: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare]
  718 |     for (size_t i = 0; i < length; i++) {
      |                        ~~^~~~~~~~
/build/wiliwili/src/wiliwili/wiliwili/source/view/danmaku_core.cpp:725:15: warning: comparison of integer expressions of different signedness: ‘size_t’ {aka ‘long unsigned int’} and ‘int32_t’ {aka ‘int’} [-Wsign-compare]
  725 |         if (i == length - 1) sliceList[i].offsetEnd = -1;
      |             ~~^~~~~~~~~~~~~
/build/wiliwili/src/wiliwili/wiliwili/source/view/danmaku_core.cpp: In lambda function:
/build/wiliwili/src/wiliwili/wiliwili/source/view/danmaku_core.cpp:776:41: warning: comparison of integer expressions of different signedness: ‘uint64_t’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
  776 |                     if (slice.offsetEnd == -1) slice.offsetEnd = text.size() + offset;
      |                         ~~~~~~~~~~~~~~~~^~~~~
[129/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/proxies.cpp.o
[130/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/redirect.cpp.o
[131/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/timeout.cpp.o
[132/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/unix_socket.cpp.o
[133/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/curlmultiholder.cpp.o
[134/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/view/video_card.cpp.o
[135/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/view/text_box.cpp.o
[136/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/proxyauth.cpp.o
[137/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/view/subtitle_core.cpp.o
[138/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/view/mpv_core.cpp.o
[139/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/threadpool.cpp.o
[140/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/ssl_ctx.cpp.o
[141/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/util.cpp.o
[142/267] Building CXX object library/lunasvg/CMakeFiles/lunasvg.dir/source/property.cpp.o
[143/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/response.cpp.o
[144/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/presenter/video_detail.cpp.o
[145/267] Building CXX object library/lunasvg/CMakeFiles/lunasvg.dir/source/element.cpp.o
[146/267] Building CXX object library/lunasvg/CMakeFiles/lunasvg.dir/source/lunasvg.cpp.o
[147/267] Building CXX object library/lunasvg/CMakeFiles/lunasvg.dir/source/canvas.cpp.o
[148/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/interceptor.cpp.o
[149/267] Building CXX object library/lunasvg/CMakeFiles/lunasvg.dir/source/clippathelement.cpp.o
[150/267] Building CXX object library/lunasvg/CMakeFiles/lunasvg.dir/source/graphicselement.cpp.o
[151/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/utils/register_helper.cpp.o
[152/267] Building CXX object library/lunasvg/CMakeFiles/lunasvg.dir/source/gelement.cpp.o
[153/267] Building CXX object library/lunasvg/CMakeFiles/lunasvg.dir/source/defselement.cpp.o
[154/267] Building C object library/lunasvg/CMakeFiles/lunasvg.dir/3rdparty/plutovg/plutovg.c.o
[155/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/multiperform.cpp.o
[156/267] Building CXX object library/lunasvg/CMakeFiles/lunasvg.dir/source/layoutcontext.cpp.o
[157/267] Building CXX object library/lunasvg/CMakeFiles/lunasvg.dir/source/maskelement.cpp.o
[158/267] Building C object library/lunasvg/CMakeFiles/lunasvg.dir/3rdparty/plutovg/plutovg-paint.c.o
[159/267] Building C object library/lunasvg/CMakeFiles/lunasvg.dir/3rdparty/plutovg/plutovg-dash.c.o
[160/267] Building CXX object library/lunasvg/CMakeFiles/lunasvg.dir/source/styledelement.cpp.o
[161/267] Building C object library/lunasvg/CMakeFiles/lunasvg.dir/3rdparty/plutovg/plutovg-geometry.c.o
[162/267] Building C object library/lunasvg/CMakeFiles/lunasvg.dir/3rdparty/plutovg/plutovg-rle.c.o
[163/267] Building C object library/lunasvg/CMakeFiles/lunasvg.dir/3rdparty/plutovg/plutovg-blend.c.o
[164/267] Building CXX object library/lunasvg/CMakeFiles/lunasvg.dir/source/styleelement.cpp.o
[165/267] Building C object library/lunasvg/CMakeFiles/lunasvg.dir/3rdparty/plutovg/plutovg-ft-math.c.o
[166/267] Building C object library/lunasvg/CMakeFiles/lunasvg.dir/3rdparty/plutovg/plutovg-ft-raster.c.o
[167/267] Building C object library/lunasvg/CMakeFiles/lunasvg.dir/3rdparty/plutovg/plutovg-ft-stroker.c.o
[168/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/utils/config_helper.cpp.o
[169/267] Building CXX object library/lunasvg/CMakeFiles/lunasvg.dir/source/stopelement.cpp.o
[170/267] Building CXX object library/lunasvg/CMakeFiles/lunasvg.dir/source/markerelement.cpp.o
[171/267] Building CXX object library/lunasvg/CMakeFiles/lunasvg.dir/source/symbolelement.cpp.o
[172/267] Building CXX object library/lunasvg/CMakeFiles/lunasvg.dir/source/paintelement.cpp.o
[173/267] Building CXX object library/borealis/library/CMakeFiles/borealis.dir/lib/platforms/desktop/desktop_winrt.cpp.o
[174/267] Building CXX object library/lunasvg/CMakeFiles/lunasvg.dir/source/geometryelement.cpp.o
[175/267] Building CXX object library/borealis/library/CMakeFiles/tinyxml2.dir/lib/extern/tinyxml2/tinyxml2.cpp.o
[176/267] Building CXX object library/lunasvg/CMakeFiles/lunasvg.dir/source/svgelement.cpp.o
[177/267] Linking CXX static library library/borealis/library/libtinyxml2.a
[178/267] Building CXX object library/cpr/cpr/CMakeFiles/cpr.dir/session.cpp.o
[179/267] Building C object library/mongoose/CMakeFiles/mongoose.dir/mongoose.c.o
[180/267] Linking C static library library/mongoose/libmongoose.a
[181/267] Building CXX object library/lunasvg/CMakeFiles/lunasvg.dir/source/useelement.cpp.o
[182/267] Linking CXX static library library/cpr/cpr/libcpr.a
[183/267] Linking CXX static library library/libpdr.a
[184/267] Building CXX object library/lunasvg/CMakeFiles/lunasvg.dir/source/parser.cpp.o
[185/267] Building C object library/borealis/library/CMakeFiles/borealis.dir/lib/extern/nanovg/nanovg.c.o
[186/267] Building CXX object library/borealis/library/CMakeFiles/borealis.dir/lib/core/geometry.cpp.o
[187/267] Linking CXX static library lib/liblunasvg.a
[188/267] Building CXX object library/borealis/library/CMakeFiles/borealis.dir/lib/platforms/glfw/glfw_video.cpp.o
FAILED: library/borealis/library/CMakeFiles/borealis.dir/lib/platforms/glfw/glfw_video.cpp.o 
/usr/bin/c++ -DFONS_HASH_LUT_SIZE=4096 -D__GLFW__ -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/build/wiliwili/src/wiliwili/library/borealis/library/include -I/build/wiliwili/src/wiliwili/library/borealis/library/include/borealis/extern -I/build/wiliwili/src/wiliwili/library/borealis/library/include/borealis/extern/nanovg -I/build/wiliwili/src/wiliwili/library/borealis/library/lib/extern/fmt/include -I/build/wiliwili/src/wiliwili/library/borealis/library/lib/extern/tweeny/include -I/build/wiliwili/src/wiliwili/library/borealis/library/lib/extern/yoga/yoga/.. -I/build/wiliwili/src/wiliwili/library/borealis/library/include/borealis/extern/tinyxml2 -isystem /usr/include/opencc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/wiliwili/src=/usr/src/debug/wiliwili -flto=auto -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/wiliwili/src=/usr/src/debug/wiliwili -flto=auto -O3 -Wall -std=gnu++17 -DBRLS_RESOURCES=\"/usr/share/wiliwili/resources/\" -DYG_ENABLE_EVENTS -ffunction-sections -fdata-sections -DOPENCC -D__GLFW__ -DBOREALIS_USE_OPENGL -MD -MT library/borealis/library/CMakeFiles/borealis.dir/lib/platforms/glfw/glfw_video.cpp.o -MF library/borealis/library/CMakeFiles/borealis.dir/lib/platforms/glfw/glfw_video.cpp.o.d -o library/borealis/library/CMakeFiles/borealis.dir/lib/platforms/glfw/glfw_video.cpp.o -c /build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_video.cpp
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_video.cpp: In constructor ‘brls::GLFWVideoContext::GLFWVideoContext(const std::string&, uint32_t, uint32_t, float, float)’:
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_video.cpp:245:24: error: ‘GLFW_SOFT_FULLSCREEN’ was not declared in this scope
  245 |         glfwWindowHint(GLFW_SOFT_FULLSCREEN, 1);
      |                        ^~~~~~~~~~~~~~~~~~~~
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_video.cpp:294:25: warning: comparison of integer expressions of different signedness: ‘const int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
  294 |         if (mode->width >= windowWidth && mode->height >= windowHeight)
      |             ~~~~~~~~~~~~^~~~~~~~~~~~~~
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_video.cpp:294:56: warning: comparison of integer expressions of different signedness: ‘const int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
  294 |         if (mode->width >= windowWidth && mode->height >= windowHeight)
      |                                           ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
[189/267] Building CXX object library/borealis/library/CMakeFiles/borealis.dir/lib/platforms/glfw/glfw_ime.cpp.o
FAILED: library/borealis/library/CMakeFiles/borealis.dir/lib/platforms/glfw/glfw_ime.cpp.o 
/usr/bin/c++ -DFONS_HASH_LUT_SIZE=4096 -D__GLFW__ -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/build/wiliwili/src/wiliwili/library/borealis/library/include -I/build/wiliwili/src/wiliwili/library/borealis/library/include/borealis/extern -I/build/wiliwili/src/wiliwili/library/borealis/library/include/borealis/extern/nanovg -I/build/wiliwili/src/wiliwili/library/borealis/library/lib/extern/fmt/include -I/build/wiliwili/src/wiliwili/library/borealis/library/lib/extern/tweeny/include -I/build/wiliwili/src/wiliwili/library/borealis/library/lib/extern/yoga/yoga/.. -I/build/wiliwili/src/wiliwili/library/borealis/library/include/borealis/extern/tinyxml2 -isystem /usr/include/opencc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/wiliwili/src=/usr/src/debug/wiliwili -flto=auto -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/wiliwili/src=/usr/src/debug/wiliwili -flto=auto -O3 -Wall -std=gnu++17 -DBRLS_RESOURCES=\"/usr/share/wiliwili/resources/\" -DYG_ENABLE_EVENTS -ffunction-sections -fdata-sections -DOPENCC -D__GLFW__ -DBOREALIS_USE_OPENGL -MD -MT library/borealis/library/CMakeFiles/borealis.dir/lib/platforms/glfw/glfw_ime.cpp.o -MF library/borealis/library/CMakeFiles/borealis.dir/lib/platforms/glfw/glfw_ime.cpp.o.d -o library/borealis/library/CMakeFiles/borealis.dir/lib/platforms/glfw/glfw_ime.cpp.o -c /build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp: In static member function ‘static void brls::GLFWImeManager::ime_callback(GLFWwindow*)’:
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp:68:49: error: ‘GLFW_IME’ was not declared in this scope; did you mean ‘GLFW_TRUE’?
   68 |     currentIMEStatus = glfwGetInputMode(window, GLFW_IME);
      |                                                 ^~~~~~~~
      |                                                 GLFW_TRUE
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp: In static member function ‘static void brls::GLFWImeManager::char_callback(GLFWwindow*, unsigned int)’:
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp:135:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<wchar_t>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  135 |     if (cursor < 0 || cursor > textBuffer.size()) cursor = textBuffer.size();
      |                       ~~~~~~~^~~~~~~~~~~~~~~~~~~
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp: In constructor ‘brls::GLFWImeManager::GLFWImeManager(GLFWwindow*)’:
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp:144:49: error: ‘GLFW_IME’ was not declared in this scope; did you mean ‘GLFW_TRUE’?
  144 |     currentIMEStatus = glfwGetInputMode(window, GLFW_IME);
      |                                                 ^~~~~~~~
      |                                                 GLFW_TRUE
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp:145:5: error: ‘glfwSetPreeditCursorRectangle’ was not declared in this scope
  145 |     glfwSetPreeditCursorRectangle(window, 0, 0, 1, 1);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp:146:5: error: ‘glfwSetIMEStatusCallback’ was not declared in this scope; did you mean ‘glfwSetMonitorCallback’?
  146 |     glfwSetIMEStatusCallback(window, ime_callback);
      |     ^~~~~~~~~~~~~~~~~~~~~~~~
      |     glfwSetMonitorCallback
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp:147:5: error: ‘glfwSetPreeditCallback’ was not declared in this scope; did you mean ‘glfwSetKeyCallback’?
  147 |     glfwSetPreeditCallback(window, preedit_callback);
      |     ^~~~~~~~~~~~~~~~~~~~~~
      |     glfwSetKeyCallback
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp: In member function ‘void brls::GLFWImeManager::openInputDialog(std::function<void(std::__cxx11::basic_string<char>)>, std::string, std::string, size_t, std::string)’:
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp:155:30: error: ‘GLFW_IME’ was not declared in this scope; did you mean ‘GLFW_TRUE’?
  155 |     glfwSetInputMode(window, GLFW_IME, GLFW_TRUE);
      |                              ^~~~~~~~
      |                              GLFW_TRUE
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp: In lambda function:
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp:167:11: error: ‘glfwSetPreeditCursorRectangle’ was not declared in this scope
  167 |         { glfwSetPreeditCursorRectangle(window, p.x * scale, p.y * scale, 1, 1); });
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp: In lambda function:
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp:197:42: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<wchar_t>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  197 |                 if (cursor < 0 || cursor > textBuffer.size()) cursor = textBuffer.size();
      |                                   ~~~~~~~^~~~~~~~~~~~~~~~~~~
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp: In lambda function:
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp:209:38: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<wchar_t>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  209 |             if (cursor < 0 || cursor > textBuffer.size()) cursor = textBuffer.size();
      |                               ~~~~~~~^~~~~~~~~~~~~~~~~~~
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp:210:38: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<wchar_t>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  210 |             if (cursor > 0 && cursor <= textBuffer.size()) {
      |                               ~~~~~~~^~~~~~~~~~~~~~~~~~~~
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp: In lambda function:
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp:234:28: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::__cxx11::basic_string<wchar_t>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
  234 |                 if (cursor < textBuffer.size()) {
      |                     ~~~~~~~^~~~~~~~~~~~~~~~~~~
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp: In lambda function:
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp:244:38: error: ‘GLFW_IME’ is not captured
  244 |             glfwSetInputMode(window, GLFW_IME, GLFW_FALSE);
      |                                      ^~~~~~~~
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp:242:55: note: the lambda has no capture-default
  242 |     dialog->getCancelEvent()->subscribe([this, eventID]()
      |                                                       ^
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp:155:30: note: ‘<typeprefixerror>GLFW_IME’ declared here
  155 |     glfwSetInputMode(window, GLFW_IME, GLFW_TRUE);
      |                              ^~~~~~~~
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp: In lambda function:
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp:251:38: error: ‘GLFW_IME’ is not captured
  251 |             glfwSetInputMode(window, GLFW_IME, GLFW_FALSE);
      |                                      ^~~~~~~~
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp:249:59: note: the lambda has no capture-default
  249 |     dialog->getSubmitEvent()->subscribe([this, eventID, cb]()
      |                                                           ^
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_ime.cpp:155:30: note: ‘<typeprefixerror>GLFW_IME’ declared here
  155 |     glfwSetInputMode(window, GLFW_IME, GLFW_TRUE);
      |                              ^~~~~~~~
[190/267] Building CXX object library/borealis/library/CMakeFiles/borealis.dir/lib/platforms/desktop/desktop_ime.cpp.o
[191/267] Building CXX object library/borealis/library/CMakeFiles/borealis.dir/lib/platforms/glfw/glfw_input.cpp.o
FAILED: library/borealis/library/CMakeFiles/borealis.dir/lib/platforms/glfw/glfw_input.cpp.o 
/usr/bin/c++ -DFONS_HASH_LUT_SIZE=4096 -D__GLFW__ -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/build/wiliwili/src/wiliwili/library/borealis/library/include -I/build/wiliwili/src/wiliwili/library/borealis/library/include/borealis/extern -I/build/wiliwili/src/wiliwili/library/borealis/library/include/borealis/extern/nanovg -I/build/wiliwili/src/wiliwili/library/borealis/library/lib/extern/fmt/include -I/build/wiliwili/src/wiliwili/library/borealis/library/lib/extern/tweeny/include -I/build/wiliwili/src/wiliwili/library/borealis/library/lib/extern/yoga/yoga/.. -I/build/wiliwili/src/wiliwili/library/borealis/library/include/borealis/extern/tinyxml2 -isystem /usr/include/opencc -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/wiliwili/src=/usr/src/debug/wiliwili -flto=auto -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/wiliwili/src=/usr/src/debug/wiliwili -flto=auto -O3 -Wall -std=gnu++17 -DBRLS_RESOURCES=\"/usr/share/wiliwili/resources/\" -DYG_ENABLE_EVENTS -ffunction-sections -fdata-sections -DOPENCC -D__GLFW__ -DBOREALIS_USE_OPENGL -MD -MT library/borealis/library/CMakeFiles/borealis.dir/lib/platforms/glfw/glfw_input.cpp.o -MF library/borealis/library/CMakeFiles/borealis.dir/lib/platforms/glfw/glfw_input.cpp.o.d -o library/borealis/library/CMakeFiles/borealis.dir/lib/platforms/glfw/glfw_input.cpp.o -c /build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_input.cpp
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_input.cpp: In constructor ‘brls::GLFWInputManager::GLFWInputManager(GLFWwindow*)’:
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_input.cpp:186:9: error: ‘glfwTouchInputSupported’ was not declared in this scope; did you mean ‘glfwVulkanSupported’?
  186 |     if (glfwTouchInputSupported())
      |         ^~~~~~~~~~~~~~~~~~~~~~~
      |         glfwVulkanSupported
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_input.cpp:188:34: error: ‘GLFW_TOUCH’ was not declared in this scope; did you mean ‘GLFW_TRUE’?
  188 |         glfwSetInputMode(window, GLFW_TOUCH, GLFW_TRUE);
      |                                  ^~~~~~~~~~
      |                                  GLFW_TRUE
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_input.cpp:189:9: error: ‘glfwSetTouchCallback’ was not declared in this scope; did you mean ‘glfwTouchCallback’?
  189 |         glfwSetTouchCallback(window, glfwTouchCallback);
      |         ^~~~~~~~~~~~~~~~~~~~
      |         glfwTouchCallback
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_input.cpp: At global scope:
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/glfw/glfw_input.cpp:104:13: warning: ‘void brls::glfwTouchCallback(GLFWwindow*, int, int, double, double)’ defined but not used [-Wunused-function]
  104 | static void glfwTouchCallback(GLFWwindow* window, int touch, int action, double xpos, double ypos)
      |             ^~~~~~~~~~~~~~~~~
[192/267] Building CXX object library/borealis/library/CMakeFiles/borealis.dir/lib/core/gesture.cpp.o
[193/267] Building CXX object library/borealis/library/CMakeFiles/borealis.dir/lib/core/bind.cpp.o
[194/267] Building CXX object library/borealis/library/CMakeFiles/borealis.dir/lib/platforms/desktop/desktop_platform.cpp.o
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/desktop/desktop_platform.cpp: In member function ‘virtual void brls::DesktopPlatform::openBrowser(std::string)’:
/build/wiliwili/src/wiliwili/library/borealis/library/lib/platforms/desktop/desktop_platform.cpp:858:11: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  858 |     system(cmd.c_str());
      |     ~~~~~~^~~~~~~~~~~~~
[195/267] Building CXX object library/borealis/library/CMakeFiles/borealis.dir/lib/core/activity.cpp.o
[196/267] Building CXX object library/borealis/library/CMakeFiles/borealis.dir/lib/platforms/desktop/desktop_font.cpp.o
[197/267] Building CXX object library/borealis/library/CMakeFiles/borealis.dir/lib/core/animation.cpp.o
[198/267] Building CXX object library/borealis/library/CMakeFiles/borealis.dir/lib/platforms/glfw/glfw_platform.cpp.o
[199/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/view/video_comment.cpp.o
[200/267] Building CXX object library/borealis/library/CMakeFiles/borealis.dir/lib/core/font.cpp.o
[201/267] Building CXX object library/borealis/library/CMakeFiles/borealis.dir/lib/core/input.cpp.o
[202/267] Building CXX object library/borealis/library/CMakeFiles/borealis.dir/lib/core/box.cpp.o
[203/267] Building CXX object library/borealis/library/CMakeFiles/borealis.dir/lib/core/application.cpp.o
[204/267] Building CXX object CMakeFiles/wiliwili.dir/wiliwili/source/view/video_view.cpp.o
[205/267] Building CXX object library/borealis/library/CMakeFiles/borealis.dir/lib/core/i18n.cpp.o
ninja: build stopped: subcommand failed.
xfangfang commented 10 months ago

@Puqns67 不要用系统的 glfw,那个选项是为了ci编译时候加速用的,正常情况自己编译需要使用wiliwili内置的glfw (增加了 windows触摸,pc平台输入法支持)

Puqns67 commented 10 months ago

@Puqns67 不要用系统的 glfw,那个选项是为了ci编译时候加速用的,正常情况自己编译需要使用wiliwili内置的glfw (增加了 windows触摸,pc平台输入法支持)

看了一下上游那边的 todo,这两个需求都有人提交了对应的 PR,希望能在有生之年能见到合并吧。(也希望在上游实现这些功能后 wiliwili 能直接使用上游版本)