[vtkusers] vtk under visual studio 2005
Andreas Freudling
freudling at bwh.harvard.edu
Thu Dec 6 09:57:59 EST 2007
Hi Bob,
are you using VS 2005 "Express"?! If that is the case you also need to
install the platform SDK.
http://msdn2.microsoft.com/de-de/express/aa700755(en-us).aspx
Best Andy
Bob Palank schrieb:
> Has anyone encountered the following error? I'm confused sisnce there
> is no Lib.obj file!
> -----------------------------------------------------------------------------------------------------------------------------------
>
> ------ Rebuild All started: Project: vtk50ForSept05, Configuration:
> Debug Win32 ------
>
> Deleting intermediate and output files for project 'vtk50ForSept05',
> configuration 'Debug|Win32'
>
> Compiling...
>
> Cone.cpp
>
> Cylinder.cpp
>
> Generating Code...
>
> Compiling manifest to resources...
>
> Linking...
>
> LINK : fatal error LNK1104: cannot open file 'H:\vtk50\lib.obj'
>
> Build log was saved at
> "file://h:\vtk50\Examples\CylinderAndLineForvtk50\Debug\BuildLog.htm"
>
> vtk50ForSept05 - 1 error(s), 0 warning(s)
>
> ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
>
> BR
>
> Bob
>
>
> ------------------------------------------------------------------------
> *From:* vtkusers-bounces+srfpala=earthlink.net at vtk.org
> [mailto:vtkusers-bounces+srfpala=earthlink.net at vtk.org] *On Behalf Of
> *Philippe Bruyant
> *Sent:* Thursday, December 06, 2007 1:12 AM
> *To:* VTK Users
> *Subject:* Fw: [vtkusers] vtk under visual studio 2005
>
>
>
> Hi Radu,
> Maybe the paths to .h files must be separately entered for Debug
> and Release modes (same suggestion for VTK libs) ? I know it's the
> case for Visual Studio 6.0.
> HTH,
> Philippe
>
> ----- Original Message ----
> From: "Ilinca, Radu" <rilinca at cg.tuwien.ac.at>
> To: vtkusers at vtk.org
> Sent: Wednesday, December 5, 2007 6:28:26 PM
> Subject: [vtkusers] vtk under visual studio 2005
>
> Hi !
>
> I am not that good in libraries but I want to get started with VTK 5.0
> under Visual Studio 2005 , win xp. I did all the steps from the book
> (CMake, build the solution) , I copy-pasted the Cone example in a new
> solution, set the project properties accordingly to the one in the demo
> project and I ran in in the debug mode. I got the cone moving. However,
> when I switched to Release, I got compiling erros , obviously the VS
> could not include the .h files. Here are the compiling errors. I do not
> understand :
> a) Why didn't it work
> b) If I was not good at specifying paths, then why does it work in the
> debug mode ?
>
> I would appreciate a step by step solution since I am not a programming
> guru.
>
> ------ Rebuild All started: Project: Intro, Configuration: Release Win32
> ------
> Deleting intermediate and output files for project 'Intro',
> configuration 'Release|Win32'
> Compiling...
> stdafx.cpp
> Compiling...
> Intro.cpp
> .\Intro.cpp(40) : error C2065: 'vtkConeSource' : undeclared identifier
> .\Intro.cpp(40) : error C2065: 'cone' : undeclared identifier
> .\Intro.cpp(40) : error C2064: term does not evaluate to a function
> taking 0 arguments
> .\Intro.cpp(41) : error C2227: left of '->SetHeight' must point to
> class/struct/union/generic type
> type is ''unknown-type''
> .\Intro.cpp(42) : error C2227: left of '->SetRadius' must point to
> class/struct/union/generic type
> type is ''unknown-type''
> .\Intro.cpp(43) : error C2227: left of '->SetResolution' must point to
> class/struct/union/generic type
> type is ''unknown-type''
> .\Intro.cpp(52) : error C2065: 'vtkPolyDataMapper' : undeclared identifier
> .\Intro.cpp(52) : error C2065: 'coneMapper' : undeclared identifier
> .\Intro.cpp(52) : error C2064: term does not evaluate to a function
> taking 0 arguments
> .\Intro.cpp(53) : error C2227: left of '->SetInputConnection' must point
> to class/struct/union/generic type
> type is ''unknown-type''
> .\Intro.cpp(53) : error C2227: left of '->GetOutputPort' must point to
> class/struct/union/generic type
> type is ''unknown-type''
> .\Intro.cpp(62) : error C2065: 'vtkActor' : undeclared identifier
> .\Intro.cpp(62) : error C2065: 'coneActor' : undeclared identifier
> .\Intro.cpp(62) : error C2064: term does not evaluate to a function
> taking 0 arguments
> .\Intro.cpp(63) : error C2227: left of '->SetMapper' must point to
> class/struct/union/generic type
> eric type
>
> ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
> ------------------------------------------------------------------------
> Never miss a thing. Make Yahoo your homepage.
> <http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs>
>
>
> ------------------------------------------------------------------------
> Looking for last minute shopping deals? Find them fast with Yahoo!
> Search.
> <http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsearch/category.php?category=shopping>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list