Comments (4)
Yes, this is really a problem with Ubuntu 16.04, which ships a really old protobuf version (2.6.1), but eCAL requires protobuf > 3.0.
If you can, switching to Ubuntu 18.04 might make things easier, because the system protobuf package fullfills ecals requirements.
Also protobuf and CPack don't play together nicely.
Therefor I would recommend the following:
Download recent protobuf sources (we always tested with 3.5.1) and build protobuf from source.
Then create a debian package using checkinstall.
git clone https://github.com/google/protobuf.git
cd protobuf
git checkout 3.5.1.1
./autogen
./configure "CFLAGS=-fPIC" "CXXFLAGS=-fPIC"
make -j8
make check -j8
checkinstall --pkgname libprotobuf3-dev --pkgversion 3.5.1.1 --pkgrelease 2 --pkglicense "BSD" --provides libprotobuf3-dev --default --fstrans=yes --maintainer \"[email protected]\" --default --exclude \"/home\" --install=no
This will create a .deb file for you which you can install with
sudo dpkg -i <name-of-deb>.deb
sudo ldconfig
Unlike with CPack, checkinstall will install everything to usr/local
instead of usr
so you won't get into trouble with conflicting headers.
If you don't care about your system, you can also just do sudo make install
instead of creating a debian package 😉
After these steps, eCAL should compile successfully (with ECAL_THIRDPARTY_BUILD_PROTOBUF
to OFF
)
from ecal.
Hi @famkoc, by default eCAL ships it dependencies inside the thirdparty sub folder as git submodules and is using them to link against. This approach has advantages and disadvantages and was discussed in another issue.
In your case the installed protobuf library is conflicting with the library version that is checked out in the mentioned third party folder.
You can force cmake to use the installed version by switching off the cmake parameter ECAL_THIRDPARTY_BUILD_PROTOBUF. Then the conflict should be solved.
Second option would be to uninstall the 2.6 version of protobuf from your system (that could be a bad idea because there is for sure another software package depending on that version of protobuf).
from ecal.
OK, also I delete my _build Folder and change the cmake Parameter ECAL_THIRDPARTY_BUILD_PROTOBUF to OFF in cmakelist.txt Then I do every step again?
If I do this, I became the Error durring make -j: tal error: google/protobuf/compiler/parser.h: No such file or directory compilation terminated. contrib/ecalproto/src/CMakeFiles/proto.dir/build.make:86: recipe for target 'contrib/ecalproto/src/CMakeFiles/proto.dir/ecal_proto_dyn.cpp.o' failed
from ecal.
@famkoc : Did you succeed to solve that issue following @Kerstin-Keller tutorial ?
from ecal.
Related Issues (20)
- Using ecalhdf5 API causes problems with zero-sized channels
- Sporadic test failure on Ubuntu 20.04 in github actions HOT 1
- broken pub/sub connection by dynamic recreation of a publisher or subscriber
- deadlock when calling a service method out of a client callback in the same process HOT 2
- Callback interface in Monitoring Class to notify user on subscribers / publishers being added HOT 2
- MMA crashes on arm64 platforms
- group subcriber HOT 1
- eCAL::core: Perfomance improvements: UDP asynchronous data receiving
- eCAL::core / eCAL::hdf5: per publisher datatype information
- Linker error : libprotobufd.lib(any_lite.obj) : error LNK2001: unresolved external symbol __CxxFrameHandler4 HOT 1
- IsInitialized Python API
- Invalid CMake configuration: BUILD_TIME=OFF and BUILD_APPS=ON
- Time Plugins: Cannot be loaded in RelWithDebInfo Mode HOT 4
- Sporadic test failure on Ubuntu Runner, based on eCAL 5.12.1 HOT 1
- CServiceServerImpl::RequestCallback failed to parse request message HOT 2
- publish message cause segment fault HOT 2
- Python subscribers don't seem to register a subscriptor HOT 1
- ttl 0 is not a valid ttl for unicast HOT 1
- Extendable python subscriber callback function signature HOT 2
- CMAKE_CXX_LINK_FLAGS (-latomic) lead to failed builds on armhf Raspberry Pi OS HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ecal.