PDA

View Full Version : QtGui.framework issue while running a small application - GC capability did not match



larsemann
15th January 2011, 14:55
Hi,

I really need help with a small application, which was written with the help of the itk/vtk libraries. i just installed the qt framework, because i would like to extend the app with some sliders and gui functionality from qt, but i just cannot run the application. Although there is no "qt-code" in my work?
While trying to run, i just get the following notice:

objc[33421]: '/Library/Frameworks/QtGui.framework/Versions/4/QtGui' was not compiled with -fobjc-gc or -fobjc-gc-only, but the application requires GC
objc[33421]: *** GC capability of application and some libraries did not match
Illegal instruction



I'm really new to qt and i'm just starting to intensify my skills in c++, so please don't be too hard on judging my newbie-problems... ;) But i'm really interested in to get better!

larsemann
16th January 2011, 13:05
Hi, finally I helped myself with collecting some experience in the vtk compile flags.
After i set VTK_REQUIRED_OBJECTXX_FLAGS to '-fobjc-gc' everything works fine.

Anyway, thanks for reading. ;)