Newer protobuf requires at least C++14, abseil may need C++17
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 38/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- cpp
- Área
- build-system
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- C++
- Estrellas
- 773
- Forks
- 233
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de OpenLightingProject/ola
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
OpenLightingProject/ola#2075 ·
-
Digital Enlightenment / FX5 not recognizedPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoquestion Type-DeviceSupport
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
OpenLightingProject/ola#2056 · 2 comentarios ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
OpenLightingProject/ola#2055 ·
-
Difficulty-Medium Language-C++ Maintainability OpSys-All
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
OpenLightingProject/ola#2053 · 1 comentario ·
-
v0.11.0Quizá libre de nuevo @peternewman la tomó hace 227 días y no hay ningún pull request abierto. Abierto
OpenLightingProject/ola#2038 · 18 comentarios · 2 asignados ·
Todos los issues de OpenLightingProject/ola
Issues similares
-
[内容勘误] STL常用模式章节实战演练中代码有问题Abiertodocumentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
Awesome-Embedded-Learning-Studio/Tutorial_AwesomeModernCPP#335 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
deepseek-ai/DeepEP#830 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
google-ai-edge/LiteRT-LM#4701 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
HarperFast/rocksdb-js#1131 ·
Los mantenedores suelen responder en 1 día
-
Swapped cache lookups in ScanModelAndDecideAllDiffExpansionPosiblemente ocupada @Lian292213 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día