Hi Raphael, it's Renato.

This linking errors seem that CMake is not finding your ParaView build dir, or you have a project mismatch. Note that if you're building a "Release" ParaView you must also build a "Release" plugin project.

Cheers

Renato.


Rafael March wrote:
Hum...

thanks, Mike, it seems better now ! Just 10 errors ! :)

Take a look at them:

Error 11 error LNK2001: unresolved external symbol "private: virtual char const * __thiscall vtkExampleTiffWriter::GetClassNameInternal(void)const " ([EMAIL PROTECTED]@@EBEPBDXZ) vtkExampleTiffWriter.obj Error 12 error LNK2001: unresolved external symbol "public: virtual int __thiscall vtkExampleTiffWriter::IsA(char const *)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) vtkExampleTiffWriter.obj Error 13 error LNK2001: unresolved external symbol "protected: virtual class vtkObjectBase * __thiscall vtkExampleTiffWriter::NewInstanceInternal(void)const " ([EMAIL PROTECTED]@@MBEPAVvtkObjectBase@@XZ) vtkExampleTiffWriter.obj Error 14 error LNK2001: unresolved external symbol "public: virtual void __thiscall vtkExampleTiffWriter::SetCompression(int)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]) vtkExampleTiffWriter.obj Error 15 error LNK2001: unresolved external symbol "public: virtual int __thiscall vtkExampleTiffWriter::GetCompressionMinValue(void)" ([EMAIL PROTECTED]@@UAEHXZ) vtkExampleTiffWriter.obj Error 16 error LNK2001: unresolved external symbol "public: virtual int __thiscall vtkExampleTiffWriter::GetCompressionMaxValue(void)" ([EMAIL PROTECTED]@@UAEHXZ) vtkExampleTiffWriter.obj Error 17 error LNK2001: unresolved external symbol "public: virtual int __thiscall vtkExampleTiffWriter::GetCompression(void)" ([EMAIL PROTECTED]@@UAEHXZ) vtkExampleTiffWriter.obj Error 18 error LNK2019: unresolved external symbol "__declspec(dllimport) protected: virtual __thiscall vtkExampleTiffWriter::~vtkExampleTiffWriter(void)" (__imp_??1vtkExampleTiffWriter@@[EMAIL PROTECTED]) referenced in function "protected: virtual void * __thiscall vtkExampleTiffWriter::`scalar deleting destructor'(unsigned int)" (??_GvtkExampleTiffWriter@@[EMAIL PROTECTED]) vtkExampleTiffWriter.obj Error 19 error LNK2019: unresolved external symbol "__declspec(dllimport) const vtkExampleTiffWriter::`vftable'" (__imp_??_7vtkExampleTiffWriter@@6B@) referenced in function "protected: __thiscall vtkExampleTiffWriter::vtkExampleTiffWriter(void)" (??0vtkExampleTiffWriter@@[EMAIL PROTECTED]) vtkExampleTiffWriter.obj Error 20 fatal error LNK1120: 9 unresolved externals C:\Nacad\Plugins\ExampleTiffWriter.build\Debug\SMExampleTiffWriter.dll
Do you know what is missing ?

Thanks a lot for the attention !

Rafael March.


--- On *Mon, 9/8/08, Mike Jackson /<[EMAIL PROTECTED]>/* wrote:

    From: Mike Jackson <[EMAIL PROTECTED]>
    Subject: Re: [Paraview] Writer example
    To: [EMAIL PROTECTED]
    Cc: [email protected]
    Date: Monday, September 8, 2008, 6:29 PM

    Try putting the following
     at the top of the .h file:


    #ifndef _MXA_DLL_EXPORT_H_
    #define _MXA_DLL_EXPORT_H_

    /* Cmake will define MXADataModel_EXPORTS on Windows when it
    configures to build a shared library. If you are going to use
    another build system on windows or create the visual studio
    projects by hand you need to define MXADataModel_EXPORTS when
    building a DLL on windows.
    */

    #if defined (WIN32) && defined (BUILD_SHARED_LIBS)
    #if defined (_MSC_VER)
    #pragma warning(disable: 4251)
    #endif
       #if defined(SMExampleTiffWriter_EXPORT)
         #define  VTK_IO_EXPORT __declspec(dllexport)
       #else
         #define  VTK_IO_EXPORT __declspec(dllimport)
       #endif /* MXADataModel_EXPORTS */
    #else /* defined (_WIN32) && defined (MXA_BUILD_SHARED_LIBS)  */
      #define VTK_IO_EXPORT
    #endif


    #endif /* _MXA_DLL_EXPORT_H_ */

    We can clean this up later..but see if that gets rid of the link
     errors.

      _________________________________________________
    | Mike Jackson - Principal Software Engineer      |
    | BlueQuartz Software                             |
    | [EMAIL PROTECTED]                     |
    | www.bluequartz.net                              |
    ---------------------------------------------------

    On Sep 8, 2008, at 1:47 PM, Rafael March wrote:

    > Hi,
    >
    > unfortunatelly, I couldn't compile it. Got 17 "error
LNK:unresolved > external symbol" like errors. Have any idea what's wrong ? Do you > have another example ?
    >
    > Thanks !
    >
    > Rafael March.
    >
    > --- On Mon, 9/8/08, Mike Jackson <[EMAIL PROTECTED]>
    wrote:
    > From: Mike Jackson <[EMAIL PROTECTED]>
    > Subject: Re: [Paraview] Writer example
    > To: [EMAIL PROTECTED]
    > Cc: [email protected]
    > Date: Monday,
     September 8, 2008, 3:50 PM
    >
    > Give this a try. It does load with the latest ParaView CVS. Could not
    > actually figure out how to use it but the plugin did compile and load.
    >
    > OS X 10.5.4, ParaView CVS, Xcode 3.1 tooling. CMake 2.6.1
    >
    >
    >
    >
    >  _________________________________________________
    > | Mike Jackson - Principal Software Engineer      |
    > | BlueQuartz Software                             |
    > | [EMAIL PROTECTED]                     |
    > | www.bluequartz.net                              |
    > ---------------------------------------------------
    >
    > On Sep 8, 2008, at 11:10 AM, Rafael March wrote:
    >
    > > Dear friends,
    > >
    > > I'm trying to create my own writer, and I'm having some
    problems.
    > I
    > > wonder if anyone could send me a source code with an writer example,
    > > so that I
     can use it as a template.
    > >
    > > I know that there is one called MyTiffWriter under Examples/Plugin/
    > > Writer, in the latest cvs version of Paraview. I've already
    compiled
    > > it, and it works fine. But, it has no code implementation, just
    > > overwrites the already existing vtkTiffWriter. So, it would be more
    > > useful to me an example
    >  with an explicit writer implementation.
    > >
    > > Can anyone provide me this code ?
    > >
    > > Thanks in advance.
    > >
    > > Rafael March.
    > >
    > > _______________________________________________
    > > ParaView mailing list
    > > [email protected]
    > > http://www.paraview.org/mailman/listinfo/paraview
    >
    >
    >
    >
    >
    >
    >
    >
    >
    >
    > _______________________________________________
    > ParaView mailing
     list
    > [email protected]
    > http://www.paraview.org/mailman/listinfo/paraview


------------------------------------------------------------------------

_______________________________________________
ParaView mailing list
[email protected]
http://www.paraview.org/mailman/listinfo/paraview

_______________________________________________
ParaView mailing list
[email protected]
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to