Qt example named Boxes working on Ubuntu but not on Windows (Qt 5.0.2) - windows

I have been searching for a cross platform GUI application development framework (Same code for building Linux, Android, Windows apps and OS X) and I found Qt is best for that (Inspired because VLC media player is build with Qt).
First installed it in Ubuntu I had some problem in building examples but I managed to solve it and every examples given in Qt is working fine.
But in Windows every example is working except the "Boxes" example.
Issues:
warning: Qt was built with ANGLE, which provides only OpenGL ES 2.0 on top of DirectX 9.0c
error: This example requires Qt to be configured with -opengl desktop
After installing Qt 5.0.2 for Windows 32-bit (VS 2010, OpenGL, 476 MB)
error: Qt Creator needs a compiler set up to build. Configure a compiler in the kit options.
So, I checked Build & Run Option and it shows

you need to have qt built with opengl desktop option.
http://qt-project.org/downloads
look for Qt 5.0.2 for Windows 32-bit (VS 2010, OpenGL, 476 MB)
http://download.qt-project.org/official_releases/qt/5.0/5.0.2/qt-windows-opensource-5.0.2-msvc2010_32_opengl-x86-offline.exe.mirrorlist
after installing this qt release your example should work

Problem resolved after installing :
Microsoft Visual Studio 2010
Qt 5.0.2 for Windows 32-bit (VS 2010, OpenGL, 476 MB)
But, running the program form Qt alone works when I open the compiled exe file it shows Qt5***.dll missing.
Solving missing dll :
Open compiled exe in Dependency Walker and it will show all missing dll. Now go to
\Qt\Qt5.0.2\5.0.2\msvc2010_opengl\bin
there we can find all Qt5***.dll copy it and past it in exe location.

Related

It is possible to install qt 5.10 with qt creator 7+?

I've to recreate a work environment in a new pc and I would like to use the newest Qt Creator to work on a project that was developed in 5.10 but the maintenace tool does not allow to select that version:
I'm currently using windows 11, should I install Qt Creator 4.x that was shipped with 5.10 and then install the new Qt Creator over it?
it is actually possible to have what I would like to use?
I don't know why you are not seeing Qt 5.10 there, I do.
Anyhow, you can always install Qt Creator from an offline installer (https://download.qt.io/official_releases/qtcreator/ or from https://account.qt.io) and use the "Link with Qt" banner that is shown when you start that (if the banner doesn't show up, the same functionality is accessible via Tools > Options > Kits > Qt Versions > Link with Qt). Point that to the base directory of a Qt offline or online installer to make everything known to that Qt Creator installation automatically.

Can't run Qt 5.12.2 on macOS 10.12

There is a project I need to build using Qt. I am running macOS 10.12.6 and I have installed XCode 9.2 along with its command line tools. But after installing Qt 5.12.2 (the oldest 5.12 available through its online installer). It will not launch Qt. When I look into the ~/Qt directory, the "Qt Creator" App is showing that it is for macOS 10.13. But Qt's site says 10.12 is supported.
https://doc.qt.io/qt-5.12/supported-platforms.html
It has a footnote of: Note: Xcode 9 is only supported for application development (to be able to opt out of features such as layer-backing and dark mode), not for development of Qt itself.
Am I misunderstanding the requirement? I don't want to upgrade my OS at this points as I don't want to destabilize my other development.
While the Qt online installer ships various Qt versions, it only ships the latest Qt Creator, which is currently Qt Creator 4.11.0, based on Qt 5.14.0. Thus it is too new, as Qt 5.14.0 only supports macOS 10.13 and later.
You'll have to install Qt Creator 4.9.2, which is using Qt 5.12.4 (Qt Creator 4.10 might also work, as Qt 5.13 is supposed to still run on macOS 10.12, but I find the documentation a bit unclear - give it a try).
Install the Qt Creator simply to /Applications, to avoid any clashes with the online installer-based Qt installation. You might have to configure the installed Qt versions and kits manually then, as the alternate Qt Creator probably won't auto-detect them.

Loading OpenSSL dynamic libraries arm & x86 (FMX, C++)

I am able to use OpenSSL static libraries (libcrypto.a and libssl.a) in my iOS app thanks to this help. Now i can also use OpenSSL dynamic libraries (libcrypto.so and libssl.so) in my Android app version thanks to this info. I downloaded the files for Android in the OpenSSL_1.0.2g_Android.zip file from here. I just guessed and used the ARM files (armeabi-v7a folder) instead of the Intel files (x86 folder) and it worked on my Android test phone.
My question: How do I make an Android build that uses the correct library files on ARM devices AND also on Intel? I don't know how to deploy both sets of files for this. Below is snip of project window showing where i test added the second libcrytpo.so library file for x86.
But, this second libcrypto.so does not show up in the deployment window, only the first version i added (the ARM version) remains.
I was hoping i could somehow use compiler directives but maybe i just need 2 independent projects altogether? One built for Android ARM and other for Android x86? Further, all i'm needing in my code is an IdHTTP1->Get() so maybe their is a way i can use the built in BoringSSL fork? If so, how?
russ
C++Builder 10.3 Version 26.0.33219.4899
RAD Studio does not support producing Android apps for Intel, only for ARM, so don't even worry about trying to use the x86 libs on Android.
Also, Indy does not support BoringSSL at this time.

Is Xcode required to install Qt Creator with Nokia Qt SDK on Mac?

I want to start developing apps in Qt for Nokia Belle/Meego/BB10 Platforms.
I have downloaded the Nokia Qt SDK 1.2.1 (including Qt 4.7.4, Qt Mobility, Qt Quick and other components).
I'm trying to install Nokia Qt SDK on a Mac, but it asks for Xcode. I have Xcode, but don't want to install it because it occupies a lot of space. Do I need it if I have Qt Creator? What does it need it for???? I thought Qt Creator can compile things itself. Can I uninstall Xcode after I install the SDK?
Thanks
The Qt Creator is just an IDE. It needs the entire C/C++ development environment. Xcode provides such an environment.
The Qt SDK 1.2.1 is very old. Unless you need it to support an old Nokia platform, you shouldn't be using it. Go to qt-project.org and get yourself a recent version of Qt (5.1.1 at the moment). It comes with Qt Creator. You still need Xcode for the compilers for the desktop platforms.
The SDK should come with compilers and simulators for the target devices, but I don't know offhand if it will need some non-compiler tools from Xcode.

Symbian Qt Development Linux

I want to change to Ubuntu but I can't find a clear answer on if the latest Qt SDK for Linux will allow me to develop for Symbian (Like it does on windows)?
Check out Symbian development using Linux.
In short, it is possible since the Qt 4.7 release. You'll need to download the S60 SDK and a patch, then set up your environment to use the cross-compiler, all of which is described in the above link.
The official docs for Qt 4.8 are here: Installing Qt for the Symbian platform using Linux, and have more information on things like building signed packages.

Resources