Mac で QT プロジェクトをコンパイルすると、次のエラーが発生します。
ld: file not found: QtCore.framework/Versions/4/QtCore for architecture x86_64
以下に示すように、64ビットアーキテクチャが利用可能であるため、これは正しくありません
$ cd
/Library/Frameworks/QtCore.framework/Versions/4
$ file QtCore
QtCore: Mach-O universal binary with 2 architectures
QtCore (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64
QtCore (for architecture i386): Mach-O dynamically linked shared library i386
問題に見えるのは?
更新: ld コマンドラインは
/usr/bin/c++ -dynamiclib -Wl,-headerpad_max_install_names -compatibility_version 1.0.0 -current_version 1.0.5 -o libjreen.1.0.5.dylib -install_name /Users/sb/Work/QuiKast/jabber/libjreen-1.0.5/build/libjreen.1.dylib ./src/abstractroster.cpp.o ./src/action.cpp.o ./3rdparty/jdns/moc_qjdns.cpp.o ./3rdparty/jdns/moc_qjdns_p.cpp.o -F/usr/local/lib /opt/local/lib/libQtNetwork.dylib /opt/local/lib/libQtCore.dylib -framework qca /usr/lib/libz.dylib
と
$ file /opt/local/lib/libQtCore.dylib
/opt/local/lib/libQtCore.dylib: Mach-O 64-bit dynamically linked shared library x86_64