Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Mac Application Build Fails When Linking QtAccessibleWidgets
Forum Updated to NodeBB v4.3 + New Features

Mac Application Build Fails When Linking QtAccessibleWidgets

Scheduled Pinned Locked Moved Installation and Deployment
1 Posts 1 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mark Snuffin
    wrote on last edited by
    #1

    Greetings folks,

    I'm evaluating accessibility on the Mac using Qt and have run into a problem getting a test application to build. The app is based on the stylesheet example and I'm just trying to rebuild it with accessibility. The demo version of stylesheet doesn't work at all with Mac VoiceOver but Qt docs state that accessibility is available using the Carbon-based Qt package. I'm trying to verify this but no joy thus far.

    The build error is Undefined symbols for architecture i386 qt_plugin_instance_qtaccessiblewidgets()", referenced from:... with a snip from the compile output below:

    @
    g++ -headerpad_max_install_names -arch i386 -o stylesheet.app/Contents/MacOS/stylesheet main.o mainwindow.o stylesheeteditor.o moc_mainwindow.o moc_stylesheeteditor.o qrc_stylesheet.o -F/Library/Frameworks -L/Library/Frameworks -L/Developer/Applications/Qt/plugins/accessible -lqtaccessiblewidgets -framework QtGui -framework QtCore
    Undefined symbols for architecture i386:
    "qt_plugin_instance_qtaccessiblewidgets()", referenced from:
    __static_initialization_and_destruction_0(int, int)in main.o
    ld: symbol(s) not found for architecture i386
    collect2: ld returned 1 exit status
    make: *** [stylesheet.app/Contents/MacOS/stylesheet] Error 1
    make: Leaving directory `/Users/marksnuffin/Desktop/stylesheet-build-desktop'
    The process "/usr/bin/make" exited with code 2.
    Error while building project stylesheet (target: Desktop)
    When executing build step 'Make'
    @

    Some additional details -

    • Installed the Carbon: Mac binary package for Mac OS X 10.4 - 10.6 (32-bit Intel/PPC)
    • Installed Qt Creator 2.2
    • Using a MacBook Pro with OSX 10.6 x64

    The File utility reports the following for the Accessible plug-in:
    @
    file libqtaccessiblewidgets.dylib
    libqtaccessiblewidgets.dylib: Mach-O universal binary with 2 architectures
    libqtaccessiblewidgets.dylib (for architecture i386): Mach-O dynamically linked shared library i386
    libqtaccessiblewidgets.dylib (for architecture ppc): Mach-O dynamically linked shared library ppc
    @

    I've experimented with a number of compiler options with the following in my pro file now:
    @
    CFLAGS += -mmacosx-version-min=10.6
    macx:CONFIG -= x86_64 ppc64
    macx:CONFIG += x86
    ...
    QTPLUGIN += qtaccessiblewidgets
    @

    Does anyone have any suggestions to resolve this problem?

    Thanks, Mark

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved