Link error: QtCore.framework/Versions/4/QtCore for architecture x86_64

While compiling a QT project on a Mac, I encounter the following error

ld: file not found: QtCore.framework/Versions/4/QtCore for architecture x86_64

which is not true because I have a 64bit architecture available, as shown below

$ cd
$ 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

What seems to be the problem?

Update: The ld command line is

/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



-framework QtCore

solved this issue

Need Your Help

How to fill attribute of xslt from xml

xml xslt

I am trying to add the value of xml into attribute of xslt. Tried various solutions but none is working. Refer below XML and corresponding XSLT code.

Android : Several activities sharing common code

java android

I have an Android application composed by several Activities. Most of them need to check whether an active network is available or not: