rticommunity / rticonnextdds-usecases-automotive

This use case shows how Connext DDS can be used by Autonomous Vehicle developers to leverage RTI’s extensive experience with autonomous robotics, safety-critical systems and state-of-the-art architectures to simplify development, design and integration.
https://www.rti.com/resources/usecases/automotive
14 stars 16 forks source link

Cannot build the example #9

Open mehmety888 opened 3 years ago

mehmety888 commented 3 years ago

Hi,

I have RTI Connext DDS pro 6.1.0, I am using Ubuntu 18.04 x64

When I try to build Makefile_x64Linux3gcc5.4.0, I got a lot of errors like:

RTILog_debug’ was not declared in this scope

Thank you for your help

embedded4ever commented 3 years ago

I also encountered this error, Here is the solution. You can add this function after includes at the top of the automotivePlugin.cxx file. static void RTILog_debug(const char* fmt, ...) { }

qinzuoyan commented 2 years ago

This is because the generated files (src/Generated/automotive*) are submitted to the repository, which may be not fresh and may break compiling.

To bypass it, you can run make veryclean before make: make -f make/Makefile_x64Linux3gcc5.4.0 veryclean

I also submitted a pull request (https://github.com/rticommunity/rticonnextdds-usecases-automotive/pull/11) to fix it: https://github.com/rticommunity/rticonnextdds-usecases-automotive/commit/e27eb45ac6dc2f8c9c07a0a0bfc12bd61fa9dbf1