polovik / notikeys

MIT License
1 stars 0 forks source link

Build Qt with SSL support on ANGLE video drivers #8

Closed polovik closed 10 years ago

polovik commented 10 years ago

http://qt-project.org/wiki/Qt-5-on-Windows-ANGLE-and-OpenGL

http://qt-project.org/downloads The MinGW binary package includes a 32 bit MinGW-builds (gcc 4.8.0, dwarf exception handing, posix threading) toolchain. Sources are available from the MinGW-builds project or from download.qt-project.org. The Windows offline installers are by default ANGLE based. If you want to know more about the differences between ANGLE and OpenGL packages on Windows, please visit Qt 5 on Windows ANGLE and OpenGL.

ANGLE sources: http://code.google.com/p/angleproject/

DirectX SDK DXSDK_Jun10.exe http://www.microsoft.com/en-us/download/details.aspx?id=6812

polovik commented 10 years ago

Running configuration tests... WARNING: The DirectX SDK could not be detected: There is no Direct X SDK installed or the environment variable "DXSDK_DIR" is not set. Disabling the ANGLE backend.

WARNING: Using OpenGL ES 2.0 without ANGLE. Specify -opengl desktop to use Open GL. The build will most likely fail.

OpenSSL support.............no

http://qt-project.org/doc/qt-5/windows-requirements.html

ActivePerl - Install a recent version of ActivePerl (http://www.activestate.com/activeperl) and add the installation location to your PATH. Python - Install Python from the here and add the installation location to your PATH in order to be able to build QtJsBackend and Qt WebKit. Install Ruby from http://rubyinstaller.org/ and add the installation location to your PATH in order to be able to build Qt WebKit.

polovik commented 10 years ago

http://sourceforge.net/projects/mingw/files/latest/download?source=files

http://www.openssl.org/source/openssl-1.0.1g.tar.gz cd /e/Qt_own/openssl-1.0.1g export PATH=/c/MinGW/bin:$PATH export PATH=/e/Qt_own/Perl/bin:$PATH ./config no-asm $ make $ make test "ALL TESTS SUCCESSFUL."

cmd.exe cd e:\Qt_own\openssl-1.0.1g set PATH=e:\Qt_own\Perl\bin\;%PATH% set PATH=e:\Qt_own\mingw32\bin\;%PATH% set PATH=e:\Qt_own\5.2.1\gnuwin32\bin\;%PATH% ms\mingw32.bat no-asm

polovik commented 10 years ago

set PATH=c:\MinGW\bin;%PATH%

c:\MinGW\include\ws2tcpip.h

if (defined _WINSOCK_H && !defined _WINSOCK2_H)

//#error "ws2tcpip.h is not compatible with winsock.h. Include winsock2.h instead."

endif

ms\mingw32.bat no-asm

polovik commented 10 years ago

e:\Qt_own\openssl-1.0.1g\out\ libeay32.a -> liblibeay32.a libssl32.a -> libssleay32.a

polovik commented 10 years ago

http://blogs.msdn.com/b/chuckw/archive/2011/12/09/known-issue-directx-sdk-june-2010-setup-and-the-s1023-error.aspx

polovik commented 10 years ago

http://stackoverflow.com/questions/2520683/how-to-cope-with-intrin-h-no-such-file-or-directory make copy of c:\MinGW\lib\gcc\mingw32\4.8.1\include\x86intrin.h and rename to intrin.h

polovik commented 10 years ago

http://qt-project.org/wiki/Compiling-OpenSSL-with-MinGW

e:\qt_lib_openssl\lib\Qt5Network.prl replace "-lssleay32 -llibeay32 -lcrypt32" with "-lssl -lcrypto -lcrypt32 -lgdi32"

QMAKE_LFLAGS += -static

polovik commented 10 years ago

Finished. Result is described on wiki: https://github.com/polovik/notikeys/wiki/How-to-build-Qt-on-Windows-x86-with-mingw32-toolchain-with-OpenSSL-and-Angle