[Paraview-developers] Paraview Runtime Segfault when linking with external c++ library
Prashant V
prashant.v at quest-global.com
Thu Jun 11 21:37:55 EDT 2015
Hi,
I have developed a paraview source plugin. This source plugin needs to call few functions which are outside of Paraview. These functions are in C++ and compiled with intel compiler. I am trying to add a library (having these functions) in Paraview to solve my purpose.
In CMakeLists.txt file of my source plugin, I add two statements:
1) INCLUDE_DIRECTORIES(<Path ofexternal funcitons>)
2) TARGET_LINK_LIBRARIES(MyPlugin LINK_PUBLIC <full library path with name>)
After doing this, Paraview compiles successfully. But when I try to launch Paraview, it crashes with segmentation fault.
When I comment out the external function call in my source plugin code, then Paraview launches successfully.
Paraview is compiled with G++ compiler. Is it a linker problem because my external library is compiled through ICPC(intel c++) but Paraview is compiled with G++? I am working with Ubuntu 12.04. I have tried adding both static (.a) and shared (.so) libraries, but in vain.
Do I need to do anything additional in CMakeLists.txt file. Can anybody help here?
Thanks,
Prashant
---Disclaimer------------------------------ This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the addressee(s). If you are not the intended recipient, please notify the sender by e-mail and delete the original message. Opinions, conclusions and other information in this transmission that do not relate to the official business of QuEST Global and/or its subsidiaries, shall be understood as neither given nor endorsed by it. Any statements made herein that are tantamount to contractual obligations, promises, claims or commitments shall not be binding on the Company unless followed by written confirmation by an authorized signatory of the Company. -----------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20150612/6715a703/attachment.html>
More information about the Paraview-developers
mailing list