[Paraview] custom reader and extra libs (blas) link problem

Didier Roissé didier.roisse at gmail.com
Thu Nov 4 07:30:58 EDT 2010


Hello,
to add an extra library you have to add this kind of lines in the CMAKE file
:
in order to find the library :
FIND_LIBRARY(MY_LIBRARY mylib.so
  /usr/local/lib
  /usr/lib
)

in order to link with the librarie
TARGET_LINK_LIBRARIES(myReader
  ${MY_LIBRARY}
  )

Best regards,
Didier

2010/11/4 Felipe Bordeu <felipe.bordeu at ec-nantes.fr>

> Hello,
>
> I have a custom reader, and I have to do a lot of computations to generate
> the data.
> I want to use blas to speed up the computations.
>
> How can I link my plugging to the blas library???
> the cmake macro  ADD_PARAVIEW_PLUGIN(..   does not have any option for
> extra libraries.
> and when I try  to use it I get :
> /.../bin/paraview: symbol lookup error: /../libPGDReader.so: undefined
> symbol: cblas_saxpy
>
> If I use the pluging in a vtk project I explicitly link the library and
> everything work fine.
>
>
> I have another question:
> Can my reader know if it used in paraview or in a c++ project (only vtk)??
> (I want to automatised some things if is used in paraview)?
>
> thanks
>
> --
>
> Felipe Bordeu Weldt
> Ingénieur de Recherche
> -------------------------------------
> Tél. : 33 (0)2 40 37 16 57
> Fax. : 33 (0)2 40 74 74 06
> Felipe.Bordeu at ec-nantes.fr
> Intitut GeM - UMR CNRS 6183
> École Centrale de Nantes
> 1 Rue de La Noë, 44321 Nantes, FRANCE
> -------------------------------------
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20101104/acb4ecdf/attachment.htm>


More information about the ParaView mailing list