Newer protobuf requires at least C++14, abseil may need C++17
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- cpp
- Lĩnh vực
- build-system
Hướng nghiên cứu
Start with the configure check shown in the issue and review the attempted 0.10-c14-compat branch, alongside the protobuf version-check fix from #1875. Reproduce the header check with newer protobuf and Abseil versions, then verify that the configure tests compile successfully and that the resulting build remains compatible with supported dependencies.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Additionally. unfortunately, protobuf also requires at least C++14 but the configure only set `-std=gnu++11`, making the compilation of the test programs, which check for the protobuf headers, fail.
(This is after applying the fix for the protobuf version check in #1875.)
configure:25968: checking for google/protobuf/compiler/command_line_interface.h
configure:25968: g++ -c -g -O2 -std=gnu++11 conftest.cpp >&5
In file included from /usr/include/absl/base/config.h:86,
from /usr/include/absl/base/attributes.h:37,
from /usr/include/absl/base/internal/raw_logging.h:24,
from /usr/include/absl/container/internal/btree.h:61,
from /usr/include/absl/container/btree_map.h:56,
from /usr/include/google/protobuf/compiler/command_line_interface.h:48,
from conftest.cpp:178:
/usr/include/absl/base/policy_checks.h:79:2: error: #error "C++ versions less than C++14 are not supported."
79 | #error "C++ versions less than C++14 are not supported."
| ^~~~~
Originally posted by @SpotlightKid in https://github.com/OpenLightingProject/ola/issues/1867#issuecomment-1630487399
This says that protobuf supported C++11 until just before version 22.0:
https://protobuf.dev/news/2022-08-03/
Likewise this release of Abseil should work with C++11:
https://github.com/abseil/abseil-cpp/tree/20220623.1
Originally posted by @peternewman in https://github.com/OpenLightingProject/ola/issues/1867#issuecomment-1631621302
Alas, that doesn't help when compiling ola for packages of Linux distributions, which ship newer protobuf versions.
Originally posted by @SpotlightKid in https://github.com/OpenLightingProject/ola/issues/1867#issuecomment-1631625825
You can also try this branch where I've made some very rudimentary attempts:
https://github.com/peternewman/ola/tree/0.10-c14-compat
More generally if someone can either do us a GitHub Action which compiles against Arch or can run a Buildbot or something we should catch these issues a lot sooner and be able to react to them better. Otherwise it's likely to be a case of pull requests welcome unfortunately...
Originally posted by @peternewman in https://github.com/OpenLightingProject/ola/issues/1867#issuecomment-1631629938
- Ngôn ngữ chính
- C++
- Star
- 773
- Fork
- 233
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của OpenLightingProject/ola
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
OpenLightingProject/ola#2075 ·
-
Digital Enlightenment / FX5 not recognizedCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởquestion Type-DeviceSupport
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
OpenLightingProject/ola#2056 · 2 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
OpenLightingProject/ola#2055 ·
-
Difficulty-Medium Language-C++ Maintainability OpSys-All
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
OpenLightingProject/ola#2053 · 1 bình luận ·
-
v0.11.0Có thể làm lại được @peternewman đã nhận 227 ngày trước và không có pull request nào đang mở. Đang mở
OpenLightingProject/ola#2038 · 18 bình luận · 2 người được giao ·
Tất cả issue của OpenLightingProject/ola
Issue tương tự
-
[内容勘误] STL常用模式章节实战演练中代码有问题Đang mởdocumentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP#335 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
deepseek-ai/DeepEP#830 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
google-ai-edge/LiteRT-LM#4701 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
HarperFast/rocksdb-js#1131 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Swapped cache lookups in ScanModelAndDecideAllDiffExpansionCó thể đã có người làm @Lian292213 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày