rticonnextdds-usecases icon indicating copy to clipboard operation
rticonnextdds-usecases copied to clipboard

Errror in compiling Gstreamer plugins connextdds 6.1.0

Open aswinpajayan opened this issue 1 year ago • 1 comments

Is it possible to compile the plugins with RTI Connext DDS 6.1.0 I tried to change the CMakeLists.txt file to point to RTIConnextDDS 6.1.0 But i am getting the following error:

/usr/bin/ld: /usr/lib/rti_connext_dds-6.1.0/lib/x64Linux4gcc7.3.0/libnddscorez.a(PsRemoteTopicQuery.c.o): warning: relocation against `PRESPsServiceRemoteTopicQueryIterator_next' in read-only section `.text'
/usr/bin/ld: /usr/lib/rti_connext_dds-6.1.0/lib/x64Linux4gcc7.3.0/libnddscorez.a(PsRemoteTopicQuery.c.o): warning: relocation against `PRESPsServiceRemoteTopicQueryIterator_next' in read-only section `.text'
/usr/bin/ld: /usr/lib/rti_connext_dds-6.1.0/lib/x64Linux4gcc7.3.0/libnddscz.a(Log.c.o): relocation R_X86_64_PC32 against symbol `DDSLog_g_submoduleMask' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/gstconnextsink.dir/build.make:111: bin/libgstconnextsink.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:126: CMakeFiles/gstconnextsink.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: /usr/lib/rti_connext_dds-6.1.0/lib/x64Linux4gcc7.3.0/libnddscz.a(Log.c.o): relocation R_X86_64_PC32 against symbol `DDSLog_g_submoduleMask' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/gstconnextsrc.dir/build.make:111: bin/libgstconnextsrc.so] Error 1
make[1]: *** [CMakeFiles/Makefile2:99: CMakeFiles/gstconnextsrc.dir/all] Error 2
make: *** [Makefile:149: all] Error 2

Did anyone successfuly compile the plugins with 6.1.0?

aswinpajayan avatar Nov 09 '23 06:11 aswinpajayan

Could you share the changes you made to the CMakeLists file?

ghost avatar Nov 15 '23 00:11 ghost