Re: [Paraview] Undefined symbols when building an example reader plugin

2012-11-13 Thread Cory Quammen
Takuya,

I have a similar problem with a simple VTK filter plugin and a
representation plugin. Unfortunately, I don't have a better solution
than what you propose, but I just wanted to confirm that this is a new
problem, at least on Mac OS X.

Cory

On Wed, Nov 7, 2012 at 9:19 PM, Takuya OSHIMA
osh...@eng.niigata-u.ac.jp wrote:
 Hi,

 With today's git-master, building ParaView/Examples/Plugins/Reader on
 OS X 10.6.8, CMake 2.8.10, Qt 4.8.3 fails in the final linking stage
 stating:

 Undefined symbols:
   vtkRenderingMatplotlib_AutoInit_Construct(), referenced from:
   __static_initialization_and_destruction_0(int, int)in 
 MyPNGReader_Plugin.o
   __static_initialization_and_destruction_0(int, int)in 
 moc_MyPNGReader_Plugin.o
   vtkRenderingMatplotlib_AutoInit_Destruct(), referenced from:
   ___tcf_7 in MyPNGReader_Plugin.o
   ___tcf_5 in moc_MyPNGReader_Plugin.o
 ld: symbol(s) not found
 collect2: ld returned 1 exit status
 make[2]: *** [libMyPNGReader.dylib] Error 1
 make[1]: *** [CMakeFiles/MyPNGReader.dir/all] Error 2
 make: *** [all] Error 2

 which is what I also have with my reader plugin. I know there is an
 easy workaround of adding vtkRenderingMatplotlib as one of
 TARGET_LINK_LIBRARIES but is this what I have to do?

 Takuya OSHIMA, Ph.D.
 Faculty of Engineering, Niigata University
 8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN
 ___
 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



-- 
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill
___
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] Undefined symbols when building an example reader plugin

2012-11-13 Thread Cory Quammen
Just a followup:

My plugins build and link against ParaView 3.98-RC1 without error, so
a regression has been introduced since then.

Cory

On Tue, Nov 13, 2012 at 9:50 AM, Cory Quammen cquam...@cs.unc.edu wrote:
 Takuya,

 I have a similar problem with a simple VTK filter plugin and a
 representation plugin. Unfortunately, I don't have a better solution
 than what you propose, but I just wanted to confirm that this is a new
 problem, at least on Mac OS X.

 Cory

 On Wed, Nov 7, 2012 at 9:19 PM, Takuya OSHIMA
 osh...@eng.niigata-u.ac.jp wrote:
 Hi,

 With today's git-master, building ParaView/Examples/Plugins/Reader on
 OS X 10.6.8, CMake 2.8.10, Qt 4.8.3 fails in the final linking stage
 stating:

 Undefined symbols:
   vtkRenderingMatplotlib_AutoInit_Construct(), referenced from:
   __static_initialization_and_destruction_0(int, int)in 
 MyPNGReader_Plugin.o
   __static_initialization_and_destruction_0(int, int)in 
 moc_MyPNGReader_Plugin.o
   vtkRenderingMatplotlib_AutoInit_Destruct(), referenced from:
   ___tcf_7 in MyPNGReader_Plugin.o
   ___tcf_5 in moc_MyPNGReader_Plugin.o
 ld: symbol(s) not found
 collect2: ld returned 1 exit status
 make[2]: *** [libMyPNGReader.dylib] Error 1
 make[1]: *** [CMakeFiles/MyPNGReader.dir/all] Error 2
 make: *** [all] Error 2

 which is what I also have with my reader plugin. I know there is an
 easy workaround of adding vtkRenderingMatplotlib as one of
 TARGET_LINK_LIBRARIES but is this what I have to do?

 Takuya OSHIMA, Ph.D.
 Faculty of Engineering, Niigata University
 8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN
 ___
 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



 --
 Cory Quammen
 Research Associate
 Department of Computer Science
 The University of North Carolina at Chapel Hill



-- 
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill
___
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] Undefined symbols when building an example reader plugin

2012-11-13 Thread David Lonie
On Tue, Nov 13, 2012 at 10:44 AM, Cory Quammen cquam...@cs.unc.edu wrote:
 Just a followup:

 My plugins build and link against ParaView 3.98-RC1 without error, so
 a regression has been introduced since then.

 Cory

 On Tue, Nov 13, 2012 at 9:50 AM, Cory Quammen cquam...@cs.unc.edu wrote:
 Takuya,

 I have a similar problem with a simple VTK filter plugin and a
 representation plugin. Unfortunately, I don't have a better solution
 than what you propose, but I just wanted to confirm that this is a new
 problem, at least on Mac OS X.

 Cory

The quick work-around is to link your plugin against
vtkRenderingMatplotlib when python is enabled. We do this for part of
the CoProcessing plugin that comes with ParaView. This is not a good
long term solution IMO, but hopefully someone with a better knowledge
of the modular build system can propose a better solution...

Dave
___
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] Undefined symbols when building an example reader plugin

2012-11-13 Thread Cory Quammen
On Tue, Nov 13, 2012 at 11:05 AM, David Lonie david.lo...@kitware.com wrote:
 On Tue, Nov 13, 2012 at 10:44 AM, Cory Quammen cquam...@cs.unc.edu wrote:
 Just a followup:

 My plugins build and link against ParaView 3.98-RC1 without error, so
 a regression has been introduced since then.

 Cory

 On Tue, Nov 13, 2012 at 9:50 AM, Cory Quammen cquam...@cs.unc.edu wrote:
 Takuya,

 I have a similar problem with a simple VTK filter plugin and a
 representation plugin. Unfortunately, I don't have a better solution
 than what you propose, but I just wanted to confirm that this is a new
 problem, at least on Mac OS X.

 Cory

 The quick work-around is to link your plugin against
 vtkRenderingMatplotlib when python is enabled. We do this for part of
 the CoProcessing plugin that comes with ParaView. This is not a good
 long term solution IMO, but hopefully someone with a better knowledge
 of the modular build system can propose a better solution...

 Dave

Dav,

The patch you made in commit c369423b81ab182e7af26ed6dec90458ada9b77b
appears to have introduced the error. I'll try to come up with a fix.

Cory

-- 
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill
___
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] Undefined symbols when building an example reader plugin

2012-11-13 Thread David Lonie
On Tue, Nov 13, 2012 at 11:05 AM, David Lonie david.lo...@kitware.com wrote:
 On Tue, Nov 13, 2012 at 10:44 AM, Cory Quammen cquam...@cs.unc.edu wrote:
 Just a followup:

 My plugins build and link against ParaView 3.98-RC1 without error, so
 a regression has been introduced since then.

 Cory

 On Tue, Nov 13, 2012 at 9:50 AM, Cory Quammen cquam...@cs.unc.edu wrote:
 Takuya,

 I have a similar problem with a simple VTK filter plugin and a
 representation plugin. Unfortunately, I don't have a better solution
 than what you propose, but I just wanted to confirm that this is a new
 problem, at least on Mac OS X.

 Cory

 The quick work-around is to link your plugin against
 vtkRenderingMatplotlib when python is enabled. We do this for part of
 the CoProcessing plugin that comes with ParaView. This is not a good
 long term solution IMO, but hopefully someone with a better knowledge
 of the modular build system can propose a better solution...

A better solution was pointed out to me off-list -- try adding

include(${PARAVIEW_USE_FILE})

and then linking against ${VTK_LIBRARIES}. This should be better in
the long-term.

Dave
___
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] Undefined symbols when building an example reader plugin

2012-11-13 Thread Utkarsh Ayachit
I think need to fix this. Plugins should not need to link against anything 
extra unless they explicitly add dependencies on other modules. 

Cory, temporarily fix the issue as david suggested but we'll have that fixed 
before the release so you won't have to. 

Utkarsh 


On Nov 13, 2012, at 9:26 AM, David Lonie david.lo...@kitware.com wrote:

 On Tue, Nov 13, 2012 at 11:05 AM, David Lonie david.lo...@kitware.com wrote:
 On Tue, Nov 13, 2012 at 10:44 AM, Cory Quammen cquam...@cs.unc.edu wrote:
 Just a followup:
 
 My plugins build and link against ParaView 3.98-RC1 without error, so
 a regression has been introduced since then.
 
 Cory
 
 On Tue, Nov 13, 2012 at 9:50 AM, Cory Quammen cquam...@cs.unc.edu wrote:
 Takuya,
 
 I have a similar problem with a simple VTK filter plugin and a
 representation plugin. Unfortunately, I don't have a better solution
 than what you propose, but I just wanted to confirm that this is a new
 problem, at least on Mac OS X.
 
 Cory
 
 The quick work-around is to link your plugin against
 vtkRenderingMatplotlib when python is enabled. We do this for part of
 the CoProcessing plugin that comes with ParaView. This is not a good
 long term solution IMO, but hopefully someone with a better knowledge
 of the modular build system can propose a better solution...
 
 A better solution was pointed out to me off-list -- try adding
 
 include(${PARAVIEW_USE_FILE})
 
 and then linking against ${VTK_LIBRARIES}. This should be better in
 the long-term.
 
 Dave
 ___
 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


Re: [Paraview] Undefined symbols when building an example reader plugin

2012-11-13 Thread Cory Quammen
Thanks, Utkarsh.

I filed a bug report: http://paraview.org/Bug/view.php?id=13652

Cory

On Tue, Nov 13, 2012 at 12:37 PM, Utkarsh Ayachit
utkarsh.ayac...@kitware.com wrote:
 I think need to fix this. Plugins should not need to link against anything 
 extra unless they explicitly add dependencies on other modules.

 Cory, temporarily fix the issue as david suggested but we'll have that fixed 
 before the release so you won't have to.

 Utkarsh


 On Nov 13, 2012, at 9:26 AM, David Lonie david.lo...@kitware.com wrote:

 On Tue, Nov 13, 2012 at 11:05 AM, David Lonie david.lo...@kitware.com 
 wrote:
 On Tue, Nov 13, 2012 at 10:44 AM, Cory Quammen cquam...@cs.unc.edu wrote:
 Just a followup:

 My plugins build and link against ParaView 3.98-RC1 without error, so
 a regression has been introduced since then.

 Cory

 On Tue, Nov 13, 2012 at 9:50 AM, Cory Quammen cquam...@cs.unc.edu wrote:
 Takuya,

 I have a similar problem with a simple VTK filter plugin and a
 representation plugin. Unfortunately, I don't have a better solution
 than what you propose, but I just wanted to confirm that this is a new
 problem, at least on Mac OS X.

 Cory

 The quick work-around is to link your plugin against
 vtkRenderingMatplotlib when python is enabled. We do this for part of
 the CoProcessing plugin that comes with ParaView. This is not a good
 long term solution IMO, but hopefully someone with a better knowledge
 of the modular build system can propose a better solution...

 A better solution was pointed out to me off-list -- try adding

 include(${PARAVIEW_USE_FILE})

 and then linking against ${VTK_LIBRARIES}. This should be better in
 the long-term.

 Dave
 ___
 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



-- 
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill
___
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


[Paraview] Undefined symbols when building an example reader plugin

2012-11-07 Thread Takuya OSHIMA
Hi,

With today's git-master, building ParaView/Examples/Plugins/Reader on
OS X 10.6.8, CMake 2.8.10, Qt 4.8.3 fails in the final linking stage
stating:

Undefined symbols:
  vtkRenderingMatplotlib_AutoInit_Construct(), referenced from:
  __static_initialization_and_destruction_0(int, int)in MyPNGReader_Plugin.o
  __static_initialization_and_destruction_0(int, int)in 
moc_MyPNGReader_Plugin.o
  vtkRenderingMatplotlib_AutoInit_Destruct(), referenced from:
  ___tcf_7 in MyPNGReader_Plugin.o
  ___tcf_5 in moc_MyPNGReader_Plugin.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [libMyPNGReader.dylib] Error 1
make[1]: *** [CMakeFiles/MyPNGReader.dir/all] Error 2
make: *** [all] Error 2

which is what I also have with my reader plugin. I know there is an
easy workaround of adding vtkRenderingMatplotlib as one of
TARGET_LINK_LIBRARIES but is this what I have to do?

Takuya OSHIMA, Ph.D.
Faculty of Engineering, Niigata University
8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN
___
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