April 12, 2012

House15 House15
Lab Rat
57 posts

OpenSSL and Qt. Need help.

 

Good day.

I beg your competent assistance in the issue of building Qt with OpenSSL library. In internet i found some instructions, but all of them has no effect – Qt does not compile successfully with needed parameters and OpenSSL headers.

I have Qt 4.7.4 with MinGW and Qt 4.8.0 with mscv-2010. All ready tried build Qt from sources, but situation is a same. For buildind Qt 4.8.0 i use Microsoft Visual Studio 2010.

Can some one give me detailed instructions about the points describing the process of assembly and compilation.

Many thanks in advance. Sorry for english.

11 replies

April 13, 2012

jensen82 jensen82
Ant Farmer
131 posts

What’s the error? Please paste the error code from build/make.

Which option do you use?

-openssl Compile in run-time OpenSSL support
or
-openssl-linked Compile in linked OpenSSL support

April 13, 2012

AcerExtensa AcerExtensa
Ant Farmer
667 posts

Have never had troubles with Qt & openssl build.
Download openssl win32 binaries for developers from this [slproweb.com] site. Install it somewhere. Then, go to installation path and copy

  • ssleay32.dll & libaey32.dll from openssl bin folder to Qt bin folder
  • libaey32.lib & ssleay32.lib(not the libaey32MD.dll or MT from lib/VC!) from openssl lib folder to Qt lib folder
  • copy folder “openssl” from openssl “include” folder to Qt’s “include” folder(create include folder if it is not exist)

Thats all. Simple

  1. configure -openssl -shared

will work. unless you have troubles with other dependencies…

If you still need help, post compiler or linker errors…

 Signature 

God is Real unless explicitly declared as Integer.

April 13, 2012

House15 House15
Lab Rat
57 posts

Well that is surprise… So you wanna to say, that building and compiling Qt with “nmake”, or “mingw32” is not necessarily? But…if libs allready have, it makes sense.

I will try, and report about results.

April 13, 2012

AcerExtensa AcerExtensa
Ant Farmer
667 posts

sure you must build Qt after doing “configure …” Where did you read what building is not necessarry? O_o

 Signature 

God is Real unless explicitly declared as Integer.

April 13, 2012

House15 House15
Lab Rat
57 posts

Ok, here is a results.

My system:Win 7 Home Expended x64. Using installed separately MinGW. In environment variables:
C:\Qt\4.7.4\bin;
C:\QtSDK\mingw\bin;
C:\QtSDK\Desktop\Qt\4.7.4\mingw\bin;
C:\QtSDK-4.8\Desktop\Qt\4.8.0\msvc2010\bin;
C:\nasm;
C:\develop\tools\perl\bin;
C:\MinGW\bin;

1)I’ve reinstall QtSDK 4.7 for MinGW and Qt-4.7.4(mingw) . In this time i don’t change any parametrs in qmake.conf.
2)

  1. ssleay32.dll & libaey32.dll from openssl bin folder to Qt bin folder
  2. libaey32.lib & ssleay32.lib(not the libaey32MD.dll or MT from lib/VC!) from openssl lib folder to Qt lib folder
  3. copy folder “openssl” from openssl “include” folder to Qt’s “include” folder(create include folder if it is not exist)

3)Run Command Promt, entering into Qt/4.7.4

4)configure.exe -static -debug-and-release -qt-zlib -qt-gif -qt-libpng -qt-libmng -qt-libjpeg -no-crt -openssl-linked -qt-sql-odbc -no-webkit

5)Configuration was sucсessful.
6)Run mingw32-make
7)…after 4 hours of complilation, system start complaining. This has resulted the following:

  1. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function
  2.  `Z18q_X509_verify_certP17x509_store_ctx_st':
  3. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:247: undefined
  4. reference to `X509_verify_cert'
  5. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function
  6.  `Z19q_X509_NAME_onelineP12X509_name_stPci':
  7. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:248: undefined
  8. reference to `X509_NAME_oneline'
  9. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function
  10.  `Z17q_X509_PUBKEY_getP14X509_pubkey_st':
  11. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:249: undefined
  12. reference to `X509_PUBKEY_get'
  13. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function
  14.  `Z17q_X509_STORE_freeP13x509_store_st':
  15. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:250: undefined
  16. reference to `X509_STORE_free'
  17. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function
  18.  `Z16q_X509_STORE_newv':
  19. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:251: undefined
  20. reference to `X509_STORE_new'
  21. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function
  22.  `Z21q_X509_STORE_add_certP13x509_store_stP7x509_st':
  23. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:252: undefined
  24. reference to `X509_STORE_add_cert'
  25. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function
  26.  `Z21q_X509_STORE_CTX_freeP17x509_store_ctx_st':
  27. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:253: undefined
  28. reference to `X509_STORE_CTX_free'
  29. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function
  30.  `Z21q_X509_STORE_CTX_initP17x509_store_ctx_stP13x509_store_stP7x509_stP13stack_
  31. st_X509':
  32. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:254: undefined
  33. reference to `X509_STORE_CTX_init'
  34. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function
  35.  `Z28q_X509_STORE_CTX_set_purposeP17x509_store_ctx_sti':
  36. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:255: undefined
  37. reference to `X509_STORE_CTX_set_purpose'
  38. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function
  39.  `Z20q_X509_STORE_CTX_newv':
  40. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:256: undefined
  41. reference to `X509_STORE_CTX_new'
  42. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function
  43.  `Z35q_OPENSSL_add_all_algorithms_noconfv':
  44. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:263: undefined
  45. reference to `OPENSSL_add_all_algorithms_noconf'
  46. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function
  47.  `Z33q_OPENSSL_add_all_algorithms_confv':
  48. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:264: undefined
  49. reference to `OPENSSL_add_all_algorithms_conf'
  50. collect2: Р?С<РїР?Р>Р?РчР?РёРч ld Р·Р°Р?РчС?С?РёР>Р?С?С? С? РєР?Р?Р?Р? Р?Р?Р·Р?С
  51. ?Р°С'Р° 1
  52. mingw32-make[5]: *** [..\..\..\..\bin\assistant.exe] Error 1
  53. mingw32-make[5]: Leaving directory `C:/Qt/4.7.4-fresh/tools/assistant/tools/assi
  54. stant'
  55. mingw32-make[4]: *** [debug-all] Error 2
  56. mingw32-make[4]: Leaving directory `C:/Qt/4.7.4-fresh/tools/assistant/tools/assi
  57. stant'
  58. mingw32-make[3]: *** [sub-assistant-make_default-ordered] Error 2
  59. mingw32-make[3]: Leaving directory `C:/Qt/4.7.4-fresh/tools/assistant/tools'
  60. mingw32-make[2]: *** [sub-tools-make_default-ordered] Error 2
  61. mingw32-make[2]: Leaving directory `C:/Qt/4.7.4-fresh/tools/assistant'
  62. mingw32-make[1]: *** [sub-assistant-make_default-ordered] Error 2
  63. mingw32-make[1]: Leaving directory `C:/Qt/4.7.4-fresh/tools'
  64. mingw32-make: *** [sub-tools-make_default-ordered] Error 2
  65.  
  66. C:\Qt\4.7.4-fresh>

April 13, 2012

House15 House15
Lab Rat
57 posts

8)When compilation is finished, i run “mingw32-make install”. The result is symmetric with the previous item:

  1. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function
  2.  `Z16q_X509_STORE_newv':
  3. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:251: undefined
  4. reference to `X509_STORE_new'
  5. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function
  6.  `Z21q_X509_STORE_add_certP13x509_store_stP7x509_st':
  7. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:252: undefined
  8. reference to `X509_STORE_add_cert'
  9. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function
  10.  `Z21q_X509_STORE_CTX_freeP17x509_store_ctx_st':
  11. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:253: undefined
  12. reference to `X509_STORE_CTX_free'
  13. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function
  14.  `Z21q_X509_STORE_CTX_initP17x509_store_ctx_stP13x509_store_stP7x509_stP13stack_
  15. st_X509':
  16. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:254: undefined
  17. reference to `X509_STORE_CTX_init'
  18. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function
  19.  `Z28q_X509_STORE_CTX_set_purposeP17x509_store_ctx_sti':
  20. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:255: undefined
  21. reference to `X509_STORE_CTX_set_purpose'
  22. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function
  23.  `Z20q_X509_STORE_CTX_newv':
  24. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:256: undefined
  25. reference to `X509_STORE_CTX_new'
  26. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function
  27.  `Z35q_OPENSSL_add_all_algorithms_noconfv':
  28. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:263: undefined
  29. reference to `OPENSSL_add_all_algorithms_noconf'
  30. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function
  31.  `Z33q_OPENSSL_add_all_algorithms_confv':
  32. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:264: undefined
  33. reference to `OPENSSL_add_all_algorithms_conf'
  34. collect2: Р?С<РїР?Р>Р?РчР?РёРч ld Р·Р°Р?РчС?С?РёР>Р?С?С? С? РєР?Р?Р?Р? Р?Р?Р·Р?С
  35. ?Р°С'Р° 1
  36. mingw32-make[5]: *** [..\..\..\..\bin\assistant.exe] Error 1
  37. mingw32-make[5]: Leaving directory `C:/Qt/4.7.4-fresh/tools/assistant/tools/assi
  38. stant'
  39. mingw32-make[4]: *** [debug-all] Error 2
  40. mingw32-make[4]: Leaving directory `C:/Qt/4.7.4-fresh/tools/assistant/tools/assi
  41. stant'
  42. mingw32-make[3]: *** [sub-assistant-make_default-ordered] Error 2
  43. mingw32-make[3]: Leaving directory `C:/Qt/4.7.4-fresh/tools/assistant/tools'
  44. mingw32-make[2]: *** [sub-tools-make_default-ordered] Error 2
  45. mingw32-make[2]: Leaving directory `C:/Qt/4.7.4-fresh/tools/assistant'
  46. mingw32-make[1]: *** [sub-assistant-make_default-ordered] Error 2
  47. mingw32-make[1]: Leaving directory `C:/Qt/4.7.4-fresh/tools'
  48. mingw32-make: *** [sub-tools-make_default-ordered] Error 2
  49.  
  50. C:\Qt\4.7.4-fresh>

After all of this operations, i noticed incorrect path in system enviroment variables. So varibles was changed:

C:\Qt\4.7.4-fresh\bin;
C:\QtSDK-4.8\Desktop\Qt\4.8.0\msvc2010\bin;
C:\nasm;
C:\develop\tools\perl\bin;
C:\MinGW\bin;

“mingw32-make” and “mingw32 install” was rerun. I this time compilation took much less time, but result is same.

What goes wrong? Can it causes by separately MinGW?

April 13, 2012

House15 House15
Lab Rat
57 posts

Also tried use some function from openssl. Output after compilation by Qt MinGW and separately MinGW contains about 100 errors same type.

Here is some output Qt MinGW:

  1. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:240: undefined reference to `X509_EXTENSION_get_object'
  2. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function `Z11q_X509_freeP7x509_st':
  3. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:241: undefined reference to `X509_free'
  4. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function `Z14q_X509_get_extP7x509_sti':
  5. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:242: undefined reference to `X509_get_ext'
  6. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function `Z20q_X509_get_ext_countP7x509_st':
  7. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:243: undefined reference to `X509_get_ext_count'
  8. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function `Z18q_X509_get_ext_d2iP7x509_stiPiS1_':
  9. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:244: undefined reference to `X509_get_ext_d2i'
  10. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function `Z22q_X509_get_issuer_nameP7x509_st':
  11. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:245: undefined reference to `X509_get_issuer_name'
  12. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function `Z23q_X509_get_subject_nameP7x509_st':
  13. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:246: undefined reference to `X509_get_subject_name'
  14. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function `Z18q_X509_verify_certP17x509_store_ctx_st':
  15. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:247: undefined reference to `X509_verify_cert'
  16. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function `Z19q_X509_NAME_onelineP12X509_name_stPci':
  17. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:248: undefined reference to `X509_NAME_oneline'
  18. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function `Z17q_X509_PUBKEY_getP14X509_pubkey_st':
  19. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:249: undefined reference to `X509_PUBKEY_get'
  20. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function `Z17q_X509_STORE_freeP13x509_store_st':
  21. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:250: undefined reference to `X509_STORE_free'
  22. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function `Z16q_X509_STORE_newv':
  23. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:251: undefined reference to `X509_STORE_new'
  24. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function `Z21q_X509_STORE_add_certP13x509_store_stP7x509_st':
  25. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:252: undefined reference to `X509_STORE_add_cert'
  26. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function `Z21q_X509_STORE_CTX_freeP17x509_store_ctx_st':
  27. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:253: undefined reference to `X509_STORE_CTX_free'
  28. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function `Z21q_X509_STORE_CTX_initP17x509_store_ctx_stP13x509_store_stP7x509_stP13stack_st_X509':
  29. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:254: undefined reference to `X509_STORE_CTX_init'
  30. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function `Z28q_X509_STORE_CTX_set_purposeP17x509_store_ctx_sti':
  31. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:255: undefined reference to `X509_STORE_CTX_set_purpose'
  32. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function `Z20q_X509_STORE_CTX_newv':
  33. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:256: undefined reference to `X509_STORE_CTX_new'
  34. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function `Z35q_OPENSSL_add_all_algorithms_noconfv':
  35. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:263: undefined reference to `OPENSSL_add_all_algorithms_noconf'
  36. c:\Qt\4.7.4-fresh\lib/libQtNetworkd.a(qsslsocket_openssl_symbols.o): In function `Z33q_OPENSSL_add_all_algorithms_confv':
  37. C:\Qt\4.7.4-fresh\src\network/ssl/qsslsocket_openssl_symbols.cpp:264: undefined reference to `OPENSSL_add_all_algorithms_conf'
  38. collect2: выполнение ld завершилось с кодом возврата 1
  39. mingw32-make[1]: Leaving directory `C:/Users/House15/Documents/QtProjects/Server-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK_________'
  40. mingw32-make[1]: *** [debug\DialogTcpServer.exe] Error 1
  41. mingw32-make: *** [debug] Error 2

Output separately MinGW is pretty same.

April 13, 2012

House15 House15
Lab Rat
57 posts

Most important!

After all of the above, i added

  1. #include <openssl/evp.h>
  2. ...
  3.         unsigned char key[32];
  4.         unsigned char iv[8];
  5.         unsigned char inbuf[BUFSIZE], outbuf[BUFSIZE];
  6.          EVP_CIPHER_CTX *ctx;
  7.          const EVP_CIPHER * cipher;
  8. ...
  9.  
  10.        ctx=new EVP_CIPHER_CTX;
  11.         EVP_CIPHER_CTX_init(ctx);
  12.         cipher = EVP_aes_256_cfb();
  13.         EVP_EncryptInit(ctx, cipher, key, iv);

System starting complaining, which confused me at the very beginning of my acquaintance with OpenSSL.

  1. C:\Users\House15\Documents\QtProjects\Server-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK_________/../Server/myserver.cpp:142: undefined reference to `EVP_CIPHER_CTX_init'
  2. C:\Users\House15\Documents\QtProjects\Server-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK_________/../Server/myserver.cpp:144: undefined reference to `EVP_aes_256_cfb128'
  3. C:\Users\House15\Documents\QtProjects\Server-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK_________/../Server/myserver.cpp:148: undefined reference to `EVP_EncryptInit'
  4. C:\Users\House15\Documents\QtProjects\Server-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK_________/../Server/myserver.cpp:142: undefined reference to `EVP_CIPHER_CTX_init'
  5. C:\Users\House15\Documents\QtProjects\Server-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK_________/../Server/myserver.cpp:144: undefined reference to `EVP_aes_256_cfb128'
  6. C:\Users\House15\Documents\QtProjects\Server-build-desktop-Qt_4_7_4_for_Desktop_-_MinGW_4_4__Qt_SDK_________/../Server/myserver.cpp:148: undefined reference to `EVP_EncryptInit'

And that it’s all about! I need OpenSSL only for this fuctions, and maybe another, for implementation AES.

April 15, 2012

House15 House15
Lab Rat
57 posts

Ok, guess i’ve solve the problem.

In general, problem is reduced to question:Why system doesn’t see references of function in libs. If we work with downloaded from somewhere .lib and .dll files, it’s obvios – problem in them. So, the is two possible solution:

1)Download another libs, and try again.
2)Build up libs by yourself.

Frankly, i’m simple just downloaded another libs, and it’s finally started to work! But, there is one thing:if you x64 system, you can faced with the problem:Qt was build for x86 architecture. Even if you rebuild it with 64-bits compiler, not all libs will be fit for new environment.

Solution:build up libs from source. I’m did it, and it’s finally start to see OpenSSL functions.

One thing, nevertheless, is disturb: program have a difficulties with working with files. It’s can write into them, but cannot read from it. I can not say for sure whether this is due to the recompiling, but problem with OpenSSL was solved.

April 15, 2012

House15 House15
Lab Rat
57 posts

Here is my spoon of tar…

In attempt read of file, in debuger i can see this:

*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\qt-everywhere-opensource-src-4.8.1\bin\LIBEAY32.dll – *** ERROR: Module load completed but symbols could not be loaded for C:\Windows\system32\odbcint.dll *** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\qt-everywhere-opensource-src-4.8.1\bin\SSLEAY32.dll – *** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\Windows\system32\nvinitx.dll –

Try recompile all of things on x86

June 24, 2013

Vignesh Vignesh
Lab Rat
4 posts

Hi All,
1. We are working on Qt Fancybrowser application. In that https websites are not loading
2. Qt geeks and web search basis , they suggests that
By default, the OpenSSL support will be disabled in the Qt SDK. So we have to build the Qt SDK with OpenSSL support and compile the fancy browser source in that SDK will solve this problem
3. So we did the following steps

================================================ a. Downloaded the “qt-everywhere-opensource-src-4.8.4.tar.gz”

b. ./configure -embedded arm -xplatform qws/linux-arm-g++ -qt-kbd-linuxinput -qt-kbd-qvfb -qt-mouse-tslib -webkit -openssl -opensource -verbose -R /usr/local/tslib/lib/ -L/usr/local/ssl/lib/ -I/usr/local/ssl/include/ c. make d. make install e. After this the Qt SDK is installed in /usr/local/Trolltech/Qt-Embedded-4.8.4/ f. We set QT SDK path as qmake path in the above compiled and tested the bonary in our board

=================================================
4. Now also we are having the same issue

Please let us know the root cause and is there any mistakes we are doing. Please help to resolve this problem

Regards,
Vignesh

 
  ‹‹ Facing performance issue with QGraphicsScene and QGraphicsview      How to make a label mouse selectable ››

You must log in to post a reply. Not a member yet? Register here!