Quantcast
Channel: Installation and Deployment
Viewing all 22112 articles
Browse latest View live

Unsolved Building Qt5.9.1 from source for windows


Unsolved Building QT5.6 for 32bit Ubuntu 16.04 from source

$
0
0

You can compile Qt yourself, see this link. Source code is available from git, or here as zip/ tarball.

Unsolved Build QtCreator from source code

$
0
0

@jsulm
qt 5.9.1
qt-everywhere-opensource-src-5.9.1.tar.xz
mingw-builds 5.3.0 64bit
x86_64-5.3.0-release-posix-seh-rt_v4-rev0.7z
msys2
msys2-base-x86_64-20170918.tar.xz
OS
Windows 10 Enterprise 64bit simplified chinese
QtCreator
4.4.0 and 4.4.1 qt-creator-opensource-src-4.4.0.tar.gz qt-creator-opensource-src-4.4.1.tar.gz
icu
icu4c-54_1-src.zip
openssl
openssl-1.0.2l.tar.gz

i have built qt 5.9.1 successfully according to http://www.kineticsystem.org/mingw
sh $QT_SRC_DIR/configure -v -debug-and-release -prefix $QT_PREFIX -opensource -confirm-license -platform win32-g++ -skip webkit -shared -opengl desktop -openssl -icu -plugin-sql-sqlite -plugin-sql-odbc -nomake tests -nomake examples

however failed in building QtCreator 4.4.0 or 4.4.1.

same error message

cp -f ../../../lib/qtcreator/QtcSsh4.dll ../../../bin mingw32-make[4]: Leaving directory 'C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/build/src/libs/ssh' mingw32-make[3]: Leaving directory 'C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/build/src/libs/ssh' cd sqlite/ && ( test -e Makefile || C:/msys2/local64/dst/qt/bin/qmake.exe -o Makefile C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src/libs/sqlite/sqlite.pro CONFIG+=release ) && C:/msys2/mingw64/bin/mingw32-make -f Makefile release mingw32-make[3]: Entering directory 'C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/build/src/libs/sqlite' C:/msys2/mingw64/bin/mingw32-make -f Makefile.Release mingw32-make[4]: Entering directory 'C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/build/src/libs/sqlite' gcc -x c-header -c -fno-keep-inline-dllexport -pipe -O2 -w -DUNICODE -D'RELATIVE_PLUGIN_PATH="../lib/qtcreator/plugins"' -D'RELATIVE_LIBEXEC_PATH="."' -D'RELATIVE_DATA_PATH="../share/qtcreator"' -D'RELATIVE_DOC_PATH="../share/doc/qtcreator"' -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_CREATOR -DQT_NO_CAST_TO_ASCII -DQT_RESTRICTED_CAST_FROM_ASCII -DQT_DISABLE_DEPRECATED_BEFORE=0x050600 -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DSQLITE_API=__declspec(dllexport) -DBUILD_SQLITE_LIBRARY -DSQLITE_THREADSAFE=2 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_ENABLE_COLUMN_METADATA -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -I/src/libs/sqlite -I../../../src -IC:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src -IC:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src/libs -IC:/msys2/local64/src/qt-creator-opensource-src-4.4.1/tools -IC:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src/plugins -isystem C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src/libs/sqlite -IC:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src/libs/3rdparty/sqlite -isystem C:/msys2/local64/dst/qt/include/QtWidgets -isystem C:/msys2/local64/dst/qt/include/QtGui -isystem C:/msys2/local64/dst/qt/include/QtConcurrent -isystem C:/msys2/local64/dst/qt/include/QtCore -Irelease -IC:/msys2/local64/dst/qt/mkspecs/win32-g++ -o release/qtcreator_pch.h.gch/c C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src/shared/qtcreator_pch.h /usr/bin/sh: -c: line 0: syntax error near unexpected token `(' /usr/bin/sh: -c: line 0: `gcc -x c-header -c -fno-keep-inline-dllexport -pipe -O2 -w -DUNICODE -D'RELATIVE_PLUGIN_PATH="../lib/qtcreator/plugins"' -D'RELATIVE_LIBEXEC_PATH="."' -D'RELATIVE_DATA_PATH="../share/qtcreator"' -D'RELATIVE_DOC_PATH="../share/doc/qtcreator"' -DIDE_LIBRARY_BASENAME=\"lib\" -DQT_CREATOR -DQT_NO_CAST_TO_ASCII -DQT_RESTRICTED_CAST_FROM_ASCII -DQT_DISABLE_DEPRECATED_BEFORE=0x050600 -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DSQLITE_API=__declspec(dllexport) -DBUILD_SQLITE_LIBRARY -DSQLITE_THREADSAFE=2 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS3_PARENTHESIS -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_ENABLE_COLUMN_METADATA -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CONCURRENT_LIB -DQT_CORE_LIB -I/src/libs/sqlite -I../../../src -IC:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src -IC:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src/libs -IC:/msys2/local64/src/qt-creator-opensource-src-4.4.1/tools -IC:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src/plugins -isystem C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src/libs/sqlite -IC:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src/libs/3rdparty/sqlite -isystem C:/msys2/local64/dst/qt/include/QtWidgets -isystem C:/msys2/local64/dst/qt/include/QtGui -isystem C:/msys2/local64/dst/qt/include/QtConcurrent -isystem C:/msys2/local64/dst/qt/include/QtCore -Irelease -IC:/msys2/local64/dst/qt/mkspecs/win32-g++ -o release/qtcreator_pch.h.gch/c C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/src/shared/qtcreator_pch.h' Makefile.Release:272: recipe for target 'release/qtcreator_pch.h.gch/c' failed mingw32-make[4]: *** [release/qtcreator_pch.h.gch/c] Error 1 mingw32-make[4]: Leaving directory 'C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/build/src/libs/sqlite' Makefile:36: recipe for target 'release' failed mingw32-make[3]: *** [release] Error 2 mingw32-make[3]: Leaving directory 'C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/build/src/libs/sqlite' Makefile:949: recipe for target 'sub-sqlite-release' failed mingw32-make[2]: *** [sub-sqlite-release] Error 2 mingw32-make[2]: Leaving directory 'C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/build/src/libs' Makefile:967: recipe for target 'sub-libs-release_ordered' failed mingw32-make[1]: *** [sub-libs-release_ordered] Error 2 mingw32-make[1]: Leaving directory 'C:/msys2/local64/src/qt-creator-opensource-src-4.4.1/build/src' Makefile:548: recipe for target 'sub-src-release_ordered' failed mingw32-make: *** [sub-src-release_ordered] Error 2

Unsolved Windows build nmake paths too long

$
0
0

Yes those SQL Server paths are annoying. In my case I've long since removed them. I'm pretty sure that the environment variables are expanded when the command is executed so making that switch won't help in this case.

Unsolved Build error compiling printsupport plugin with Qt5.8 and 5.9 and nmake

$
0
0

Then the quick and dirty method would be to comment out the win32 line in qtbase/src/plugins/printsupport/printsupport.pro so the plugin doesn't get built.

Unsolved Native Build of Qt on Raspberry Pi-3

$
0
0

Hi All,

I build Qt 5.9.2 on Raspberry Pi3 board. I refered the below link.

https://wiki.qt.io/Native_Build_of_Qt_5.4.1_on_a_Raspberry_Pi

but I am getting error after giving below command.

./configure -v -opengl es2 -tslib -force-pkg-config -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=/usr/bin/
-opensource -confirm-license -optimized-qmake -reduce-exports -release -qt-pcre -make libs
-prefix /usr/local/qt5 2>&1 | tee config.out

output of the command :

sudo ./configure -v -opengl es2 -tslib -force-pkg-config -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=/usr/bin/ -opensource -confirm-license -optimized-qmake -reduce-exports -release -qt-pcre -make libs -prefix /usr/local/qt5 2>&1 | tee config.out
tee: config.out: Permission denied

  • cd qtbase
  • /media/usb/qt-everywhere-opensource-src-5.9.2/qtbase/configure -top-level -v -opengl es2 -tslib -force-pkg-config -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=/usr/bin/ -opensource -confirm-license -optimized-qmake -reduce-exports -release -qt-pcre -make libs -prefix /usr/local/qt5
    Creating qmake...
    make: Nothing to be done for 'first'.
    Command line: -v -opengl es2 -tslib -force-pkg-config -device linux-rasp-pi-g++ -device-option CROSS_COMPILE=/usr/bin/ -opensource -confirm-license -optimized-qmake -reduce-exports -release -qt-pcre -make libs -prefix /usr/local/qt5

This is the Qt Open Source Edition.

You have already accepted the terms of the Open Source license.

Running configuration tests...
Done running configuration tests.

Configure summary:

Building on: linux-g++ (arm, CPU features: <none>)
Building for: devices/linux-rasp-pi-g++ (arm, CPU features: <none>)
Configuration: cross_compile use_gold_linker compile_examples enable_new_dtags largefile precompile_header shared rpath release c++11 c++14 c++1z concurrent dbus no-pkg-config reduce_exports release_tools stl
Build options:
Mode ................................... release; optimized tools
Optimize release build for size ........ no
Building shared libraries .............. yes
Using C++ standard ..................... C++1z
Using ccache ........................... no
Using gold linker ...................... yes
Using new DTAGS ........................ yes
Using precompiled headers .............. yes
Using LTCG ............................. no
Target compiler supports:
NEON ................................. no
Build parts ............................ libs
Qt modules and options:
Qt Concurrent .......................... yes
Qt D-Bus ............................... yes
Qt D-Bus directly linked to libdbus .... no
Qt Gui ................................. yes
Qt Network ............................. yes
Qt Sql ................................. yes
Qt Testlib ............................. yes
Qt Widgets ............................. yes
Qt Xml ................................. yes
Support enabled for:
Using pkg-config ....................... no
QML debugging .......................... yes
udev ................................... yes
Using system zlib ...................... yes
Qt Core:
DoubleConversion ....................... yes
Using system DoubleConversion ........ no
GLib ................................... no
iconv .................................. no
ICU .................................... yes
Logging backends:
journald ............................. no
syslog ............................... no
slog2 ................................ no
Using system PCRE2 ..................... no
Qt Network:
getaddrinfo() .......................... yes
getifaddrs() ........................... yes
IPv6 ifname ............................ yes
libproxy ............................... no
OpenSSL ................................ yes
Qt directly linked to OpenSSL ........ no
SCTP ................................... no
Use system proxies ..................... yes
Qt Gui:
Accessibility .......................... yes
FreeType ............................... yes
Using system FreeType ................ no
HarfBuzz ............................... yes
Using system HarfBuzz ................ no
Fontconfig ............................. no
Image formats:
GIF .................................. yes
ICO .................................. yes
JPEG ................................. yes
Using system libjpeg ............... yes
PNG .................................. yes
Using system libpng ................ yes
EGL .................................... no
OpenVG ................................. no
OpenGL:
Desktop OpenGL ....................... no
OpenGL ES 2.0 ........................ no
OpenGL ES 3.0 ........................ no
OpenGL ES 3.1 ........................ no
Session Management ..................... yes
Features used by QPA backends:
evdev .................................. yes
libinput ............................... no
INTEGRITY HID .......................... no
mtdev .................................. no
tslib .................................. yes
xkbcommon-evdev ........................ no
QPA backends:
DirectFB ............................... no
EGLFS .................................. no
LinuxFB ................................ yes
VNC .................................... yes
Mir client ............................. no
X11:
Using system-provided XCB libraries .. yes
EGL on X11 ........................... no
Xinput2 .............................. yes
XCB XKB .............................. no
XLib ................................. yes
XCB render ........................... yes
XCB GLX .............................. yes
XCB Xlib ............................. yes
Using system-provided xkbcommon ...... no
Qt Widgets:
GTK+ ................................... no
Styles ................................. Fusion Windows
Qt PrintSupport:
CUPS ................................... no
Qt Sql:
DB2 (IBM) .............................. no
InterBase .............................. no
MySql .................................. yes
OCI (Oracle) ........................... no
ODBC ................................... no
PostgreSQL ............................. yes
SQLite2 ................................ yes
SQLite ................................. yes
Using system provided SQLite ......... no
TDS (Sybase) ........................... yes
Qt SerialBus:
Socket CAN ............................. yes
Socket CAN FD .......................... yes
QtXmlPatterns:
XML schema support ..................... yes
Qt QML:
QML interpreter ........................ yes
QML network support .................... yes
Qt Quick:
Direct3D 12 ............................ no
AnimatedImage item ..................... yes
Canvas item ............................ yes
Support for Qt Quick Designer .......... yes
Flipable item .......................... yes
GridView item .......................... yes
ListView item .......................... yes
Path support ........................... yes
PathView item .......................... yes
Positioner items ....................... yes
ShaderEffect item ...................... yes
Sprite item ............................ yes
Qt Gamepad:
SDL2 ................................... no
Qt 3D:
Assimp ................................. yes
System Assimp .......................... no
Output Qt3D Job traces ................. no
Output Qt3D GL traces .................. no
Qt 3D GeometryLoaders:
Autodesk FBX ........................... no
Qt Wayland Client ........................ no
Qt Wayland Compositor .................... no
Qt Bluetooth:
BlueZ .................................. no
BlueZ Low Energy ....................... no
Linux Crypto API ....................... no
Qt Sensors:
sensorfw ............................... no
Qt Quick Controls 2:
Styles ................................. Default Material Universal
Qt Quick Templates 2:
Hover support .......................... yes
Multi-touch support .................... yes
Qt Positioning:
Gypsy GPS Daemon ....................... no
WinRT Geolocation API .................. no
Qt Location:
Geoservice plugins:
OpenStreetMap ........................ yes
HERE ................................. yes
Esri ................................. yes
Mapbox ............................... yes
MapboxGL ............................. no
Itemsoverlay ......................... yes
Qt Multimedia:
ALSA ................................... yes
GStreamer 1.0 .......................... no
GStreamer 0.10 ......................... no
Video for Linux ........................ yes
OpenAL ................................. no
PulseAudio ............................. no
Resource Policy (libresourceqt5) ....... no
Windows Audio Services ................. no
DirectShow ............................. no
Windows Media Foundation ............... no
Qt WebEngine:
Embedded build ......................... yes
Pepper Plugins ......................... no
Printing and PDF ....................... no
Proprietary Codecs ..................... no
Spellchecker ........................... yes
WebRTC ................................. no
Using system ninja ..................... no
ALSA ................................... yes
PulseAudio ............................. no
System libraries:
re2 .................................. no
ICU .................................. no
libwebp and libwebpdemux ............. no
Opus ................................. no
ffmpeg ............................... no

Note: Also available for Linux: linux-clang linux-icc

Note: -optimized-tools is not useful in -release mode.

Note: Disabling X11 Accessibility Bridge: D-Bus or AT-SPI is missing.

Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.

ERROR: Feature 'pkg-config' was enabled, but the pre-condition 'tests.pkg-config' failed.

ERROR: Feature 'opengles2' was enabled, but the pre-condition 'config.win32 || (!config.watchos && !features.opengl-desktop && libs.opengl_es2)' failed.

ERROR: The OpenGL functionality tests failed!
You might need to modify the include and library search paths by editing QMAKE_INCDIR_OPENGL[_ES2],
QMAKE_LIBDIR_OPENGL[_ES2] and QMAKE_LIBS_OPENGL[_ES2] in the mkspec for your platform.

How to solve this above errors?

Could you please provide detail information on qt5 build procedure.

Thanks and Regards,
Swathi.

Unsolved Distribution with LGPL

$
0
0

Hey there. I want to build a simple application with some textboxes and dropdowns. Nothing fancy like charts or the like. I did not use QT until now and did not start my project yet as I'm not able to get the "obligations" QT wants. I read though some threads but those did not help me out.

1: Using parts of Qt that are only available under GPL requires open sourcing of your application when distributing
What? I thought LPGL is open source as well. Whats the difference between "GPL open source" and "LGPL open source"?

2: Must provide a relinking mechanism for Qt libraries
How do I provide a "mechanism"? I would assume that it would be enough to link dynamically to the QT librarys. But that would ommit static linking (which seems is only allowed with commercial license anyway). But I understand the "obligation" in the way that I need to provide a possibility for the user to define the name of the library that is getting linked.

3: Must make a Qt source code copy available for customers
As the FAQ states it is not sufficient enough to link to the QT download page. But the download of QT is ~400MB unzipped. But this includes the QTCreator editor. How to ship/provide the Source Code in a reasonable size?
Alternatively you need to provide a written offer with instructions on how to get the source code. Please also note that this has to be under your control, so a link to the source code provided by the Qt Project or Qt Company is not sufficient.
What needs to be under my control? The source code I need to provide or the instructions how to get it.
Is it enough to write: "How to get QT: Google QT download -> Go to download page -> download"?

4: Must make “open” consumer devices
Oh common, what the ... What are they talking about? I don't want to create a dishwasher, I want to write a little program running on windows.

5: The LGPL allows you to keep the source code of your application private as long as it is “work that uses” the library. Dynamic linking is usually recommended here.
I thought it is not allowed to use static linking in LGPL distribution? How would I keep my code private without dynamic linking? If I would link statically, I would need to provide my source so the user can recompile the code, as re-linking with QT library must be possible.

6: The user of your application has to be able to re-link your application against a different or modified version of the Qt library.
Got that above already.
With LGPLv3 it is also explicitly stated that the user needs to be able to run the re-linked binary on it’s intended target device.
Does it mean if "I" target Windows 64Bit and the QT librarys got changed by the user, the program still needs to run on Windows 64Bit? Still the user could change to library to what ever. How should I be able to ensure proper functionality of my program?

I'm slow-witted, but these terms seem not clear at all.

Regards

Unsolved Visual Studio 2017 unresolved external symbol struct QStaticPlugin

$
0
0

@azaclauson said in Visual Studio 2017 unresolved external symbol struct QStaticPlugin:

Is there a different mechanism required to link for a Qt static plugin?

Not for linking, no. You should be able to find those libraries in the plugins directory of your build (I think they were in <QtDir>plugins/platforms). You also might need to initialize each of the plugins manually in code as you're linking static:

#include <QtPlugin> Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin) Q_IMPORT_PLUGIN(qjpeg) // ... etc.

More info here.


Unsolved QtWebEngine won't be compiled

$
0
0

Hi there,

I'm trying to compile Qt5.9.2 with MSVC2017 from source and it won't compile QtWebEngine.

Every other component like QtCore, QtWidgets, QtQuick etc. compiles without any error.

The error QtWebEngine throws is the following:

link /NOLOGO /DYNAMICBASE /NXCOMPAT /DEBUG /DLL /SUBSYSTEM:WINDOWS /VERSION:5.9 /MANIFEST:embed /OUT:..\..\lib\Qt5WebEngineCasd.dll @C:\Users\MIKE~1.KNA\AppData\Local\Temp\nmF02C.tmp
Library "..\..\lib\Qt5WebEngineCasd.lib" and object "..\..\lib\Qt5WebEngineCasd.exp" was created.
qtwebengineglobal.obj : error LNK2019: Reference to unresolved external symbol ""void __cdecl QtWebEngineCore::initialize(void)" (?initialize@QtWebEngineCore@@YAXXZ)" in function ""void __cdecl QtWebEngine::initialize(void)" (?initialize@QtWebEngine@@YAXXZ)".
..\..\lib\Qt5WebEngineCasd.dll : fatal error LNK1120: 1 unresolved externals

What is wrong and how do I solve this problem?

Kind regards,
Mike

Environment:
OS: Windows 10 Pro x64
RAM: 8GB
Qt: 5.9.2 Opensource Shared
MSVC2017 v.15.4.0
Windows 10 SDK (10.0.15063.0)
ActivePerl 5.24.2.2403 MSWin32 x86-64int 403863
Python 2.7.14
Ruby 1.9.3-p551
depot_tools
Ninja
win_flex_bison-2.5.5
OpenSSL 1.0.2j

Unsolved windeployqt failes

$
0
0

Hello

I'm trying to use windeployqt.exe. When I run it I get the following errors:

C:\Qt\5.9.1\msvc2015_64\bin\windeployqt.exe C:/Users/dandn/Documents/Qt/build-DeployTest-Desktop_Qt_5_9_1_MSVC2015_64bit-Release/release/DeployTest.exe
Warning: Unable to read C:\Users\dandn\AppData\Local\Continuum\Anaconda3\Library\bin\mkspecs\qconfig.pri: The path was not found.
Unable to find dependent libraries of C:\Users\dandn\AppData\Local\Continuum\Anaconda3\Library\bin\bin\Qt5Widgets.dll :Cannot open 'C:/Users/dandn/AppData/Local/Continuum/Anaconda3/Library/bin/bin/Qt5Widgets.dll': The path was not found.

It is correct that this path does not exist. However I have no idea why it even should look in my python anaconda install folder, instead of the Qt folder with binaries. When i then tried to create the missing folder and copy all dll's to that fodler the error disappered, however then i got an error that it could not find the platform plugin, so I can't get windeployqt running no matter what I try.

Anybody can help me get it working?

Unsolved problem with qt static compilation(websockets)

$
0
0

static library but still asking for dll
I static compile qtbase and websockets and serialport
add QT += websockets serialport in .pro projact
and static build my project
when run my project
error and request serialport.dll

Unsolved How to configure Qt for build all modules

$
0
0

@parsa

From did you get the source?

AFAIK you still need to download a source version form the archives e.g. for windows the zip and for Linux the tar

Note the source is almost identical, but you cannot simply use the tar on windows and vice versa. The differences are mostly in file endings IIRC.

When you have downloaded and unzipped you will find the configure there.

Unsolved Correct way for adding build steps

$
0
0

Hello everyone,

i have a question regarding the generation of additional files with additional compilers.

So my plan is the following:

I have 2 compilers: tao_idl.exe and opendds_idl.exe. These Compilers generate 8 files which i need in my project. Now i want these compilers to be called everytime a person hits build in qt creator. How can i realize that. Additionally the solution must be sharable in the ende, so that other persons working on the project can load a file or something and have the possibility to generate the files as well.

Thank you for your answers.
Kind Regards,
Max

Unsolved How to deploy a Windows application on a Windows 10 clean PC?

$
0
0

@lqsa

How do you test on development laptop?
Always from creator?

It might be a dumb question, but are you copying also the actual Qt dlls and the Qt plugins?

Solved Qt static build from source: Visual Studio 2017 and x86 and openssl

$
0
0

And of course as soon as I finally give up and post in the forum my build works. Mind you it's been 4 solid days and be my 23rd or 24th attempt...

In the end I think it was a combination of getting the right version of a static openssl build and the OPENSSL_LIBS config parameter set correctly (I also had the OPENSSL_LIBS environment variable set which seemed to conflict with the config parameter).

Below are my steps (you'll need to modify the build paths as required). All builds were performed from the "Visual Studio 2017 x86 Native Tools Command Prompt".

OpenSSL 1.0.2 Static Build

(note needs to be version 1.0.x, Qt does not yet support 1.1.x)

git clone https://github.com/openssl/openssl.git git checkout OpenSSL_1_0_2-stable perl configure VC-WIN32 no-shared enable-static-engine --prefix=f:\deps\openssl\1.0.2\vc141-x86 ms\do_nasm nmake -f ms\nt.mak (DOUBLE CHECK that you type ms\nt.mak NOT ms\ntdll.mak) nmake -f ms\nt.mak install Qt 5.9.2 Static Build git clone https://code.qt.io/qt/qt5.git (an alternative is to use the qt-everywhere-opensource-src-5.9.2.zip file) git checkout 5.9.2 cd qt5 && mkdir build && cd build ..\configure -prefix F:\deps\qt\5.9.2-git-ssl\vc141-x86\release -platform win32-msvc -release -opensource -confirm-license -strip -no-shared -static -no-static-runtime -ltcg -make libs -make tools -nomake examples -no-compile-examples -no-dbus -no-qml-debug -no-icu -no-gtk -no-opengl -no-opengles3 -no-angle -no-sql-sqlite -no-sql-odbc -no-sqlite -skip qt3d -skip qtactiveqt -skip qtandroidextras -skip qtcanvas3d -skip qtcharts -skip qtconnectivity -skip qtdatavis3d -skip qtdeclarative -skip qtdoc -skip qtgamepad -skip qtgraphicaleffects -skip qtimageformats -skip qtlocation -skip qtmacextras -skip qtmultimedia -skip qtnetworkauth -skip qtpurchasing -skip qtquickcontrols -skip qtquickcontrols2 -skip qtscript -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtserialport -skip qtspeech -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebsockets -skip qtwebview -skip qtx11extras -skip qtxmlpatterns -recheck-all -ssl -openssl-linked -IF:\deps\openssl\1.0.2\vc141-x86\include -LF:\deps\openssl\1.0.2\vc141-x86\lib OPENSSL_LIBS="-llibeay32 -lssleay32 -lgdi32 -luser32 -lwsock32 -ladvapi32" nmake nmake install

Pay particular attention to the include, library and OPENSSL_LIBS paths in the configure.bat parameters. Getting those right is what eventually got my build working.


Unsolved Qt 5.6.2 on Windows, static build with openssl 1.0.2L and MinGW492_32

$
0
0

Hello,
To answer myself, I found the solution and here is how I did it.

First, I build openssl in static mode. You need to install active perl, mingw-get-setup.exe and mysys-1.0.11.exe (i'm not sure if this one is really required). I downloaded the openssl-1.0.2l sources and I followed this guide: http://www.stringcat.com/company_blog/2015/12/07/compiling-openssl-on-windows-mingw32/
To build, start mingw, go to the openssl root directory and run:

perl Configure mingw no-shared

At the end, I created a subdirectory named lib in the openssl dir and copied libssl.a and libcrypo.a into it.

To build Qt, I used this script:
https://sourceforge.net/p/qtlmovie/code/ci/v1.2.16/tree/build/windows-build-qt-static.ps1?format=raw
I added these parameters to the configure line:

-openssl-linked -I c:\openssl\include -L c:\openssl\lib

In this script, I added a pause between configure and make to be able to modify a file juste before the compilation phase. Just write a new line below configure and write: pause.

Execute the script.

When the script is paused, open the qtbase/mkspecs/qmodule.pri file and change:

-lssleay32 -llibeay32

to:

-lssl -lcrypto -lgdi32

and save the file.

Press any key to continue the pause. Wait, enjoy.

I think this is a bug in the Qt build system, in openssl-linked we shouldn't have linked to *eay32...

Unsolved Problem with static compilation (websockets)

$
0
0

Hi,

Did you thought of installing it once it was done ?

Unsolved Building with Mingw64 on Windows 8

$
0
0

I have the same error, compiling Qt with angle for MinGW, despite having no E:/ drive on my (virtual) machine (and nothing configured to use it). It's using the same command as yours.

I doubt /E has anything to do with the E:/ drive; and it makes no sense that it claims E:/ as the last path on the command-line (when there is no such entry in the command-line at all). Maybe fxc.exe is invoking something else, with a synthesised command-line, that it's getting wrong. Hard to tell when something that's meant to simply work doesn't :-(

I found that running fxc.exe with /? just got me an error (compilation failed; no code produced) rather than providing the help promised in the error message; this encourages the conjecture that the error actually comes from something else.

There's a matching thread on Stack Overflow, that might be worth watching:
https://stackoverflow.com/posts/46708850/edit

(The Qt Wiki page on building for MS-Win (http://wiki.qt.io/Building_Qt_5_from_Git#Windows_3) stresses that the source and build directory need to be equally deeply nested on the same partition. An odd condition, that I was unwittingly violating; however, conforming to that didn't help.)

Unsolved SSL handshake failed error while installing Qt on KDE Ubuntu

$
0
0

Dear SGaist,
I checked;

mucip@debian-ev:~$ openssl version
OpenSSL 1.1.0f 25 May 2017

I followed the below website and install openssl 1.0.0.
https://www.computersnyou.com/3155/update-install-openssl-source-latest-version/

Now the situation is;
mucip@debian-ev:~$ openssl version
OpenSSL 1.0.0s 11 Jun 2015

But I can not update maintenance tool and I can not even run qt-unified-linux-x64-3.0.1-online.run from my computer?!

Where am I wrong?!

Regards,
Mucip:)

Unsolved Deployment with MSVC2015 compiler

$
0
0

@JNBarchan oh thanks, I read this page but I didn't see that, thanks !
So I guess it's OK if I just copy them from my C:\Windows\SysWOW64 folder...

Viewing all 22112 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>