Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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/someLibs.so, 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

1 Answer 1

ar -t someCompiled.a  

Shows what is in the archive.

share|improve this answer

Your Answer

 
discard

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.