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

2010-11-04 Thread Felipe Bordeu

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.bor...@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


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

2010-11-04 Thread Didier Roissé
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.bor...@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.bor...@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

___
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