Porting custom media player app to Linux - qt

I have developed a custom media player that works on Windows 7. I used QMediaPlayer, QVideoWidget and QMediaPlaylist classes. I need to port the app to Linux. Do these classes also exist for Linux? Do they come automatically when installing Qt?
I tried copying the project to my Linux partition and recompiling but it can not find the headers.

Check weather the major version of Qt is the same on both platforms.
Seeing your description, I believe you are using an older version of Qt on the Linux machine as compared to the Windows machine.
Hope this helps.

Related

Build MySQL/MariaDB drivers for Android on Windows

I have been developing with Qt Creator for Windows and mainly working with Databases and therefore QtSql is inevitable. But I decided to dive into android and I need to connect to remote server and I have a need to create drivers for android and it is a very big hurdle for me as few materials are available. The Tutorial here https://wiki.qt.io/Build_Qt_5_MySQL_Plugin_for_Android: seem to be deprecated and/or working for Linux platform. Has any one managed to build MySQL/MariaDB drivers successfully on Windows? Please, help me if possible!

Is Windows-10-Qt-quick-QML code cross-compatible with IOS

If I am developing an application using Qt quick QML on windows 10, can I deploy my project and test it on an ios device? I have read this post Developing iOS app on Windows but it seems to be somewhat in conflict with what I have read. The chosen answer in that question says that you need a macOS to develop IOS applications. Qt's documentation and other posts have said that you can port applications onto various platforms with the same code "Code once, deploy everywhere". So will I be able to actively test my qt quick QML code on an ios device from a Windows 10 development platform?
No, you can't. You need either macOS computer or virtual machine with this system.

setting up VS platfrom toolset in QtCreator

I have a project based on Qt which use QWebEngine. For compiling this project i've installed Visual Studio Express 2015 and have configured kits. My project is built, all is fine. But now i need to compile my project for Windows XP platform. I know, that for doing this it is needed to change toolset from v140 to v140_xp.
How can i set the toolset from qtcreator?
I tried to determine the difference in compiler options in both cases. For doing that I've created test project in Visual Studio. There i change the toolset and look at Project Properties -> C/C++ -> Command Line Options. But seems that nothing changes there.
Qt WebEngine module does not support Windows XP targeting, so this won't work anyway. Even if it did, you'd need to build a copy of Qt that targets Windows XP - otherwise your application will target Windows XP, but not the Qt library it uses, and it won't work that way.
For completeness sake, here's how you'd do it assuming that you got Qt built targeting Windows XP:
There only two ways to do it currently without patching Qt Creator itself:
Execute Qt Creator with environment variables already setup up for the XP toolset enabled for command line use. I.e. target XP from command line, and launch Qt Creator from there.
Add relevant environment variable settings to the Build environment of the project in Qt Creator.
The details of environment variables needed to target Windows XP are given e.g. here.
For Windows XP portability, you should be using the semi-maintained for of the qtwebkit module. It builds and works on XP, and works with most recent Qt IIRC.
Note: It's certainly possible to target XP using WebEngine and Angle, but it requires lots of patches to current Qt. It's not an insignificant effort, and you'd definitely want to test it on the graphics cards that you intend to target - the DirectX 9 drivers on some of those machines are buggy, and while the code is correct and compiles and runs, it may not work on some systems. I'd say that it's absolutely not worth the effort.
In VS there is an editbin utility, which could be used as follows
editbin file.exe /SUBSYSTEM:WINDOWS,5.01 /OSVERSION:5.1

Qt Digia vs. Qt project

Qt Digia provides cross platform development targeting Mac, PC, Linux and on mobile iOS, Android, Windows mobile.
The Qt project also offers iOS, Android and PC, Mac, Linux builds. What is additionally there on the commercial version (i.e. Qt Digia)?
The core is the same which means the essential modules and some shared extension modules, aka. add-ons. There are a couple of things differing, however, e.g.:
Boot2Qt
Android injection
Qt Virtual Keyboard
Qt Quick Compiler
Charts
Qt Purchasing
... and so on, basically anything that Digia is working on under the Enterprise umbrella. You can follow their blog for further details.
Here you can also find the updates for 5.3.
On the new qt.io download page you can find a detailed table with a comparison about the available options.

MacBook Pro and ASP.NET applications

Is it ok to develop ASP.NET web applications on MacBook Pro ?
.NET is only available for Windows. There's the Mono project, which is not affiliated with Microsoft, which aims to create an open source .NET runtime and developer tools, usable on *NIX (including Mac OS X). If you want to develop .NET applications under Mac OS, this is your only choice.
Speaking of a MacBook though, you can install Windows on it using Boot Camp or run it in a virtual machine and develop in Visual Studio like on any other Windows box. And this is ok, I don't think anybody will confiscate your Mac for doing so.
If you have Windows running on the Mac then it is OK.
Another way is to use some .NET IDE for Mac (e.g. MonoDevelop)
New from Microsoft, IDE for Mac, Linux and Windows: https://code.visualstudio.com/Download
The best method to do that would be to install windows 10 with bootcamp and then install .NET . The steps involved are pretty straight forward. Just open bootcamp and create the partition and select the ISO of windows. Once installed, tap the options key on boot to boot to windows. If everything is smooth, you can continue the development, else, just open bootcamp again and delete the partition.
https://www.microsoft.com/en-in/software-download/windows10 - open this on mac to get the legal windows image. This will be valid only for a limited time

Resources