sbxlmdsl / librime

BSD 3-Clause "New" or "Revised" License
6 stars 2 forks source link

Build fail with glog 0.7 #2

Open ZeekoZhu opened 4 months ago

ZeekoZhu commented 4 months ago

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:

Package:

Additional context Add any other context about the problem here.

ZeekoZhu commented 4 months ago

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