QT-Creator, Mavericks, and VTK 6.2



  • This has probably been discussed before. I have been able to get an app compiled in Creator to run for a few seconds. Then I get the OS X crash screen. If anyone at Qt working to get Creator AND VTK to work on OS X I will leave the project alone and give more details about the VTK installation and place a copy of the .pro file on here. If there is a sure fire way to get Qt-Creator to compile and run forms with the QVTKWidget, please send me the link to the discussion thread. Thanks.

    Process: Test [66302]
    Path: /Users/USER/Documents/*/Test.app/Contents/MacOS/Test
    Identifier: erdc_rjm.Test
    Version: ???
    Code Type: X86-64 (Native)
    Parent Process: launchd [454]
    Responsible: Test [66302]
    User ID: 501

    Date/Time: 2014-08-13 16:25:33.009 -0500
    OS Version: Mac OS X 10.9.4 (13E28)
    Report Version: 11
    Anonymous UUID: 0B1B9101-FA69-41FB-84EE-A81AF7AD7300

    Crashed Thread: 0 Dispatch queue: com.apple.main-thread

    Exception Type: EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000

    VM Regions Near 0:
    -->
    __TEXT 0000000100000000-0000000100006000 [ 24K] r-x/rwx SM=COW /Users/USER/Documents/*/Test.app/Contents/MacOS/Test

    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0 libvtkGUISupportQt-6.2.1.dylib 0x0000000100057a1a QVTKWidget::GetRenderWindow() + 42
    1 libvtkGUISupportQt-6.2.1.dylib 0x0000000100057d0f QVTKWidget::GetInteractor() + 15
    2 libvtkGUISupportQt-6.2.1.dylib 0x0000000100058587 QVTKWidget::focusInEvent(QFocusEvent*) + 23
    3 QtWidgets 0x0000000100616ccd QWidget::event(QEvent*) + 1661
    4 libvtkGUISupportQt-6.2.1.dylib 0x0000000100058016 QVTKWidget::event(QEvent*) + 214
    5 QtWidgets 0x00000001005dc0dc QApplicationPrivate::notify_helper(QObject*, QEvent*) + 252
    6 QtWidgets 0x00000001005df4ba QApplication::notify(QObject*, QEvent*) + 8490
    7 QtCore 0x00000001013a9013 QCoreApplication::notifyInternal(QObject*, QEvent*) + 115
    8 QtWidgets 0x00000001005da1ae QApplicationPrivate::setFocusWidget(QWidget*, Qt::FocusReason) + 462
    9 QtWidgets 0x0000000100613ad9 QWidget::setFocus(Qt::FocusReason) + 1017
    10 QtWidgets 0x00000001005db26b QApplication::setActiveWindow(QWidget*) + 1195
    11 QtGui 0x0000000100c3d670 QGuiApplicationPrivate::processActivatedEvent(QWindowSystemInterfacePrivate::ActivatedWindowEvent*) + 656
    12 QtGui 0x0000000100c39606 QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) + 422
    13 QtGui 0x0000000100c27c1a QWindowSystemInterface::sendWindowSystemEvents(QFlagsQEventLoop::ProcessEventsFlag) + 346
    14 com.apple.CoreFoundation 0x00007fff955a3d67 CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 23
    15 com.apple.CoreFoundation 0x00007fff955a3cd7 __CFRunLoopDoObservers + 391
    16 com.apple.CoreFoundation 0x00007fff95594e59 CFRunLoopRunSpecific + 281
    17 com.apple.HIToolbox 0x00007fff91e07a0d RunCurrentEventLoopInMode + 226
    18 com.apple.HIToolbox 0x00007fff91e07685 ReceiveNextEventCommon + 173
    19 com.apple.HIToolbox 0x00007fff91e075bc _BlockUntilNextEventMatchingListInModeWithFilter + 65
    20 com.apple.AppKit 0x00007fff8da3624e _DPSNextEvent + 1434
    21 com.apple.AppKit 0x00007fff8da3589b -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
    22 com.apple.AppKit 0x00007fff8da2999c -[NSApplication run] + 553
    23 libqcocoa.dylib 0x000000010631fa25 QCocoaEventDispatcher::processEvents(QFlagsQEventLoop::ProcessEventsFlag) + 2165
    24 QtCore 0x00000001013a66fd QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) + 381
    25 QtCore 0x00000001013a95fc QCoreApplication::exec() + 364
    26 erdc_rjm.Test 0x00000001000042cb main + 91 (main.cpp:10)
    27 erdc_rjm.Test 0x0000000100004264 start + 52



  • So I rebuilt all of Qt and VTK using the macosx10.8 sdk instead of 10.9.
    Now Qt-creator will try to run the binary and it reports:

    Starting /Volumes/BigHome/rmoral/Documents/dev/QtVTK/build-Tester-Mac-Debug/Tester.app/Contents/MacOS/Tester...
    dyld: Library not loaded: libvtkViewsQt-6.2.1.dylib
    Referenced from: /Volumes/BigHome/rmoral/Documents/dev/QtVTK/build-Tester-Mac-Debug/Tester.app/Contents/MacOS/Tester
    Reason: image not found
    The program has unexpectedly finished.
    /Volumes/BigHome/rmoral/Documents/dev/QtVTK/build-Tester-Mac-Debug/Tester.app/Contents/MacOS/Tester crashed

    My DYLD_LIBRARY_PATH includes the path to the dynamic library. So I do not what gives.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.