Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problems compiling with Qt in OSX
QtWS25 Last Chance

Problems compiling with Qt in OSX

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.1k Views
  • 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.
  • K Offline
    K Offline
    khamael
    wrote on last edited by
    #1

    Hi guys,

    I'm trying to compile a project using Qt in Mac OS X 10.7.5, with xcode 4.4.1. I get the following errors:

    ld: warning: directory not found for option '-L/usr/local/lib/vtk-5.6/Debug'
    Undefined symbols for architecture x86_64:
    "_SecCodeCheckValidity", referenced from:
    QSettingsPrivate::create(QSettings::Format, QSettings::Scope, QString const&, QString const&) in libQtCore_debug.a(qsettings_mac.o)
    "_SecCodeCopySelf", referenced from:
    QSettingsPrivate::create(QSettings::Format, QSettings::Scope, QString const&, QString const&) in libQtCore_debug.a(qsettings_mac.o)
    "_SecRequirementCreateWithString", referenced from:
    QSettingsPrivate::create(QSettings::Format, QSettings::Scope, QString const&, QString const&) in libQtCore_debug.a(qsettings_mac.o)
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    Any ideas?

    Thanks!
    Paulo

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      You need to add this to linker flags:
      @
      -framework Security
      @

      (Z(:^

      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