librime icon indicating copy to clipboard operation
librime copied to clipboard

Build fail with glog 0.7

Open ZeekoZhu opened this issue 1 year ago • 1 comments

Describe the bug

Build librime will fail with glog 0.7

To Reproduce Steps to reproduce the bug:

  1. clone the repo
  2. build with the following command
cmake . -GNinja -Bbuild -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_MERGED_PLUGINS=Off -DENABLE_EXTERNAL_PLUGINS=On
cmake --build build

Expected behavior Build should success.

Log

 1376 |   LogMessage(const LogMessage&) = delete;
      |                                 ^
/usr/include/glog/logging.h:1377:3: error: ‘LogMessage’ does not name a type
 1377 |   LogMessage& operator=(const LogMessage&) = delete;
      |   ^~~~~~~~~~
/usr/include/glog/logging.h:1379:2: error: expected unqualified-id before ‘private’

Screenshots If applicable, add screenshots to help explain your problem.

Flavor(please complete the following information): Select your flavor:

  • [ ] ibus-rime
  • [ ] fcitx-rime
  • [*] fcitx5-rime
  • [ ] Squirrel
  • [ ] Trime
  • [ ] Weasel

Package:

  • OS: ArchLinux
  • Version: 20240222
  • URI: N/A

Additional context Add any other context about the problem here.

ZeekoZhu avatar Feb 22 '24 03:02 ZeekoZhu

A possible fix would be https://github.com/archlinuxcn/repo/pull/3656/files?diff=unified&w=0#diff-ab3bf317eb940e89ab7d2e235ec51e25c003f8ca472a788f882bc9d9633414d9

ZeekoZhu avatar Feb 22 '24 03:02 ZeekoZhu