tpf80
6th November 2009, 20:21
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:
ms/mingw32
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.
#########################
# Custom for automatic updater
#########################
TEMPLATE = app
unix: TARGET = release_linux/updater
win32: TARGET = release_windows/updater
DEPENDPATH += maingui ssl fab_varlib
INCLUDEPATH += maingui ssl fab_varlib
win32 {
LIBS += -L D:/openssl-0.9.8k/out
}
# Input
HEADERS += maingui/calculatorform.h maingui/dialog_login.h \
ssl/client.h ssl/dialog_common.h \
fab_varlib/fab_var.h
FORMS += maingui/calculatorform.ui maingui/dialog_login.ui
SOURCES += maingui/calculatorform.cpp maingui/dialog_login.cpp \
maingui/main.cpp \
ssl/client.cpp ssl/dialog_common.cpp
QT += core \
gui \
sql \
network
CONFIG += static
I built openssl using the following command from the openssl directory:
ms/mingw32
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.
#########################
# Custom for automatic updater
#########################
TEMPLATE = app
unix: TARGET = release_linux/updater
win32: TARGET = release_windows/updater
DEPENDPATH += maingui ssl fab_varlib
INCLUDEPATH += maingui ssl fab_varlib
win32 {
LIBS += -L D:/openssl-0.9.8k/out
}
# Input
HEADERS += maingui/calculatorform.h maingui/dialog_login.h \
ssl/client.h ssl/dialog_common.h \
fab_varlib/fab_var.h
FORMS += maingui/calculatorform.ui maingui/dialog_login.ui
SOURCES += maingui/calculatorform.cpp maingui/dialog_login.cpp \
maingui/main.cpp \
ssl/client.cpp ssl/dialog_common.cpp
QT += core \
gui \
sql \
network
CONFIG += static