You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In file included from /wrkdirs/usr/ports/science/chrono/work/chrono-7.0.3/src/chrono_synchrono/agent/SynAgent.h:27:
In file included from /wrkdirs/usr/ports/science/chrono/work/chrono-7.0.3/src/chrono_synchrono/flatbuffer/message/SynMessage.h:24:
In file included from /wrkdirs/usr/ports/science/chrono/work/chrono-7.0.3/src/chrono_synchrono/flatbuffer/message/SynMessageUtils.h:24:
/wrkdirs/usr/ports/science/chrono/work/chrono-7.0.3/src/chrono_synchrono/flatbuffer/message/SynFlatBuffers_generated.h:461:12: error: no matching member function for call to 'VerifyField'
--- src/chrono_synchrono/CMakeFiles/ChronoEngine_synchrono.dir/controller/SynControllerFunctions.cpp.o ---
In file included from /wrkdirs/usr/ports/science/chrono/work/chrono-7.0.3/src/chrono_synchrono/flatbuffer/message/SynSPATMessage.h:24:
In file included from /wrkdirs/usr/ports/science/chrono/work/chrono-7.0.3/src/chrono_synchrono/flatbuffer/message/SynMessage.h:24:
In file included from /wrkdirs/usr/ports/science/chrono/work/chrono-7.0.3/src/chrono_synchrono/flatbuffer/message/SynMessageUtils.h:24:
/wrkdirs/usr/ports/science/chrono/work/chrono-7.0.3/src/chrono_synchrono/flatbuffer/message/SynFlatBuffers_generated.h:461:12: error: no matching member function for call to 'VerifyField'
VerifyField<double>(verifier, VT_TIME) &&
^~~~~~~~~~~~~~~~~~~
You need to keep the flatbuffers format definition in the repository and regenerate headers during build.
# Find FlatBuffers package (if not found, install it or specify its path)
find_package(FlatBuffers REQUIRED)
# Specify the path to your .fbs file
set(FBS_FILE "path/to/your/flatbuffers_definition.fbs")
# Generate FlatBuffers C++ headers during build
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/YourGeneratedFlatBuffers.h
COMMAND ${FLATBUFFERS_COMPILER} -c -o ${CMAKE_CURRENT_BINARY_DIR} ${FBS_FILE}
DEPENDS ${FBS_FILE}
)
# Add the generated headers to your project's include directories
include_directories(${CMAKE_CURRENT_BINARY_DIR})
# Add your Chrono target and link it with FlatBuffers
add_executable(YourChronoApp YourSourceFiles.cpp ${CMAKE_CURRENT_BINARY_DIR}/YourGeneratedFlatBuffers.h)
target_link_libraries(YourChronoApp FlatBuffers::FlatBuffers)
You need to keep the flatbuffers format definition in the repository and regenerate headers during build.
See this comment as reference.
The text was updated successfully, but these errors were encountered: