F
F
Flysink2019-01-28 11:56:51
MySQL
Flysink, 2019-01-28 11:56:51

Static build of qt along with libcurl?

Hello everyone, I have
compiled a static build of qt 5.12 along with openssl everything works as expected

configure -prefix G:\Qt\5.12.0_static -debug-and-release -opensource -confirm-license -platform win32-msvc -opengl desktop -static -static-runtime -nomake examples -ltcg -make libs -make tools -no-compile-examples -nomake tests -openssl-linked -openssl -L C:\OpenSSL-win64\lib OPENSSL_LIBS="-llibeay32 -lssleay32" -I C:\OpenSSL-win64\include -qt-libpng -qt-libjpeg -qt-zlib 
namke
nmake install

I compiled libcurl x64 and added the include path to .pro, lib works perfectly, but requires dll in the project folder
How to rebuild qt with libcurl ? What options should be added to configure ? Google unfortunately did not give a solution
. As a result, one executable file should come out.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly, 2019-01-28
@Flysink

You need to link the static version of libcurl to your project, not to Qt. When building Qt, there are no flags to specify libcurl.
By the way, Qt already has all the networking tools, incl. you don't actually need libcurl.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question