Coder Social home page Coder Social logo

Comments (6)

MrTrigger avatar MrTrigger commented on August 30, 2024

I get the same error if I download the binaries directly from you website.
First extract and install Fast-RTPS with the install script - OK
Then extract and run ./configure and then make of RPCDDS -> get the same error as above.

mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../include/rpcdds -DRPC_SOURCE -I../include -I../extra/boost-threadpool -pthread -I/usr/include -g -O2 -MT transports/dds/components/ProxyProcedureEndpoint.lo -MD -MP -MF transports/dds/components/.deps/ProxyProcedureEndpoint.Tpo -c transports/dds/components/ProxyProcedureEndpoint.cpp  -fPIC -DPIC -o transports/dds/components/.libs/ProxyProcedureEndpoint.o
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../include/rpcdds -DRPC_SOURCE -I../include -I../extra/boost-threadpool -pthread -I/usr/include -g -O2 -MT transports/dds/components/ProxyProcedureEndpoint.lo -MD -MP -MF transports/dds/components/.deps/ProxyProcedureEndpoint.Tpo -c transports/dds/components/ProxyProcedureEndpoint.cpp -o transports/dds/components/ProxyProcedureEndpoint.o >/dev/null 2>&1
depbase=`echo transports/dds/components/RTPSProxyProcedureEndpoint.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;\
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../include/rpcdds  -DRPC_SOURCE -I../include -I../extra/boost-threadpool -pthread -I/usr/include   -g -O2 -MT transports/dds/components/RTPSProxyProcedureEndpoint.lo -MD -MP -MF $depbase.Tpo -c -o transports/dds/components/RTPSProxyProcedureEndpoint.lo transports/dds/components/RTPSProxyProcedureEndpoint.cpp &&\
mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../include/rpcdds -DRPC_SOURCE -I../include -I../extra/boost-threadpool -pthread -I/usr/include -g -O2 -MT transports/dds/components/RTPSProxyProcedureEndpoint.lo -MD -MP -MF transports/dds/components/.deps/RTPSProxyProcedureEndpoint.Tpo -c transports/dds/components/RTPSProxyProcedureEndpoint.cpp  -fPIC -DPIC -o transports/dds/components/.libs/RTPSProxyProcedureEndpoint.o
transports/dds/components/RTPSProxyProcedureEndpoint.cpp: In member function ‘virtual void eprosima::rpc::transport::dds::RTPSProxyProcedureEndpoint::onNewDataMessage(eprosima::fastrtps::Subscriber*)’:
transports/dds/components/RTPSProxyProcedureEndpoint.cpp:435:31: error: ‘ALIVE’ is not a member of ‘eprosima::fastrtps’
         if(info.sampleKind == eprosima::fastrtps::ALIVE)
                               ^~~~~~~~
transports/dds/components/RTPSProxyProcedureEndpoint.cpp:435:31: note: suggested alternative:
In file included from /usr/local/include/fastrtps/rtps/common/all_common.h:31:0,
                 from /usr/local/include/fastrtps/qos/ParameterTypes.h:22,
                 from /usr/local/include/fastrtps/qos/QosPolicies.h:26,
                 from /usr/local/include/fastrtps/rtps/attributes/WriterAttributes.h:27,
                 from /usr/local/include/fastrtps/attributes/PublisherAttributes.h:26,
                 from /usr/local/include/fastrtps/publisher/Publisher.h:26,
                 from transports/dds/components/RTPSProxyProcedureEndpoint.cpp:20:
/usr/local/include/fastrtps/rtps/common/CacheChange.h:45:5: note:   ‘ALIVE’
     ALIVE,                          //!< ALIVE
     ^~~~~
transports/dds/components/RTPSProxyProcedureEndpoint.cpp: In member function ‘virtual void eprosima::rpc::transport::dds::RTPSProxyProcedureEndpoint::onSubscriptionMatched(eprosima::fastrtps::Subscriber*, eprosima::fastrtps::rtps::MatchingInfo&)’:
transports/dds/components/RTPSProxyProcedureEndpoint.cpp:496:23: error: ‘MatchingStatus’ has not been declared
     if(info.status == MatchingStatus::MATCHED_MATCHING)
                       ^~~~~~~~~~~~~~
transports/dds/components/RTPSProxyProcedureEndpoint.cpp: In member function ‘virtual void eprosima::rpc::transport::dds::RTPSProxyProcedureEndpoint::onPublicationMatched(eprosima::fastrtps::Publisher*, eprosima::fastrtps::rtps::MatchingInfo&)’:
transports/dds/components/RTPSProxyProcedureEndpoint.cpp:514:23: error: ‘MatchingStatus’ has not been declared
     if(info.status == MatchingStatus::MATCHED_MATCHING)
                       ^~~~~~~~~~~~~~
Makefile:695: recipe for target 'transports/dds/components/RTPSProxyProcedureEndpoint.lo' failed
make[1]: *** [transports/dds/components/RTPSProxyProcedureEndpoint.lo] Error 1
make[1]: Leaving directory '/home/magnus/tmp/eProsima_RPCDDS-1.0.3-Linux/src'
Makefile:506: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1

from rpc.

MrTrigger avatar MrTrigger commented on August 30, 2024

Update: I found the embedded versions of fastcdr and fastrtps in the downloaded tarball and it works to compile with them.
There still seems to be an incompatibility issue between the different libs when building from source, but at least it's not a stopper for me evaluating FastRPC anymore.

from rpc.

richiware avatar richiware commented on August 30, 2024

Did you test with commit c452a28 which updates the product to use Fast-DDS 2.0?

from rpc.

Bhardwaj-Harsh avatar Bhardwaj-Harsh commented on August 30, 2024

I am getting the same issue, I am relativley new to this, is there a work around? I am using the PX4 development guide:

https://docs.px4.io/v1.12/en/dev_setup/fast-dds-installation.html

as soon as I run the "make -j$(nproc --all)" command I get this error

from rpc.

Tooo-Top avatar Tooo-Top commented on August 30, 2024

Did you test with commit c452a28 which updates the product to use Fast-DDS 2.0?

Some functions in fastcdr2. x have changed. Can you update them.

from rpc.

EduPonz avatar EduPonz commented on August 30, 2024

Did you test with commit c452a28 which updates the product to use Fast-DDS 2.0?

Some functions in fastcdr2. x have changed. Can you update them.

It is on our roadmap, so we will do it eventually.

In any case, I'm going to close this ticket, as the projects builds against the latest Fast DDS if Fast CDR v1 is used.

from rpc.

Related Issues (17)

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.