Solved

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

Posted on 2015-02-07
8
475 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 34

Expert Comment

by:sarabande
ID: 40598875
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 34

Expert Comment

by:sarabande
ID: 40637945
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
ID: 40638189
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How To Loop - Python 19 97
groovy example issue 10 111
Message not shown 5 82
Installshield for Embarcadero EX 10.1 Berlin 4 72
Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

685 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