Thank you in advance for your assistance. I am not quite sure if this is an issue with openssl or with my Qt configuration.

I built openssl using the following command from the openssl directory:

Qt Code:
  1. ms/mingw32
To copy to clipboard, switch view to plain text mode 

This worked fine, and the test came out ok.

I then built Qt static using the following command:


configure -release -opensource -static -openssl-linked -I "D:/openssl-0.9.8k/outinc"
-L "D:/openssl-0.9.8k/out" -webkit -nomake examples -nomake demos
-no-qt3support -no-style-plastique -no-style-cleanlooks -no-style-motif -no-style-cde
-no-style-windowsce -no-style-windowsmobile -platform win32-g++
This process was successful.

I then tried to compile an application that I had working in an older version of Qt4, but was using shared libraries in the old build.

The result was this error:
mingw32\bin\ld.exe: cannot find -Lssleay32
I checked my openssl 0.9.8K build, and there is no such file in the out folder, however my old environment had such a file. When I copied libssleay32.a from my old build environment to the D:\openssl-0.9.8k\out folder, and I renamed "libeay32.a" to "liblibeay32.a" then my program would build however there are still the following 2 issues:

1) the libeay32.a that I used was from an older version of openssl from 2007. This could in theory cause problems, and I would like to be able to use the latest version if possible (however the latest version does not contain this file).

2) the compiled program asks for "libeay32.dll" rather than that functionality being statically compiled into the program.

Here also is my .pro file in case there is something within that is wrong.
Qt Code:
  1. #########################
  2. # Custom for automatic updater
  3. #########################
  4.  
  5. TEMPLATE = app
  6. unix: TARGET = release_linux/updater
  7. win32: TARGET = release_windows/updater
  8. DEPENDPATH += maingui ssl fab_varlib
  9. INCLUDEPATH += maingui ssl fab_varlib
  10.  
  11. win32 {
  12. LIBS += -L D:/openssl-0.9.8k/out
  13. }
  14.  
  15. # Input
  16. HEADERS += maingui/calculatorform.h maingui/dialog_login.h \
  17. ssl/client.h ssl/dialog_common.h \
  18. fab_varlib/fab_var.h
  19.  
  20. FORMS += maingui/calculatorform.ui maingui/dialog_login.ui
  21.  
  22. SOURCES += maingui/calculatorform.cpp maingui/dialog_login.cpp \
  23. maingui/main.cpp \
  24. ssl/client.cpp ssl/dialog_common.cpp
  25.  
  26. QT += core \
  27. gui \
  28. sql \
  29. network
  30. CONFIG += static
To copy to clipboard, switch view to plain text mode