curl-library
Self compiled cURL don't work with QT - please help
Date: Fri, 1 Mar 2019 12:15:13 +0100
Hello to all of you,
when I start the application it crashed immediately after starting in QT
Creator. What am I doing wrong?
I compiled cURL as follows:
This must be installed before:
https://nasm.us/
http://strawberryperl.com/
Preparation
W10 -> Language for non unicode programms set to English united states
IMPORTANT: Visual Studio x64 native tools command prompt open with
administrator rights for compile in x64 OPENSSL
cd <openssldir>
cpan -i Test::More
cpan -i Text::Template
perl Configure VC-WIN64A --prefix=C:\curl-build\OpenSSL\DLL\x64\Release
--openssldir=C:\curl-build\OpenSSL\SSL
nmake
nmake test
nmake install_sw
nmake clean
perl Configure VC-WIN64A --debug
--prefix=C:\curl-build\OpenSSL\DLL\x64\Debug
--openssldir=C:\curl-build\OpenSSL\SSL
nmake
nmake test
nmake install_sw
nmake clean
cURL
cd <curldir>
// Use only with GIT Repository - not required for direct download
buildconf.bat
cd ./winbuild
nmake /f Makefile.vc
mode=dll
WITH_SSL=dll
MACHINE=x64
DEBUG=no
GEN_PDB=no
SSL_PATH=C:\curl-build\OpenSSL\DLL\x64\Release
Command in one line:
nmake /f Makefile.vc mode=dll WITH_SSL=dll MACHINE=x64 DEBUG=no GEN_PDB=no
SSL_PATH=C:\curl-build\OpenSSL\DLL\x64\Release
Now create the debug version
nmake /f Makefile.vc
mode=dll
WITH_SSL=dll
MACHINE=x64
DEBUG=yes
GEN_PDB=yes
SSL_PATH=C:\curl-build\OpenSSL\DLL\x64\Debug
Command in one line:
nmake /f Makefile.vc mode=dll WITH_SSL=dll MACHINE=x64 DEBUG=yes
GEN_PDB=yes SSL_PATH=C:\curl-build\OpenSSL\DLL\x64\Debug
If I now add the following in the "pro" file and then start the application
in QT Creator, it crashes immediately after the compile process. However,
if I open and compile cURL directly in Visual Studio 2017 community edition
and then insert it the same way, it works without SSL. But I need SSL
support from cURL for this project.
win32:CONFIG(release, debug|release): LIBS +=
-L$$PWD/../../../../../../curl-build/curl-7.64.0/builds/libcurl-vc-x64-release-dll-ssl-dll-ipv6-sspi/lib/
-llibcurl
else:win32:CONFIG(debug, debug|release): LIBS +=
-L$$PWD/../../../../../../curl-build/curl-7.64.0/builds/libcurl-vc-x64-release-dll-ssl-dll-ipv6-sspi/lib/
-llibcurld
INCLUDEPATH +=
$$PWD/../../../../../../curl-build/curl-7.64.0/builds/libcurl-vc-x64-release-dll-ssl-dll-ipv6-sspi/include
DEPENDPATH +=
$$PWD/../../../../../../curl-build/curl-7.64.0/builds/libcurl-vc-x64-release-dll-ssl-dll-ipv6-sspi/include
Hope someone has an idea what I'm doing wrong. Under Linux it only works
under Windows it doesn't work.
Many thanks in advance to all of you.
Greetings,
Sven
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2019-03-01