eProsima / Fast-DDS

The most complete DDS - Proven: Plenty of success cases. Looking for commercial support? Contact info@eprosima.com
https://eprosima.com
Apache License 2.0
2.12k stars 757 forks source link

fastcdr Cdr.h has no member named deserialize/serialize #392

Closed Yale323 closed 5 years ago

Yale323 commented 5 years ago

yale@ubuntu:~/Fast-RTPS/Fast-RTPS/build$ cmake -DTHIRDPARTY=ON -DBUILD_JAVA=ON -DCOMPILE_EXAMPLES=ON -DPERFORMANCE_TESTS=ON -DSECURITY=ON .. -- Configuring Fast RTPS -- Version: 1.7.0 -- To change de version modify the file configure.ac -- fastcdr library found... -- Found Gradle: /opt/gradle/gradle-4.0.1/bin/gradle -- Found Asio in /home/yale/Fast-RTPS/Fast-RTPS/thirdparty/asio/asio/include -- Configuring DeadlineQoS example... -- Configuring OwnershipStrengthQoS example... -- Configuring HelloWorld example... -- Configuring HelloWorld example... -- Configuring HelloWorldTCP example... -- Configuring Filtering example... -- Configuring UserDefinedTransportExample... -- Configuring Flow Control example... -- Configuring ClientServerTest... -- Configuring RTPSTest_as_socket... -- Configuring RTPSTest_registered... -- Configuring RTPSTest_persistent... -- Configuring UseCaseDemonstrator example... -- Configuring UseCaseDemonstrator example... -- Configuring UseCaseDemonstrator example... -- Configuring UseCaseDemonstrator example... -- Configuring UseCaseDemonstrator example... -- Configuring UseCaseDemonstrator example... -- Configuring UseCaseDemonstrator example... -- Configuring StaticHelloWorld example... -- Configuring XMLProfilesExample... -- Configuring Benchmark... -- Configuring SecureHelloWorld example... -- Configuring done -- Generating done -- Build files have been written to: /home/yale/Fast-RTPS/Fast-RTPS/build yale@ubuntu:~/Fast-RTPS/Fast-RTPS/build$ make [ 0%] Updating Git module idl [ 0%] Built target git_submodule_update_idl [ 1%] Updating Git module fastcdr [ 1%] Built target git_submodule_update_fastcdr [ 2%] Generating Java application

Task :idl:compileJava warning: [options] bootstrap class path not set in conjunction with -source 1.6 Note: /home/yale/Fast-RTPS/Fast-RTPS/thirdparty/idl/src/main/java/com/eprosima/idl/generator/manager/TemplateUtil.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details.

BUILD SUCCESSFUL in 4s 4 actionable tasks: 2 executed, 2 up-to-date [ 2%] Built target java Scanning dependencies of target fastrtps [ 3%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/utils/IPLocator.cpp.o [ 3%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/rtps/RTPSDomain.cpp.o [ 3%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/transport/UDPv4Transport.cpp.o [ 3%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/transport/TCPv4Transport.cpp.o [ 4%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/transport/UDPv6Transport.cpp.o [ 4%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/transport/TCPv6Transport.cpp.o [ 5%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/transport/test_TCPv4Transport.cpp.o [ 5%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/transport/tcp/TCPControlMessage.cxx.o [ 5%] Building CXX object src/cpp/CMakeFiles/fastrtps.dir/types/AnnotationParameterValue.cpp.o In file included from /home/yale/Fast-RTPS/Fast-RTPS/src/cpp/types/AnnotationParameterValue.cpp:24:0: /usr/local/include/fastcdr/Cdr.h: In instantiation of ‘eprosima::fastcdr::Cdr& eprosima::fastcdr::Cdr::operator<<(const _T&) [with _T = std::cxx11::basic_string]’: /home/yale/Fast-RTPS/Fast-RTPS/src/cpp/types/AnnotationParameterValue.cpp:1696:17: required from here /usr/local/include/fastcdr/Cdr.h:364:25: error: ‘const class std::cxx11::basic_string’ has no member named ‘serialize’ type_t.serialize(this); ^ /usr/local/include/fastcdr/Cdr.h: In instantiation of ‘eprosima::fastcdr::Cdr& eprosima::fastcdr::Cdr::operator>>(_T&) [with _T = std::cxx11::basic_string]’: /home/yale/Fast-RTPS/Fast-RTPS/src/cpp/types/AnnotationParameterValue.cpp:1756:17: required from here /usr/local/include/fastcdr/Cdr.h:511:25: error: ‘class std::cxx11::basic_string’ has no member named ‘deserialize’ type_t.deserialize(this); ^ src/cpp/CMakeFiles/fastrtps.dir/build.make:959: recipe for target 'src/cpp/CMakeFiles/fastrtps.dir/types/AnnotationParameterValue.cpp.o' failed make[2]: [src/cpp/CMakeFiles/fastrtps.dir/types/AnnotationParameterValue.cpp.o] Error 1 CMakeFiles/Makefile2:1088: recipe for target 'src/cpp/CMakeFiles/fastrtps.dir/all' failed make[1]: [src/cpp/CMakeFiles/fastrtps.dir/all] Error 2 Makefile:162: recipe for target 'all' failed make: *** [all] Error 2

Yale323 commented 5 years ago

It seems like I intall the fast cdr long time ago,and the version didn't match with the latest FastRTPS.