Skip to content

Instantly share code, notes, and snippets.

@Adsun701
Created August 5, 2017 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Adsun701/8569eb5e94bc0d7cd314ac56e1b86cf6 to your computer and use it in GitHub Desktop.
Save Adsun701/8569eb5e94bc0d7cd314ac56e1b86cf6 to your computer and use it in GitHub Desktop.
Build failure on qt5 mingw-w64 pkgbuild
i686-w64-mingw32-g++ -g -shared -Wl,-subsystem,windows -Wl,--out-implib,/home/andy/pkg/mingw-w64-qt5-base/src/build-i686-w64-mingw32/lib/libQt5Network.dll.a -o ../../lib/Qt5Network.dll object_script.Qt5Network.Release -lws2_32 -lcrypt32 -ldnsapi -L/home/andy/pkg/mingw-w64-qt5-base/src/build-i686-w64-mingw32/lib /home/andy/pkg/mingw-w64-qt5-base/src/build-i686-w64-mingw32/lib/libQt5Core.dll.a -ldnsapi -liphlpapi -ladvapi32 -lcrypt32 -lz
./.obj/release/qsslsocket_openssl.o: In function `ZN21QWindowsCaRootFetcher5startEv':
/home/andy/pkg/mingw-w64-qt5-base/src/qtbase-opensource-src-5.9.1/src/network/ssl/qsslsocket_openssl.cpp:1390: undefined reference to `_imp__CertCreateCertificateContext@12'
/home/andy/pkg/mingw-w64-qt5-base/src/qtbase-opensource-src-5.9.1/src/network/ssl/qsslsocket_openssl.cpp:1422: undefined reference to `_imp__CertGetCertificateChain@32'
/home/andy/pkg/mingw-w64-qt5-base/src/qtbase-opensource-src-5.9.1/src/network/ssl/qsslsocket_openssl.cpp:1465: undefined reference to `_imp__CertFreeCertificateChain@4'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile.Release:502: ../../lib/Qt5Network.dll] Error 1
make[3]: Leaving directory '/home/andy/pkg/mingw-w64-qt5-base/src/build-i686-w64-mingw32/src/network'
make[2]: *** [Makefile:36: release] Error 2
make[2]: Leaving directory '/home/andy/pkg/mingw-w64-qt5-base/src/build-i686-w64-mingw32/src/network'
make[1]: *** [Makefile:268: sub-network-make_first] Error 2
make[1]: Leaving directory '/home/andy/pkg/mingw-w64-qt5-base/src/build-i686-w64-mingw32/src'
make: *** [Makefile:45: sub-src-make_first] Error 2
==> ERROR: A failure occurred in build().
Aborting...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment