[vtkusers] VS9 linking errors
Adriano Gagliardi
agagliardi at ara.co.uk
Tue May 25 10:07:19 EDT 2010
I got it working after some more searching through the vtk lists. I hadn't
realised I only had the release version of the vtk libs compiled and I was
trying to compile a win32 debug version. Fixed it now, but cheers for the
help anyway!
Adriano
===================================
Adriano Gagliardi MEng PhD
Business Sector Leader
Computational Aerodynamics
Aircraft Research Association Ltd.
Manton Lane
Bedford
Tel: 01234 32 4644
E-mail: agagliardi at ara.co.uk
Url: www.ara.co.uk
-----Original Message-----
From: alex [mailto:alexdowson at hotmail.com]
Sent: 24 May 2010 14:41
To: agagliardi at ara.co.uk
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] VS9 linking errors
Hi
Have you build the project which generated by CMake. You might forget to
build vtkHybrid project. ?
You might missing vtkHybrid.lib in you folder or may be your linking path is
wrong of this library.
Try to link this library with static path like in visual studio
configurations.
Hope this helps.
----- Original Message -----
From: "Adriano Gagliardi" <agagliardi at ara.co.uk>
To: "'VTK'" <vtkusers at vtk.org>
Sent: Monday, May 24, 2010 7:02 PM
Subject: [vtkusers] VS9 linking errors
>
> Dear All,
>
> I'm having trouble getting vtk libs to link using VS9 and Cmake. When
> trying
> to compile at the linking stage I'm getting this error:
>
> Linking...
> LINK : fatal error LNK1104: cannot open file 'vtkHybrid.lib'
>
> I checked the include and library paths and they (appear) to be pointing
> to
> the correct place. The Cmake code I'm using is:
>
> OPTION(VTK_REQUIRED "Set to OFF if project does not require VTK" OFF)
> IF(VTK_REQUIRED)
> FIND_PACKAGE(VTK)
> IF(VTK_USE_FILE)
> INCLUDE(${VTK_USE_FILE})
> SET(VTK_COMPONENTS vtkHybrid)
> LINK_LIBRARIES(${VTK_COMPONENTS})
> ADD_DEFINITIONS(-DUSEVTK)
> ENDIF(VTK_USE_FILE)
> ENDIF(VTK_REQUIRED)
>
> Am I missing something here? It works fine under linux.
>
> Regards,
>
> Adriano
>
> ===================================
>
> Adriano Gagliardi MEng PhD
> Business Sector Leader
> Computational Aerodynamics
> Aircraft Research Association Ltd.
> Manton Lane
> Bedford
>
> Tel: 01234 32 4644
> E-mail: agagliardi at ara.co.uk
> Url: www.ara.co.uk
>
>
> **********************************************************************
> This email contains information that is private and confidential and is
> intended only for the addressee.
> If you are not the intended recipient please delete it and notify us
> immediately by e-mailing the sender.
> Note: All email sent to or from this address may be accessed by someone
> other than the recipient, for
> system management and security reasons.
> Aircraft Research Association Ltd. Registered in England, Registration No
> 503668 Registered Office:
> Manton Lane, Bedford MK41 7PF England VAT No GB 196351245
>
> **********************************************************************
> _______________________________________________
> 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
**********************************************************************
This email contains information that is private and confidential and is intended only for the addressee.
If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender.
Note: All email sent to or from this address may be accessed by someone other than the recipient, for
system management and security reasons.
Aircraft Research Association Ltd. Registered in England, Registration No 503668 Registered Office:
Manton Lane, Bedford MK41 7PF England VAT No GB 196351245
**********************************************************************
More information about the vtkusers
mailing list