-
Notifications
You must be signed in to change notification settings - Fork 15.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suspecting multiple protobuf in my Ubuntu PC causing "undefined reference" issues while compiling #4001
Comments
It looks to me like there is a mismatch between your protoc version and the version of the protobuf library that you're linking against. To simplify things it might help to remove |
Thanks a lot. I removed
The above seems too dangerous to proceed. What do you say? |
Sure, you could use the existing protobuf installed via apt. In that case you would want to reinstall |
I reinstalled
I still suspect that some other versions are also existing. Although, I tried to search, but I am not sure how to proceed in this situation. Please see below:
Please suggest some workaround. |
Hi, I would like to add my findings in order to make the debugging simpler. Today morning, I installed a ROS Indigo on fresh Ubuntu 14.04 LTS VM. Then I installed After this, I just compiled my project and it compiled without any issues. I believe that in my original PC, other versions of protocol buffers are existing. How to remove them without disturbing ROS? |
The package manager will not generally put anything in |
Surprisingly, these files do not exist. Please see below:
|
@ravijo If those files don't exist then it seems to me like you should be good to go, with just one protobuf version installed on your system--are you still running into any problems? |
Yes. I am getting the same errors (posted in the top of this thread)
By the way, I have another idea in my mind. Can you help me to implement it? Inside a ROS pacakage sub directory, I extracted I want to know that how to configure my ROS Package |
@ravijo I'm not familiar with ROS at all so it's hard for me to say how to make it work with your protobuf subdirectory. I'm guessing that something is wrong with your build setup. Is your tutorial code using a protoc other than |
@acozzette: Basically the problem arrived since I installed protocol buffer 3 from source and I was unaware that the older version of protocol buffer is being used by ROS and already present in the system. Although, I followed your suggestion to remove the protocol buffer 3 but the problem still exists. Below is the more information about
Well, I am in the process of debugging. I will get back to you once I finish it. Thanks again. |
I did following workaround to solve the issue: I realized that I just need following two variables to compile and run with Protocol Buffers:
Hence, I added following lines in
Please note that Protocol Buffers was installed locally by using |
Great, I'm glad you were able to find a solution. |
good partners |
Hi, Here is the Error output:
apt-list output:
dpkg -l output:
whereis output:
pip show output:
and at last my LD_LIBRARY_PATH, cause i read on other Threads that this may cause this error.
For me it seems that i need libprotobuf 3.5.0 but the system has version 3.0.0 and only in my conda environment i have version 3.7.1, is that correct? I used this command a few days ago to install libprotobuf: I' very grateful for any tips and help. |
Hi,
I am trying to use protobuf inside ROS Indigo in my Ubuntu 14.04 LTS PC. Every time, when I compile the project, I am getting
undefined reference
issues. Below is the snippet of errors:Initially, I installed protobuf from source but it went wrong and then I decided to use
apt-get
.apt-get
installed protobuf 2.*. I knew that it is a blunder mistake and hence I treid to removed protobuf. Well, after this, I installed protobuf latest from GitHub source. I realized thatprotoc --version
is working well and but still getting "undefined reference" issues.I tried to search installed protobuf on my Ubuntu PC and found multiple entries. Please see below:
apt list output:
dpkg -l output:
What's going wrong here? Any workaround, please?
Thank you very much.
The text was updated successfully, but these errors were encountered: