[vtkusers] Can't reach vtk include files.
Bob Palank
bob at stlcc.org
Fri Apr 8 14:06:50 EDT 2011
It seems I cannot reach the vtk include files, nor can they reach the
include files they need.
Here is my code:
// Cone2011Test.cpp : main project file.
#include "stdafx.h"
// Using VC++ Project Properties | Configuration Properties |
VC++ Directories
// D:\Vtk561-bin and d:\vtk561 $(IncludePath) were placed in the
include path
#include "vtkCylinderSource.h"
#include "vtkPolyDataMapper.h"
#include "vtkActor.h"
#include "vtkRenderer.h"
#include "vtkRenderWindow.h"
#include "vtkRenderWindowInteractor.h"
#include "vtkProperty.h"
#include "vtkCamera.h"
using namespace System;
int main(array<System::String ^> ^args)
{
Console::WriteLine(L"Hello World");
Console::ReadLine();
return 0;
}
============================================================================
=================
The Build Reports:
------ Build started: Project: Cone2011Test, Configuration: Debug Win32
------
Cone2011Test.cpp
Cone2011Test.cpp(6): fatal error C1083: Cannot open include file:
'vtkCylinderSource.h': No such file or directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
============================================================================
=================
If I comment out the 8 vtk #includes I can Build and Run
BR
Bob
From: Bill Lorensen [mailto:bill.lorensen at gmail.com]
Sent: Thursday, April 07, 2011 10:43 PM
To: Bob Palank
Cc: VTK Users
Subject: Re: [vtkusers] VC++ 2010 Express Build Issues
Bob,
When you say you "add code for vtk includes", what do you mean? Where do you
add the code?
Bill
On Thu, Apr 7, 2011 at 9:09 PM, Bob Palank <bob at stlcc.org> wrote:
I start a new Console application called Cone2011Test and the VC supplied
code ran as expected.
I add code for vtk includes and set the Include directory to vtk561-bin and
build again.
Given I did the above, I'm not sure if Cone2011Test is being configured
with CMake ?
How do I check?
I have attached the requested file.
In older versions of vtk I saw something like the image below - note 1
project
cid:image001.png at 01CBF5DA.96428A90
===============================================
Now when I try Win32Cone.sln from the examples, I encounter a somewhat long
delay and
Solution Explorer shows 31 projects. A partial screenshot follows
cid:image002.png at 01CBF5DA.96428A90
I don't think the above is what I should see in the Solution Explorer
window.
Am I right ?
Bob
From: Bill Lorensen [mailto:bill.lorensen at gmail.com]
Sent: Wednesday, April 06, 2011 10:39 PM
To: Bob Palank
Cc: vtkusers at vtk.org
Subject: Re: [vtkusers] VC++ 2010 Express Build Issues
Bob,
I assume Cone2011Test is being configured with CMake. Can you post your
CMakeLists.txt file?
Bill
On Wed, Apr 6, 2011 at 5:01 PM, Bob Palank <bob at stlcc.org> wrote:
I'm running XP Pro SP3 and using VC++ 2010 Express.
I think I have a clean install of vtk 5.6.1 in vtk561-bin.
How would I check to be sure the install is correct ?
I start a new Console application called Cone2011Test and the VC supplied
code ran as expected.
I add code for vtk includes and set the Include directory to vtk561-bin and
build again.
VC looks for and cannot find vtkCylinderSource.h.
Please assist.
Perhaps there are suggested methods for building vtk application that I
don't know.
I have looked at the examples and would prefer to code my examples from
scratch.
Bob
_______________________________________________
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110408/a92691b3/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 12861 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110408/a92691b3/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 10972 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110408/a92691b3/attachment-0001.png>
More information about the vtkusers
mailing list