Skip to content

Build failed if without format support #9064

Description

@re2zero

Sanity checks

  • I have done the sanity checks, and my issue persists
  • These sanity checks are not relevant to the bug

Deskflow version info

Deskflow: master(e108afd)
Qt:6.8.0
System: Deepin V25
Session: Unity

Build type

Local developer build (built it myself)

Operating systems (OS)

  • Windows
  • macOS
  • Linux (X11)
  • Linux (Wayland)
  • BSD-derived
  • Other (please specify)

Deskflow configuration

  • Try to build with the source codes

What steps will reproduce the problem?

  1. cd deskflow
  2. cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
  3. cmake --build build/ -j$(nproc)

Log output

Additional information

It failed to build with low gcc(g++) compiler which without "format" support.

g++ --version
g++ (Deepin 12.3.0-17deepin12) 12.3.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

build error:

/home/zero/work/deskflow/src/lib/base/Log.cpp:22:10: fatal error: format: 没有那个文件或目录
   22 | #include <format>
      |          ^~~~~~~~
compilation terminated.
gmake[2]: *** [src/lib/base/CMakeFiles/base.dir/build.make:177:src/lib/base/CMakeFiles/base.dir/Log.cpp.o] 错误 1
gmake[2]: *** 正在等待未完成的任务....
[ 14%] Linking CXX executable SettingsTests
[ 14%] Built target SettingsTests
gmake[1]: *** [CMakeFiles/Makefile2:1042:src/lib/base/CMakeFiles/base.dir/all] 错误 2
gmake: *** [Makefile:156:all] 错误 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions