Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The project I'm working on fails to link properly. It is built with CMAKE. It use to compile & link fine, before the PC got updated(Buntu11.04 to 12.04, installed packages updated as well). The projects VTK is ver 5.8.0.

The err is: undefined reference to QVTKWidget2::QVTKWidget(QWidget*, QGLWidget const*, QFlags) This is a call to VTK/GUISupport/Qt/QVTKWidget2.cxx. From here I'm lost. I don't know which library is missing. i.e. Which lib has the QVTKWidget2 class? How do I find this?

I've tried ldd VTK/build/bin/, but all I'm finding are more *.so libs. Is there a similar cmd that I can use to find out what is in the someCompiled.a files?

share|improve this question
ar -t someCompiled.a  

Shows what is in the archive.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.