Skip to content
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

How to assign protobuf location when building on ubuntu? #138

Open
skyday123 opened this issue Apr 26, 2019 · 1 comment
Open

How to assign protobuf location when building on ubuntu? #138

skyday123 opened this issue Apr 26, 2019 · 1 comment

Comments

@skyday123
Copy link

skyday123 commented Apr 26, 2019

I have built a protobuf 3.6.1 library and add the directory to LD_LIBRARY_PATH and LIBRARY_PATH. After make, I check the link of libtengine.so by ldd, it shows:
libprotobuf.so.8 => /usr/lib64/libprotobuf.so.8
So does the Makefile assigned the location of protobuf explicitly? I checked the Makefile and the only related code is -lprotobuf thus my protobuf should be linked first?

@hey-yahei
Copy link

Hi, @skyday123
GCC would select the first one when it searches libraries. Please echo $LD_LIBRARY_PATH and echo LIBRARY_PATH to check if your path to protobuf 3.6.1 is at the first field in variable LD_LIBRARY_PATH and LIBRARY_PATH.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants