Create a Application in QT Creator in windows - windows

Currently working on an application using QT in Windows.In Qt i am facing static linking deployment in windows. How to proceed on it?
How to statically link the Qt libraries, so that we can deploy an independent application.
Note: The application has to be runned in Linux, MACOS, Windows, how to cross compile it.Please give me the guidelines also.

Related

Integrate C++ in Cordova electron

As we all know Cordova has added electron platform to build desktop apps for different Operating Systems. Like we can integrate C++ in android using JNI and Objective C wrappers for iOS and mac OSX. Is that possible to do something similar in Cordova's electron platform and windows platforms.
Followed references
1
2
Those references didn't helped me incase of Cordova project.
Can someone help me with this. Thank you for your time and response.
There is Webview https://github.com/webview/webview , which can help to build GUIs similar to electron but with c++. It is using HTML / CSS / JS as UI layer.
The old version was header only but didn't run on msvc c++. The new version runs on msvc but is more complicate.
There also is Nimview https://github.com/marcomq/nimview, which uses an older version of webview and already has some C++ / msvc examples. It improves testing, debugging and development for offline applications, compared to webview.
Nimview can also be used for Android.
Disclaimer:
I'm the author of Nimview

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.

Developing in Qt for iOS on windows

Is it possible to develop some application on windows with Qt and use that to create application for iOs/IPad?
Qt applications are mostly portable, in most cases the same code will run on any platform that Qt supports, as long as it doesn't use any platform specific APIs.
You cannot create Qt application executables for macos or ios without a macos machine, but you can develop your application on a windows machine, then simply compile the written code on a macos machine and you are set.

Deploy Qt application on MAC with Qt framework

I developed one Qt application in Mac using Qt creator,Its working fine on my development machine.Then I copied the project output from my build directory to a new machine without Qt framework,but its not working in that machine, Do I need to install any frame work for running Qt application in Mac. How I can include qt framework in my application when deploying the project output?
Make sure to have read Developing Qt Applications for Mac OS X.
See Qt for macOS - Deployment specifically, and Qt for macOS generally.
The binary will be in your Debug or Release folder and it will be as .app
(.app extension may be hidden )
make sure you copy that and it should work fine as the binary has all its dependencies packed together

Qt Creator vs Xcode for Qt development on the Mac

I'm about to start a Qt project on the Mac and I'm not sure which IDE to choose between:
Qt Creator
Xcode
Which are the advantages/disadvantages of these two IDEs for Qt development on the Mac?
Personally I'm using QtCreator in order to have the same on all platforms. The main advantage I give to it is that it have been developed for Qt.
The main advantage I give to XCode is its integration to MacOSX.
Now for you it depends:
If you always use XCode, You should continue using it for Qt to keep your marks
If you always use QtCreator, you should continue using it
If you start developing on MacOSX (or you've never used XCode) you should use QtCreator
Then my advice is: use the IDE you prefer to use
Qt Creator has much better integration with Qt in code editing, UI designing, and debugging. And it's the same across platform.
My issue with Creator on the Mac is it's debugging facility is not on a par with other platform. The python script-able debugger is not as functioning as, say Windows version of Creator. This is not Qt/Nokia's fault since the gcc/gdb on Mac are versions behind. Apple switched its focus to LLVM and left gcc tool chain, eh, to its natural death on the platform.
I actually do much of my developing on a Windows VM. Only switch to Mac for building and debugging something that's only Mac-specific.
Both options have issues. Qt Creator has problems with projects that have complicated project hierarchies (complicated in terms of folder structure.)
With Xcode, there are issues if you want to have some objective-c source in your project and if you want to be able to step into Qt source while debugging.
Most of my development is done on the Mac using Xcode and BBEdit. I switch over to Developer Studio on Windows for testing or if I need to be able to step into Qt while debugging.
Given the amount of time we all spend working working in these environments, you should try both and use what suits you best.
You also need to consider eclipse. I have spent the last week using Qt Creator and being a long-time eclipse user (for both Java and C++) I find it inferior. Once (if) Xcode 4 support is added to Qt, this might change, but at the moment my vote goes with eclipse even without the 'Qt Integration' available (i.e. just using the 'C++ Makefile project with existing sources').

Resources