CERTI
CERTI copied to clipboard
Compilation errors and -possibly- fixes, then Segmentation Fault
Compilation
I tried compiling in Linux Mint 21, g++ 11.4. Tons of 'deprecated' warnings:
- "dynamic exception specifications are deprecated in C++11"
- "template
class std::auto_ptr’ is deprecated: use 'std::unique_ptr' instead"
At some point the toolchain complained about the library RPC, and then, somewhere, about std::string. Ignoring the warnings, here's what worked:
(1/3) Added a line to /CERTI-master/test/mom_explorer/cli.h
#include <string>
(2/3) Installed tirpc and then added a line to CERTI-master/CMakeLists.txt
#Globally used include dir
include_directories(/usr/include/tirpc)
(3/3) Added a line to CERTI-master/test/CMakeLists.txt (target link...):
add_executable(CertiCheckHostAndIP certiCheckHostAndIP.c)
target_link_libraries(CertiCheckHostAndIP tirpc)
Segmentation Fault
Next, I tried to launch an example. Environment variables were not set, but... a segfault shouldn't happen... right?
./CertiTestFederate-HLA13 --name Maria
RTIambassador caught RTIinternalError reason Could not launch RTIA process (execlp): No such file or directory
Maybe RTIA is not in search PATH environment.
UN Socket(RecevoirUN) : : Connection reset by peer
libRTI: exception: NetworkError (read)
RTIambassador caught RTIinternalError reason libRTI: Network Read Error waiting RTI reply
Segmentation fault (core dumped)