glog redefinition using ceres solver and or-tools together #4165
Unanswered
Youhaochan
asked this question in
Build and configuration issues
Replies: 1 comment 2 replies
-
First, GLOG is deprecated (and no more maintained by Google)... In v9.5, code was moved to Line 455 in 92eab40 In v9.6, it was replaced by abs::log (finally released after few years of use internally as replacement of GLOG...) Which version of or-tools did you use ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My C++ project currently utilizes the VRP algorithm implemented in OR-Tools, and the NLP solver in Ceres Solver. However, when attempting to build my project, I encountered the following error:
/usr/local/include/glog/logging.h:675:8: error: redefinition of ‘struct google::CheckOpString’
675 | struct CheckOpString {
| ^~~~~~~~~~~~~
/usr/local/include/ortools/base/logging.h:504:8: note: previous definition of ‘struct google::CheckOpString’
504 | struct CheckOpString {
| ^~~~~~~~~~~~~
It appears that OR-Tools has its own Glog file, and Ceres relies on the external Glog library, resulting in a conflict. How can I resolve this issue?
Beta Was this translation helpful? Give feedback.
All reactions