View Single Post
Posts: 650 | Thanked: 619 times | Joined on Nov 2009
#4
Originally Posted by qwazix View Post
Most probably there are some dependencies missing. Try packaging with smart installer.
Thanks for the hints. After starting from a basic example and work my way through re-adding components, I found out two things that prevent the app from working:
1) TARGET.EPOCHEAPSIZE = 0x1000 0x1800000 # 24MB
I had set this to a smaller number. With that, the app simply doesn't run.
2) I had a wrong signal name in Qt-component switch, which caused the app to crash after about 2 seconds.

So the app now runs, but I have a new problem. I need encryption so I include openssl by:

Code:
*.pro: LIBS += -lcrypto
*.h:   #include <openssl/evp.h>
  #include <openssl/aes.h>
But when I compiled, QtSDK failed with the following errors:
Code:
error: Recipe linkandpostlink failed with exit code 1.
It complained about undefined reference to the functions in openssl/aes.h.

I have googled and all reference I found suggested LIBS += -lcrypto or -libcrypto should pull in the openssl library, but it is not happening. Any suggestion what went wrong?

Thanks in advance.


EDIT: Found out why, it should be two 'l' -llibcrypto.....

Last edited by sony123; 2012-04-12 at 07:48.