Solved

first program with vtk + C++ in visual studio 2013

Posted on 2015-02-07
8
376 Views
Last Modified: 2015-05-20
I am new on vtk, I install the tool in visual studio 2013 using cMake to configure and generate the source code, I run the example included and it worked but when I run an example from the internet and build it I got this error:
error LNK1104: cannot open file 'vtkCommon.lib'

and when go to the lib directory there is no vtkCommon.lib actually but the list start with:

vtkCommonColor-6.1.lib
vtkCommonComputationalGeometry-6.1.lib
vtkCommonCore-6.1.lib
vtkCommonDataModel-6.1.lib
vtkCommonExecutionModel-6.1.lib
vtkCommonMisc-6.1.lib
vtkCommonSystem-6.1.lib
0
Comment
Question by:Aaeshah
  • 2
8 Comments
 
LVL 32

Expert Comment

by:sarabande
Comment Utility
error LNK1104: cannot open file 'vtkCommon.lib'
you can try to remove vtkCommon.lib from makefile. but probably the linker then would complain about missing symbols. if the symbol could be found in one of the other vtk libraries you may add this library instead. but it is only a rare chance to get it working by that.


when go to the lib directory there is no vtkCommon.lib
you may look for a makefile or visual studio project that builds vtkCommon.lib by using the vc compiler and ms linker.

the libs you got from the visual studio tool rarely can be used as a substitute as they may contain a different version or have some specials to work in the visual studio environment. I would assume that even if you have experiences with makefiles it is a big job to make it work for your internet sample. it should be easier to get or build the needed library.

Sara
0
 
LVL 32

Expert Comment

by:sarabande
Comment Utility
Aaeshah, experts at ee are volunteers. because of that they do not like to get a c grade for their comments. a c actually is the worst grade you can give and is not appropiate for an answer which didn't help but but where you have made no efforts to get a better response. if there are no comments which solved the problem, it actually is your part to tell what you have tried such that the experts participating have a chance to help you with your issue. if you found the solution yourself you may post it here and then accept your own comment with 0 points. if you don't want to proceed on the issue anymore, then you can post a request for deletion. all this is better than closing the question with accepting any comment and run it down by giving a c grade.

Sara

p. s.
below your original post is  a 'Request Attention' link where you could ask for reopening the question in order to make a better closing of the question.
0
 

Accepted Solution

by:
Aaeshah earned 0 total points
Comment Utility
I manage to solve the problem by change the output directory to the bin/debug file in vtk and it works just fine.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now