Build error for streaming-video example in VS2019

1 post / 0 new
Offline
Last seen: 4 years 4 months ago
Joined: 10/23/2019
Posts: 1
Build error for streaming-video example in VS2019

Followed the instruction from https://www.rti.com/developers/case-code/streaming-video to build the application in VS2019.  Got the following error:

1>------ Rebuild All started: Project: SharedDataTypes, Configuration: Debug x64 ------

1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(452,5): warning MSB8028: The intermediate directory (x64\Debug\) contains files shared from another project (VideoPublisher.vcxproj, VideoSubscriber.vcxproj). This can lead to incorrect clean and rebuild behavior.

1>Generating .cxx files from .idl ...
1>INFO com.rti.ndds.nddsgen.Main Running rtiddsgen version 3.0.0, please wait ...
1>INFO com.rti.ndds.nddsgen.Main Done
1>VideoData.cxx
1>VideoDataPlugin.cxx
1>C:\VideoData\ExampleCode2017\src\Generated\VideoDataPlugin.cxx(882,37): error C2039: 'xcdr': is not a member of 'com::rti'
1>C:\VideoData\ExampleCode2017\src\Generated\VideoDataPlugin.cxx(64): message : see declaration of 'com::rti'
1>C:\VideoData\ExampleCode2017\src\Generated\VideoDataPlugin.cxx(882,33): error C3083: 'xcdr': the symbol to the left of a '::' must be a type
1>C:\VideoData\ExampleCode2017\src\Generated\VideoDataPlugin.cxx(882,39): error C2039: 'get_cdr_serialization_programs': is not a member of 'com::rti'
1>C:\VideoData\ExampleCode2017\src\Generated\VideoDataPlugin.cxx(64): message : see declaration of 'com::rti'
1>C:\VideoData\ExampleCode2017\src\Generated\VideoDataPlugin.cxx(882,37): error C2065: 'get_cdr_serialization_programs': undeclared identifier
1>C:\VideoData\ExampleCode2017\src\Generated\VideoDataPlugin.cxx(882,37): error C2275: 'com::rti::media::generated::VideoStream': illegal use of this type as an expression
1>C:\VideoData\ExampleCode2017\src\Generated\VideoDataPlugin.h(49): message : see declaration of 'com::rti::media::generated::VideoStream'
1>VideoDataSupport.cxx
1>Generating Code...
1>C:\VideoData\ExampleCode2017\src\Generated\VideoDataPlugin.cxx(884,39): error C2059: syntax error: ')'
1>Done building project "SharedDataTypes.vcxproj" -- FAILED.
2>------ Skipped Rebuild All: Project: VideoPublisher, Configuration: Debug x64 ------
2>Project not selected to build for this solution configuration
3>------ Skipped Rebuild All: Project: VideoSubscriber, Configuration: Debug x64 ------
3>Project not selected to build for this solution configuration
========== Rebuild All: 0 succeeded, 1 failed, 2 skipped ==========