FACE DevGuideExample Build Error #4585
-
I am trying to build the Face/Simple example from DevGuideExample's and I am unable to get it to build. I was able to build the messenger example fine. I keep getting this error: Here is the CMakeLists.txt file I am using. The publisher and subscriber files are the ones provided.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
The included FACE example contains build steps that invoke the opendds_idl compiler with specific command-line arguments. You'll need to use those in your build as well. |
Beta Was this translation helpful? Give feedback.
-
I don't think we've ever officially tested any FACE-related things with CMake, or at least I haven't. To add to what Adam said, the settings for MPC are in That's checking if it's linked in # IDL TypeSupport Library
add_library(face_messenger_idl)
target_link_libraries(face_messenger_idl PUBLIC OpenDDS::FACE)
opendds_target_sources(face_messenger_idl PUBLIC "FaceMessage.idl") After I switched those two lines and commented out the test code for the If we want to be at least somewhat serious about FACE in CMake we should probably:
|
Beta Was this translation helpful? Give feedback.
I don't think we've ever officially tested any FACE-related things with CMake, or at least I haven't.
OpenDDS::FACE
isn't even documented as a library you can use, but it exists in the code that imports libraries from the MPC build as you already have. I assume you used the MPC build/configure
script because the CMake build of OpenDDS doesn't buildOpenDDS::FACE
.To add to what Adam said, the settings for MPC are in
MPC/config/opendds_face.mpb
. Looking at the CMake code, it looks it should pass the correct IDL compiler options if you linkOpenDDS::FACE
and then it correctly handles them later.That's checking if it's linked in
opendds_target_sources
though, so you should link toOpenDDS::…