This is driving me nuts. Using crypto++ ver 5.6.2. Qt 5.2.1 on Mac OSX. All the projects are built inside QT Creator. Im not using make from the command line
I build crypto++ by unpacking and building as follow:
- qmake -project
- Deleted the GNUmakefile
Open in QT and modified the .pro file by adding
macx { DEFINES += CRYPTOPP_DISABLE_ASM }
The target is cryptopp:
TARGET = cryptopp
Set to release, ran qmake and did a rebuild all. The dylibs get generated:
- libcryptopp.1.0.0.dylib
- libcryptopp.1.0.dylib (Alias)
- libcryptopp.1.dylib (Alias)
- libcryptopp.dylib (Alias)
Created a bare console application and included my crypto class. Modified the .pro file as follow:
macx {
# CONFIG += release cryptopp
LIBS += /Users/adviner/Qt5.2.1/5.2.1/clang_64/lib/libcryptopp.1.0.0.dylib
QMAKE_POST_LINK += install_name_tool -change libcryptopp.1.0.0.dylib $$[QT_INSTALL_LIBS]/libcryptopp.1.0.0.dylib $(TARGET)
}
In the console test app in debug mode. Ran qmake and then rebuild all. I keep getting the following error:
:-1: error: symbol(s) not found for architecture x86_64
:-1: error: linker command failed with exit code 1 (use -v to see invocation)
I've checked both the projects and they both include x86_64) in the qmake build steps:
cryptopp lib:
qmake /Users/myname/Projects/QTLibs/Source/crypto/cryptopp562/cryptopp562.pro -r -spec macx-clang CONFIG+=x86_64
Test console app:
qmake /Users/myname/Projects/Test/CryptoTest/CryptoTest.pro -r -spec macx-clang CONFIG+=debug CONFIG+=x86_64 CONFIG+=declarative_debug CONFIG+=qml_debug
Ive done some google search but nothing seems to answer my problem. Any ideas? I have built the same crypto++ lib on windows using Qt 5.2.1 and used in my app with no problems.