I'm trying to run the tutorial example of OpenSplice using Qt5. I successfully built the program but when I run it I get the following error :
Error in DDS::DomainParticipantFactory::create_participant: Creation failed: invalid handle
After many debugging steps I came to the conclusion that my executable doesn't link to my ospl ! I figured that out because when it crashes no ospl-error.log is generated.
I sourced the release file correctly . ./release.com
and launched my qtcreator from the same terminal so all the environment variables are correctly set (especially OSPL_URI
and OSPL_HOME
)
Does anyone have any idea on how to fix this ?
I finally managed to solve this problem and thought of sharing the answer. The problem was that I was including all the DDS libs in my .pro I was including the following libs :
I am now using a minimal set of libs that the program requires and now it runs perfectly. Here is what I am using now:
Actually the error is caused by -ldcpsccpp and -lddshts. By removing those libs the application works perfectly.