Solved

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

Posted on 2015-02-07
8
514 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

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…
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 use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

691 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