Conda: Unable to find libupb, etc

16 views
Skip to first unread message

Arnab Joardar

unread,
Aug 25, 2025, 2:10:22 AM (12 days ago) Aug 25
to Protocol Buffers
Hello everyone,

When attempting to build a ROS package (Noetic) on Conda, I run into the following error:
```
Call Stack (most recent call first):
  /usr/lib/x86_64-linux-gnu/cmake/gazebo/gazebo-config.cmake:206 (find_package)
  CMakeLists.txt:11 (find_package)


CMake Error at /opt/anaconda3/envs/ros_exp/lib/cmake/protobuf/protobuf-targets.cmake:42 (message):
  Some (but not all) targets in this export set were already defined.

  Targets Defined: protobuf::libprotobuf-lite, protobuf::libprotobuf,
  protobuf::libprotoc, protobuf::protoc

  Targets not yet defined: protobuf::libupb, protobuf::protoc-gen-upb,
  protobuf::protoc-gen-upbdefs, protobuf::protoc-gen-upb_minitable

Call Stack (most recent call first):
  /opt/anaconda3/envs/ros_exp/lib/cmake/protobuf/protobuf-config.cmake:16 (include)
  /usr/share/cmake/ignition-cmake2/cmake2/FindIgnProtobuf.cmake:29 (find_package)
  /usr/lib/x86_64-linux-gnu/cmake/ignition-transport8/ignition-transport8-config.cmake:92 (find_package)
  /usr/lib/x86_64-linux-gnu/cmake/gazebo/gazebo-config.cmake:244 (find_package)
  CMakeLists.txt:11 (find_package)
```
I have tried with the following dependencies:
```
conda list                                                                                                                                                                                                                                                ──(Fri,Aug22)─┘
# packages in environment at /opt/anaconda3/envs/ros_exp:
#
# Name                     Version          Build                  Channel
libprotobuf                5.27.1           hb1b590f_0             conda-forge
protobuf                   5.27.1           py313h46c70d0_0        conda-forge
```
I have attached a full list of packages installed in the virtual environment, if anybody wishes to check something ('Conda_list.txt').
Any hints as to what I may be doing incorrectly would be greatly appreciated.

I plan to compile Protobuf from source to try to get it to work.

OS: Ubuntu 20.04
Package Manager: Conda

Regards,
Arnab
Conda_list
Reply all
Reply to author
Forward
0 new messages