Code Monkey home page Code Monkey logo

Comments (4)

Kerstin-Keller avatar Kerstin-Keller commented on May 26, 2024 1

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.

rex-schilasky avatar rex-schilasky commented on May 26, 2024

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.

famkoc avatar famkoc commented on May 26, 2024

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.

rex-schilasky avatar rex-schilasky commented on May 26, 2024

@famkoc : Did you succeed to solve that issue following @Kerstin-Keller tutorial ?

from ecal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.