c++ - QT console application with Crypto++ library -


this driving me nuts. using crypto++ ver 5.6.2. qt 5.2.1 on mac osx. projects built inside qt creator. im not using make command line

i build crypto++ unpacking , building follow:

  1. qmake -project
  2. deleted gnumakefile
  3. open in qt , modified .pro file adding

    macx {     defines += cryptopp_disable_asm } 

the target cryptopp:

target = cryptopp 

set release, ran qmake , did rebuild all. dylibs generated:

  • libcryptopp.1.0.0.dylib
  • libcryptopp.1.0.dylib (alias)
  • libcryptopp.1.dylib (alias)
  • libcryptopp.dylib (alias)

created bare console application , included crypto class. modified .pro file 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 console test app in debug mode. ran qmake , rebuild all. keep getting following error:

:-1: error: symbol(s) not found architecture x86_64 :-1: error: linker command failed exit code 1 (use -v see invocation) 

i've checked both projects , both include x86_64) in 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 google search nothing seems answer problem. ideas? have built same crypto++ lib on windows using qt 5.2.1 , used in app no problems.

ok figured out. when built crypto++ lib on mac added described above:

macx {     defines += cryptopp_disable_asm } 

well on console application had add in .pro file , works now

i found following tip modify

/users/adviner/qt5.2.1/5.2.1/clang_64/mkspecs/macx-clang/qmake.conf

from qmake_macosx_deployment_target = 10.6

to qmake_macosx_deployment_target = 10.9

but didnt me.

only solution put on both lib , test cryptopp_disable_asm


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -