@Megamouse
Try creating a brand new project using the Extension. Does that have the same problem? If yes, it's something in the system. If no, it's something in the old project. Just how "clean" did you manage to clean it?
Unsolved Sudden VS2017 issue
Unsolved Compilation hangs early wheb building 5.12 with WebAssembly support
The installation hangs pretty early after running the following commands:
$ ~/opt/Qt/5.12.1/Src/configure -xplatform wasm-emscripten -nomake examples -prefix $PWD/qtbase
+ cd qtbase
+ /home/user/opt/Qt/5.12.1/Src/qtbase/configure -top-level -xplatform wasm-emscripten -nomake examples -prefix /home/user/opt/Qt/5.12.1/Src/qtbase
Creating qmake...
.Done.
Selecting Qt Edition.
Type 'c' if you want to use the Commercial Edition.
Type 'o' if you want to use the Open Source Edition.
Which edition of Qt do you want to use? o
This is the Qt Open Source Edition.
You are licensed to use this software under the terms of
the GNU General Public License (GPL) version 3.
Type 'G' to view the GNU General Public License version 3 (GPLv3).
Type 'y' to accept this license offer.
Type 'n' to decline this license offer.
Do you accept the terms of the license? y
Running configuration tests...
Checking for valid makespec...
It never gets past that. My CPU is mostly idle. How do I debug this?
Unsolved This application failed to start because no Qt platform plugin could be initialized!
@koahnig
i do a test
i copy a standard ver install by offical installer from dir A to dir B, i build my test project with B, i can run my exe by qt creator,but i rename dia A to C, i build my test project with B, it can't run by qt creator!
so i think installer will do something what i do not know!
Unsolved Open Source Windows Installer not working...
Hi and welcome to devnet forum
Is your internet connection ok?
Does your antivirus app interefere and stop the connection?
Qt installer screen resolution issue
@mrjj Thanks. I'll check this out. It appears to require using qt.conf. This appears to be a bug in the Qt installer. Has it been logged?
Unsolved Problem deploying statically linked Qt for macOS
When making Qt statically linked this happens...
Unsolved Compilation hangs early when building 5.12 with WebAssembly support
After installing Emscript 1.38.25, the error message changes:
Running configuration tests... Checking for valid makespec... + cd /home/ivarec/opt/Qt/5.12.1/Src/config.tests/verifyspec && /home/ivarec/opt/Qt/5.12.1/Src/qtbase/bin/qmake "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += static warn_off console single_arch" -early "CONFIG += cross_compile" /home/ivarec/opt/Qt/5.12.1/Src/qtbase/config.tests/verifyspec + cd /home/ivarec/opt/Qt/5.12.1/Src/config.tests/verifyspec && MAKEFLAGS= /usr/bin/make clean && MAKEFLAGS= /usr/bin/make > rm -f verifyspec.o > rm -f *~ core *.core > em++ -c -pipe -O3 -w -I/home/ivarec/opt/Qt/5.12.1/Src/qtbase/config.tests/verifyspec -I. -I/home/ivarec/.emscripten_ports/openssl/include -I/home/ivarec/opt/Qt/5.12.1/Src/qtbase/mkspecs/wasm-emscripten -o verifyspec.o /home/ivarec/opt/Qt/5.12.1/Src/qtbase/config.tests/verifyspec/verifyspec.cpp > emscripten:INFO: generating system asset: is_vanilla.txt... (this will be cached in "/home/ivarec/.emscripten_cache/is_vanilla.txt" for subsequent builds) > emscripten:INFO: - ok > shared:INFO: (Emscripten: Running sanity checks) > sed -e s/APPNAME/verifyspec/g /home/ivarec/opt/Qt/5.12.1/Src/qtbase/mkspecs/features/wasm/../../../src/plugins/platforms/wasm/wasm_shell.html > /home/ivarec/opt/Qt/5.12.1/Src/config.tests/verifyspec/verifyspec.html > cp -f /home/ivarec/opt/Qt/5.12.1/Src/qtbase/mkspecs/features/wasm/../../../src/plugins/platforms/wasm/qtloader.js /home/ivarec/opt/Qt/5.12.1/Src/config.tests/verifyspec > cp -f /home/ivarec/opt/Qt/5.12.1/Src/qtbase/mkspecs/features/wasm/../../../src/plugins/platforms/wasm/qtlogo.svg /home/ivarec/opt/Qt/5.12.1/Src/config.tests/verifyspec > em++ -s WASM=1 -s FULL_ES2=1 -s ALLOW_MEMORY_GROWTH=1 -s USE_WEBGL2=1 -s NO_EXIT_RUNTIME=0 -s ERROR_ON_UNDEFINED_SYMBOLS=1 --bind -s "BINARYEN_METHOD='native-wasm'" -s "BINARYEN_TRAP_MODE='clamp'" -O3 -o ./verifyspec.js verifyspec.o > shared:ERROR: Assigning a non-existent settings attribute "BINARYEN_METHOD" > shared:ERROR: - did you mean one of BINARYEN_TRAP_MODE, BINARYEN_ROOT, BINARYEN_PASSES? > shared:ERROR: - perhaps a typo in emcc's -s X=Y notation? > shared:ERROR: - (see src/settings.js for valid values) > Makefile:68: recipe for target 'verifyspec.js' failed > make: *** [verifyspec.js] Error 1 Note: Also available for Linux: linux-clang linux-icc ERROR: Cannot compile a minimal program. The toolchain or QMakeSpec is broken.I guess that it might still be a version problem, but I don't know how to debug this. When I get some more time, I will follow through.
Unsolved Webassembly Qml Project with QtQuick.Shapes
First of all I think webassembly works very well and I really looking forward to it's final release.
Nevertheless I found a minor glitch:
When I add this to a Qml file:
import QtQuick.Shapes 1.12
the compiled wasm output will not start. In Chrome I found the error message:
QQmlApplicationEngine failed to load component
qrc:/main.qml:3 module "QtQuick.Shapes" is not installed
I tried to enable compilation of QtQuickShapes without luck (and I don't know where it decides to skip the module/plugin). The folder "Shapes" is missing in my source build at "qt5\qtbase\qml\QtQuick" (I'm using WIndows with Linux Subsystem).
Did anyone get Shapes to work?
Unsolved Howto build QT5.10.0 static on MAC
I know this topic is old, but I just built a static library for MacOS, and now I can't find it. According to the docs:
http://doc.qt.io/qt-5/macos-building.htmlIt should be in /usr/local, but it's not there. Where might it be? My configure command was:
configure -static -release -nomake examples -nomake tests -qt-libpng -qt-zlib -qt-libjpeg -qt-xkbcommon -qt-freetype -qt-pcre -qt-harfbuzz -platform macx-clangThanks...
Unsolved Error on build with Static Qt 5.9.0
Using ubuntu 18.04LTS
Static qt5.9.0
create a simple ui program and build with static Qt 5.9.0
build error********************************
14:46:39: Running steps for project CHECK_static...
14:46:39: Starting: "/home/Data/Qt_Static/bin/qmake" /home/Data/CHECK_static/CHECK_static.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug -o /home/Data/LOG.txt
14:46:39: The process "/home/Data/Qt_Static/bin/qmake" exited normally.
14:46:39: Starting: "/usr/bin/make" qmake_all
make: Nothing to be done for 'qmake_all'.
14:46:39: The process "/usr/bin/make" exited normally.
14:46:39: Starting: "/usr/bin/make"
g++ -o CHECK_static main.o mainwindow.o check_static_plugin_import.o moc_mainwindow.o -L/home/Data/Qt_Static/plugins/platforms -lqwayland-egl -L/home/Data/Qt_Static/lib -L/usr/local/lib -lwayland-egl -lqwayland-generic -lqwayland-xcomposite-egl -lqwayland-xcomposite-glx -lQt5WaylandClient -lXcomposite -lwayland-client -lwayland-cursor -lqxcb -L/home/Data/Qt_Static/plugins/xcbglintegrations -lqxcb-egl-integration -lqxcb-glx-integration -lQt5XcbQpa -lxcb-xinerama -lQt5LinuxAccessibilitySupport -lQt5AccessibilitySupport -lQt5GlxSupport -lxcb-xkb -lxcb-sync -lxcb-xfixes -lxcb-randr -lxcb-image -lxcb-shm -lxcb-keysyms -lxcb-icccm -lxcb-shape -lxcb-glx -lXi -lSM -lICE -lxcb-render-util -lxcb-render -lxkbcommon-x11 -L/home/Data/Qt_Static/plugins/imageformats -lqgif -lqicns -lqico -lqtga -lqtiff -ltiff -lqwbmp -lqwebp -L/home/Data/Qt_Static/plugins/egldeviceintegrations -lqeglfs-emu-integration -lqeglfs-kms-egldevice-integration -lQt5EglFsKmsSupport -lQt5KmsSupport -ldrm -lqeglfs-x11-integration -lQt5EglFSDeviceIntegration -lQt5EventDispatcherSupport -lQt5ServiceSupport -lQt5ThemeSupport -lQt5DBus -ldbus-1 -lQt5FontDatabaseSupport -lqtfreetype -lQt5FbSupport -lQt5EglSupport -lXext -lQt5InputSupport -lmtdev -linput -lxkbcommon -lQt5PlatformCompositorSupport -lQt5DeviceDiscoverySupport -ludev -lxcb -lX11 -lX11-xcb -lEGL -lQt5Widgets -lQt5Gui -lqtlibpng -lharfbuzz -lQt5Core -licui18n -licuuc -licudata -lm -lrt -lqtpcre2 -ldl -lgthread-2.0 -lglib-2.0 -lGL -lpthread
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libtiff.so: undefined reference to symbol 'inflateEnd'
//usr/local/lib/libz.so.1: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Makefile:333: recipe for target 'CHECK_static' failed
make: *** [CHECK_static] Error 1
14:46:42: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project CHECK_static (kit: QT 5.9.0 Static)
When executing step "Make"
14:46:42: Elapsed time: 00:03.
Unsolved How do we install a missing module?
Then you already have the module at hand.
What exact problem do you have ?
Unsolved How to use OpenVINO library in Qt5.9.1 on Ubuntu
Environment:
*OS: Ubuntu 16.04
*Qt: 5.9.1
*OpenVINO: toolkit for linux 2018 R5
*OpnenCV: 4.0.1
Hi
I want to use Intel OpenVINO library in Qt 5.9.1
My Qt pro file setting is:
INCLUDEPATH += /usr/local/include
/usr/local/include/opencv4
/usr/local/include/opencv4/opencv2
/usr/local/include/opencv4/opencv2/videoio
/opt/intel/computer_vision_sdk_2018.5.445/deployment_tools/inference_engine/include
/opt/intel/computer_vision_sdk_2018.5.445/deployment_tools/inference_engine/include\cpp
LIBS += /usr/local/lib/libopencv_.so
/usr/local/lib/libopencv_highgui.so
/usr/local/lib/libopencv_core.so
/usr/local/lib/libopencv_imgproc.so
/usr/local/lib/libopencv_imgcodecs.so
/usr/local/lib/libopencv_video.so
/usr/local/lib/libopencv_videoio.so
/opt/intel/computer_vision_sdk_2018.5.445/deployment_tools/inference_engine/lib/ubuntu_16.04/intel64/.so
/home/fic/inference_engine_samples_build/intel64/Release/lib/*.so
-ldl -lpthread -fopenmp
And my code is:
// load network from IR
CNNNetReader netReader;
netReader.ReadNetwork(PATH_TO_IR_XML);
netReader.ReadWeights(PATH_TO_IR_BIN);
// set maximum batch size to be used
netReader.getNetwork().setBatchSize(1);
CNNNetwork network = netReader.getNetwork();
// instantiate a plugin for a target hardware
InferencePlugin plugin = PluginDispatcher({""}).getPluginByDevice("CPU");
// create executable network and infer request
ExecutableNetwork executable_network = plugin.LoadNetwork(network,{});
InferRequest infer_request = executable_network.CreateInferRequest();
But I got the error message :
undefined reference to 'omp_get_thread_num@VERSION' libinference_engine.so
undefined reference to 'omp_get_max_threads@VERSION' libinference_engine.so
undefined reference to 'GOMP_parallel@VERSION' libinference_engine.so
undefined reference to 'omp_get_num_threads@VERSION' libinference_engine.so
Has anyone experienced this?
Or know how to write Qt pro file can let OpenVINO be worked?
Thanks.
Unsolved 5.12 shadow build not working
I am able to do static build in sources folder, however, shadow building is not working. I've followed directions as listed on Qt 5.12 wiki, also tried instructions from several blogs online - same error:
C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Release
cd 3rdparty\pcre2\ && ( if not exist Makefile C:\Qt\Static\5.12.0_crt\qtbase\bin\qmake.exe -o Makefile C:\Qt\Sta
tic\qt-everywhere-src-5.12.0\qtbase\src\3rdparty\pcre2\pcre2.pro ) && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile
C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Debug all
C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile.Release all
cd tools\moc\ && ( if not exist Makefile C:\Qt\Static\5.12.0_crt\qtbase\bin\qmake.exe -o Makefile C:\Qt\Static\q
t-everywhere-src-5.12.0\qtbase\src\tools\moc\moc.pro ) && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile
Project ERROR: Unknown module(s) in QT: bootstrap-private
jom: C:\Qt\Static\5.12.0_crt\qtbase\src\Makefile [sub-moc-make_first] Error 3
cd tools\rcc\ && ( if not exist Makefile C:\Qt\Static\5.12.0_crt\qtbase\bin\qmake.exe -o Makefile C:\Qt\Static\q
t-everywhere-src-5.12.0\qtbase\src\tools\rcc\rcc.pro ) && C:\Qt\Tools\QtCreator\bin\jom.exe -f Makefile
cd tools\qfloat16-tables\ && ( if not exist Makefile C:\Qt\Static\5.12.0_crt\qtbase\bin\qmake.exe -o Makefile C:
\Qt\Static\qt-everywhere-src-5.12.0\qtbase\src\tools\qfloat16-tables\qfloat16-tables.pro ) && C:\Qt\Tools\QtCreator\bin\
jom.exe -f Makefile
Project ERROR: Unknown module(s) in QT: bootstrap-private
jom: C:\Qt\Static\5.12.0_crt\qtbase\src\Makefile [sub-rcc-make_first] Error 3
Project ERROR: Unknown module(s) in QT: bootstrap-private
jom: C:\Qt\Static\5.12.0_crt\qtbase\src\Makefile [sub-qfloat16-tables-make_first] Error 3
jom: C:\Qt\Static\5.12.0_crt\qtbase\Makefile [sub-src-make_first] Error 2
jom: C:\Qt\Static\5.12.0_crt\Makefile [module-qtbase-make_first] Error 2
Note: the only thing I'm doing differently then what's on the qt wiki is not running qmake because makefiles are already generated by configure and it says at the end of configure output to use nmake or jom.
MSVC 2017
Windows 7 (64-bit)
Qt 32-bit build
Unsolved Project ERROR: Cannot run compiler 'clang++'. Output
Then you should check your Kit.
How Did you install Qt ?
Solved iOS build fails due to "missing" moc/rcc generated files
I haven't found a solution to this problem with Qt 5.10.1, but it had magically disappeared in Qt 5.12.1. So I close the topic.
Unsolved Error while building/deploying - when executing 'qmake'
@VRonin This was the version given by the University as part of the study pack. Which version do you recommend?
Unsolved Can't configure Qt 5.12.0 with Qt for WebAssembly in Linux lubuntu
Yes I did. And I managed to get through the configure step. It seems I just needed a clean slate. And this was the result:
Configure summary:
Building on: linux-g++ (x86_64, CPU features: mmx sse sse2)
Building for: wasm-emscripten (wasm, CPU features: <none>)
Target compiler: clang 6.0.1
Configuration: cross_compile compile_examples largefile release c++11 c++14 c++1z no-pkg-config reduce_exports static stl
Build options:
Mode ................................... release
Optimize release build for size ........ no
Building shared libraries .............. no
Using C standard ....................... C11
Using C++ standard ..................... C++1z
Using ccache ........................... no
Using gold linker ...................... no
Using precompiled headers .............. no
Using LTCG ............................. no
Target compiler supports:
Build parts ............................ libs
Qt modules and options:
Qt Concurrent .......................... no
Qt D-Bus ............................... no
Qt D-Bus directly linked to libdbus .... no
Qt Gui ................................. yes
Qt Network ............................. yes
Qt Sql ................................. no
Qt Testlib ............................. yes
Qt Widgets ............................. yes
Qt Xml ................................. yes
Support enabled for:
Using pkg-config ....................... no
udev ................................... no
Using system zlib ...................... yes
Qt Core:
DoubleConversion ....................... yes
Using system DoubleConversion ........ no
GLib ................................... no
iconv .................................. yes
ICU .................................... no
Tracing backend ........................ <none>
Logging backends:
journald ............................. no
syslog ............................... no
slog2 ................................ no
Using system PCRE2 ..................... no
Qt Network:
getifaddrs() ........................... no
IPv6 ifname ............................ no
libproxy ............................... no
OpenSSL ................................ no
Qt directly linked to OpenSSL ........ no
OpenSSL 1.1 ............................ no
DTLS ................................... 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 ............... no
PNG .................................. yes
Using system libpng ................ yes
EGL .................................... yes
OpenVG ................................. no
OpenGL:
Desktop OpenGL ....................... no
OpenGL ES 2.0 ........................ yes
OpenGL ES 3.0 ........................ no
OpenGL ES 3.1 ........................ no
OpenGL ES 3.2 ........................ no
Vulkan ................................. no
Session Management ..................... yes
Features used by QPA backends:
evdev .................................. no
libinput ............................... no
INTEGRITY HID .......................... no
mtdev .................................. no
tslib .................................. no
xkbcommon-evdev ........................ no
QPA backends:
DirectFB ............................... no
EGLFS .................................. yes
EGLFS details:
EGLFS OpenWFD ........................ no
EGLFS i.Mx6 .......................... no
EGLFS i.Mx6 Wayland .................. no
EGLFS RCAR ........................... no
EGLFS EGLDevice ...................... no
EGLFS GBM ............................ no
EGLFS VSP2 ........................... no
EGLFS Mali ........................... no
EGLFS Raspberry Pi ................... no
EGL on X11 ........................... no
LinuxFB ................................ no
VNC .................................... yes
Mir client ............................. no
Qt Sql:
SQL item models ........................ yes
Qt Widgets:
GTK+ ................................... no
Styles ................................. Fusion Windows
Qt PrintSupport:
CUPS ................................... no
Qt Sql Drivers:
DB2 (IBM) .............................. no
InterBase .............................. no
MySql .................................. no
OCI (Oracle) ........................... no
ODBC ................................... no
PostgreSQL ............................. no
SQLite2 ................................ no
SQLite ................................. yes
Using system provided SQLite ......... no
TDS (Sybase) ........................... no
Qt Testlib:
Tester for item models ................. yes
Qt SerialBus:
Socket CAN ............................. no
Socket CAN FD .......................... no
Qt QML:
QML network support .................... yes
QML debugging and profiling support .... yes
QML sequence object .................... yes
QML list model ......................... yes
QML XML http request ................... yes
QML Locale ............................. yes
QML delegate model ..................... 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
TableView item ......................... yes
Path support ........................... yes
PathView item .......................... yes
Positioner items ....................... yes
Repeater item .......................... yes
ShaderEffect item ...................... yes
Sprite item ............................ yes
Qt Scxml:
ECMAScript data model for QtScxml ...... yes
Qt Gamepad:
SDL2 ................................... no
Qt 3D:
Assimp ................................. yes
System Assimp .......................... no
Output Qt3D Job traces ................. no
Output Qt3D GL traces .................. no
Use SSE2 instructions .................. no
Use AVX2 instructions .................. no
Aspects:
Render aspect ........................ yes
Input aspect ......................... yes
Logic aspect ......................... yes
Animation aspect ..................... yes
Extras aspect ........................ yes
Qt 3D Renderers:
OpenGL Renderer ........................ yes
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
WinRT Bluetooth API (desktop & UWP) .... no
Qt Sensors:
sensorfw ............................... no
Qt Quick Controls 2:
Styles ................................. Default Fusion Imagine 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:
Qt.labs.location experimental QML plugin . yes
Geoservice plugins:
OpenStreetMap ........................ no
HERE ................................. yes
Esri ................................. yes
Mapbox ............................... yes
MapboxGL ............................. yes
Itemsoverlay ......................... yes
QtXmlPatterns:
XML schema support ..................... yes
Qt Multimedia:
ALSA ................................... no
GStreamer 1.0 .......................... no
GStreamer 0.10 ......................... no
Video for Linux ........................ no
OpenAL ................................. yes
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
Native Spellchecker .................... no
WebRTC ................................. no
Use System Ninja ....................... no
Geolocation ............................ yes
WebChannel support ..................... yes
Use v8 snapshot ........................ yes
Kerberos Authentication ................ no
Building v8 snapshot supported ......... yes
Use ALSA ............................... no
Use PulseAudio ......................... no
Optional system libraries used:
re2 .................................. no
icu .................................. no
libwebp, libwebpmux and libwebpdemux . no
opus ................................. no
ffmpeg ............................... no
libvpx ............................... no
snappy ............................... no
glib ................................. no
zlib ................................. no
minizip .............................. no
libevent ............................. no
jsoncpp .............................. no
protobuf ............................. no
libxml2 and libxslt .................. no
lcms2 ................................ no
png .................................. no
JPEG ................................. no
harfbuzz ............................. no
freetype ............................. no
x11 .................................. no
Required system libraries:
fontconfig ........................... no
dbus ................................. no
nss .................................. no
khr .................................. no
glibc ................................ no
Required system libraries for qpa-xcb:
libdrm ............................... no
xcomposite ........................... no
xcursor .............................. no
xi ................................... no
xrandr ............................... no
xtst ................................. no
Note: Also available for Linux: linux-clang linux-icc
Note: Using static linking will disable the use of dynamically
loaded plugins. Make sure to import all needed static plugins,
or compile needed modules into the library.
Note: No wayland-egl support detected. Cross-toolkit compatibility disabled.
WARNING: Cross compiling without sysroot. Disabling pkg-config
WARNING: gperf is required to build QtWebEngine.
Qt is now configured for building. Just run 'make'.
Once everything is built, Qt is installed.
You should NOT run 'make install'.
Note that this build cannot be deployed to other machines or devices.
Prior to reconfiguration, make sure you remove any leftovers from
the previous build.
Unsolved macdeployqt 5.12.1 command not found
@AntonBursch said in macdeployqt 5.12.1 command not found:
macdeployqt
you'll have ti fix your path to the macdeployqt it's to be found, under
/Path/to/Qt/5.x.x/clang_64/bin/macdeployqt
replace x.x with the qt version of course
Unsolved Qt Online/Offline installers getting stuck on Mac
Installing component sources, is the official title, but it's actually more file extracting from the zip file.
Unsolved I do not understand how to install QtWebEngineWidget
Hi, I am a novice, and am trying to install QtWebEngineWidget to compile an open source project, and so far it has failed miserably.
Also, "I am a novice" is code for "I need more hand-holding that the official documentation is doing. Please do not assume I know what is meant by 'Set up \Microsoft Visual Studio 2017, where <arch> is \c amd64, \c x86, etc.' "
Anyway, the context is that I'm trying to change a tiny bit of code in an open source project I want to get involved in. So my first step is to get the project to compile once before making change.
I got the whole project from GitHub in zip, extracted etc. I also know the project is done in "Qt 5".
Anyway, I have downloaded and installed from the Qt downloader (MaintenanceTool.exe) :
In the "Developer and Designer Tools" section :
- Qt Creator IDE 4.8.1 (community)
- Qt Creator 4.8.1 CDB Debugger Support
- MinGW 7.3.0 64-bit
- Qt Installer Framework 3.0
In the Qt 5.12.1 section :
- MinGw 7.3.0 64-bit
- Sources
- Qt Charts
- Qt Data Visualization
- Qt Purchasing
- Qt Virtual Keyboard
- Qt WebEngine
- Qt Network Authorization
- Qt WebGL Streaming Plugin
- Qt Script (Deprecated)
- Qt Debug Information Files
I also installed independently from the Qt downloader, those :
- ActivePerl-5.26.3.2603-MSWin32-x64-a95bce075
- Windows 10 SDK
- gperf-3.0.1
- python-2.7.15
- flex-2.5.4a-1
- bison-2.4.1
- MinGW 32 bit (yes, that's 3 MinGW installs)
- Microsoft Visual Studio Community 2017 with the "Desktop Development in C++" bundle. (the name is a free translation from French)
From Visual Studio, I installed those : (all names are freely translated from French) - Just-in-time debugger
- VC++ 2017 version 15.9 v14.16 latest v141 tools
- Profiling tools C++
- SDK Windows 10 (10.0.17763.0)
- Visual C++ tools for CMake
- ATL Visual C++ for x86 and x64
- Test adapter for Boost.Test
- Test adapter for Google Test
And that's it for the stuff I installed to try to compile this project.
The open source project had a *.pro file recognized by Qt Creator. However, when I try to build, I get this message :
:-1: error: Unknown module(s) in QT: webenginewidgets
From this error message, I conclude I need to install QtWebEngineWidget.
As far as build settings go for this project, it has a kit that was auto-detected and is named "Desktop Qt 5.12.1 MinGW 64-bit". The icon is a grey computer monitor, without any warning or error icon attached. (there were some before I downloaded more stuff)
So from what I gathered in my googling, I need to actually compile Qt from the source to enable Qt Creator to use QtWebEngineWidget. However, I have no confidence that this is an accurate conclusion, hence my first question :
1. Do I really need to compile Qt from the source to use QtWebEngineWidget ?
Anyway, I'll assume I do to explain the rest of the problem.
So I got to this page : http://doc.qt.io/qt-5/qtwebengine-platform-notes.html
So something that may be damning me is that I didn't download and install the ICU and ANGLE libraries. My reasons are :
- The page says they're used to "run" Qt, not to build or compile.
- I can already run the .exe version of the open source project
- None of them have an obvious download link and it confuses me.
- I am afraid that downloading and installing more irrelevant stuff is going to break something somewhere and worsen my problems.
Anyway back to the aforementioned web page.
I skipped Step 1 because I'm on the community license.
I assume Step 2 was done by the Qt Downloader because I have a Src folder in my Qt\5.12.1\ directory full of .cpp and .h files and other stuff.
The real problems are on step 3 and 4.
Step 3 is to make a .cmd file to do some hocus pocus with Visual Studio. I just recently learned at school batch and command files in an off-hand manner. (they just told us to write one and gave us one (1) example.) Anyway, the webpage gives this to put in the command file :
REM Set up \Microsoft Visual Studio 2017, where <arch> is \c amd64, \c x86, etc.
CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvarsall.bat" <arch>
SET _ROOT=C:\qt\qt-5
SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
REM Uncomment the below line when using a git checkout of the source repository
REM SET PATH=%_ROOT%\qtrepotools\bin;%PATH%
SET _ROOT=
I managed to understand that this isn't meant to be plug-and-play, so here's the version I'm using :
REM Set up \Microsoft Visual Studio 2017, where <arch> is \c amd64, \c x86, etc.
CALL "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
SET _ROOT=C:\Qt\5.12.1\Src
SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
REM Uncomment the below line when using a git checkout of the source repository
REM SET PATH=%_ROOT%\qtrepotools\bin;%PATH%
SET _ROOT=
My file is also called qt5vars.cmd and is in C:\Qt.
Anyway, I double-click, see the command prompt pop up with some fancy VISUAL STUDIO header, and then disappear after a few seconds with no goodbye message.
I then open a command prompt, navigate to C:\Qt\5.12.1\Src\qtbase, and enter the following command :
configure -debug -nomake examples -nomake tests -opensource
Just to be perfectly clear, this is the full line of code :
C:\Qt\5.12.1\Src\qtbase> configure -debug -nomake examples -nomake tests -opensource
Being told what the full line of code, with the full path, is supposed to look like would be helpful.
Anyway, I launch this, and then I get a smithereens of errors like this :
C:/Qt/5.12.1/Src/qtbase/qmake/generators/win32/msvc_nmake.cpp:448: undefined reference to `ProKey::ProKey(char const*)'
C:/Qt/5.12.1/Src/qtbase/qmake/generators/win32/msvc_nmake.cpp:448: undefined reference to `ProString::ProString(QString const&)'
(...)
C:/Qt/5.12.1/Src/qtbase/qmake/property.cpp:121: undefined reference to `__ZNK9QSettings5valueERK7QStringRK8QVariant'
I also tried to use that command in just Src, and I got the same smithereens :
C:\Qt\5.12.1\Src> configure -debug -nomake examples -nomake tests -opensource
And I also tried this with essentially the same results :
C:\Qt\5.12.1\Src\qtbase> configure -debug -nomake examples -nomake tests -opensource mingw32-make install
("essentially" is code for "I got an enormous amount of similar errors but didn't verify if they were exactly the same".)
And that's where I'm stuck.
Oh! I forgot!
This is the full content of my PATH environment variable :
%USERPROFILE%\AppData\Local\Microsoft\WindowsApps
C:\intelFPGA_lite\17.0\modelsim_ase\win32aloem
C:\Qt\Tools\mingw730_64\bin
C:\Qt\5.12.1\Src\qtbase\bin
C:\Qt\5.12.1\Src\gnuwin32\bin
C:\Perl64\bin
C:\Python27
Also, I am on Windows 10 Professional 64 bits.
Anyway, the only next steps of resolution I see are :
- Somehow download the ICU and ANGLE.
- Download all the packages from the Qt 5.12.1 section of the Qt downloader.
- Download all the stuff from the Visual Studio installer.
The problems with those 3 solutions are as follow :
- I have no idea if I'd be downloading the right ICU library
- The only way to "download" the ANGLE library seems to be to build it locally from source, and that would be the 3rd software in the chain of stuff I need to build from source (open source project -> Qt Creator -> ANGLE) and I'm starting to believe there's always going to be one more thing I could build from source in a never-ending chain of softwares that I don't even know if I really need them.
- All those other downloads are dozens of gigabytes. While not impossible for me to download it all, it does pose significant logistical challenges as I do not currently have a mean to throttle the downloads and they'll hog all the bandwidth in the household and effectively cut off our internet for the (long) duration of the downloads. (I found a software once to throttle downloads, but I only took the free trail and now it's expired)
Another solution is to contact the maintainers of the open source project. However, since they didn't include any kind of guide on how to compile except "built with Qt 5", I do not feel like they'd be open to do the hand-holding I need to compile the project. I'd also rather not risk to get negative social capital with them because I'd like them to take my tiny modification seriously and include it in the main branch. Also, even if I contacted them, I wouldn't know what precise questions to ask. Also, the creator is affiliated with an institution, so it may not even have been them who installed their Qt 5. Contacting them, however, is a serious candidate for the next step if I don't get the help I need on this forum.
Also, I have been reading the guides in diagonals, and that's probably part of the problem, but I do not know which guide is relevant and if I had been reading everything thoroughly, I might be banging my head trying to build the GNU GCC compiler from source thinking that's what I need. (because my first try to compile this was with CodeBlocks and gcc) (no, I did not know GNU GCC wasn't meant for Windows until this week)
Anyway, to recap, here are my questions :
1. Do I really need to compile Qt from the source to use QtWebEngineWidget ?
2. Is it reasonable to assume I need QtWebEngineWidget to compile this open source project?
3. Do I need to download and install ICU and ANGLE to compile Qt ?
3b. If so, what do I download? What link exactly do I need to click on?
4. Besides ICU and ANGLE, are there steps I missed?
5. Is my version of the command file sufficient for my purpose?
6. Anything else I am doing wrong?
7. Am I trying to do a "Static build" ?
If your proposed solution is to download more stuff, please tell me if those additional downloads are absolutely needed, probably needed, or maybe needed.
Also, if you want to suggest linking to git in the command prompt, please carefully weight your suggestion before sending it. I am currently overwhelmed by all the new and confusing things I need to wade through, and have so far discarded doing git stuff as a deliberate strategy to reduce the amount of novelty and opportunities to mess up. I know I'll have to get to git sooner or later, but currently, my priority is to get the open source project to compile as-is.
Thank you for your time.