[vtkusers] VC++ 2010 Express Build Issues
Frédéric DANESI
frederic.danesi at dinccs.com
Sat Apr 9 09:15:29 EDT 2011
I guess that vtk561-bin refer to the path where VTK has been build (see
cmake « where to build »).
When you used VC++ to compile VTK (« ALL BUILD » project in your VTK
solution), you may have seen a project called « INSTALL ».
Build this project only, it will create a vtk directory (if I recall
correctly in c:\program files\...) including all the headers.
It is this directory (and not vtk561-bin)) that should be used in the
include path
HTH
Fred.
Cordialement,
F.Danesi
--
Responsable Développement Informatique et Travail Collaboratif
Centre Technique DINCCS (Centre Technique Dédié à lIngénierie Numérique, la
Conception Collaborative et la Simulation)
MICADO / DINCCS
Pôle de Haute Technologie, BP 90005
08005 Charleville-Mézières Cedex
Tel. : +33 (0) 3.24.41.69.55 / +33 (0) 6.62.76.13.32
Email : frederic.danesi at dinccs.com
Web : www.afmicado.com / www.dinccs.com
-----
DISCLAIMER :
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the system manager.
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and delete
this e-mail from your system. If you are not the intended recipient you are
notified that disclosing, copying, distributing or taking any action in
reliance on the contents of this information is strictly prohibited.
De : vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] De la part
de Bill Lorensen
Envoyé : vendredi 8 avril 2011 22:12
À : Bob Palank
Cc : VTK Users
Objet : Re: [vtkusers] VC++ 2010 Express Build Issues
Bob,
You really should use cmake to configure your project. It might be possible
to do it without cmake but I don't know how to do it. If you use cmake, you
should not set any includes or paths in Visual Studio. CMake does that when
it creates the solution file.
There are 100's of examples here with corresponding CMakeLists.txt files.
http://vtk.org/Wiki/VTK/Examples
Bill
On Fri, Apr 8, 2011 at 11:49 AM, Bob Palank <bob at stlcc.org> wrote:
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, Im 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
===============================================
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
I dont 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:
Im 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
dont 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/20110409/ea930a05/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/20110409/ea930a05/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/20110409/ea930a05/attachment-0001.png>
More information about the vtkusers
mailing list