Problems compiling with Qt in OSX
-
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 -
You need to add this to linker flags:
@
-framework Security
@