Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to specify specific qt version in mxe

Tags:

qt

qt5

mxe

I need to use qt version 5.5 with mxe but dont find any option. I only see qt which is 4.8.7 and qt5 which is 5.8 Am I restricted to one of the two versions or is there any option to use 5.5 also.

Thanks

like image 995
lost111in Avatar asked Mar 22 '17 13:03

lost111in


People also ask

How do I change the Qt version of a qmake executable?

Select Edit > Preferences > Kits > Qt Versions > Add. Select the qmake executable for the Qt version that you want to add. Select the Qt version to view and edit it. In the Name field, edit the name that Qt Creator suggests for the Qt version. In the qmake path field, you can change the qmake location.

How do I add a Qt version to my project?

In those cases, select Add in the Qt Versions tab to add the Qt version manually, as instructed in Setting Up New Qt Versions. Select Edit > Preferences > (or Qt Creator > Preferences on macOS) > Kits > Qt Versions > Link with Qt. In the Qt installation path field, enter the path to the directory where you installed Qt.

What is QQT creator?

Qt Creator allows you to have multiple versions of Qt installed on your development PC and use different versions to build your projects. For example, device manufacturers provide special Qt versions for developing applications for their devices.

What is MXE in Linux?

Introduction. MXE (M cross environment) is a GNU Makefile that compiles a cross compiler and cross compiles many free libraries such as SDL and Qt. Thus, it provides a nice cross compiling environment for various target platforms, which is designed to run on any Unix system is easy to adapt...


1 Answers

Here is example how to freeze Qt version https://github.com/mxe/mxe/tree/master/plugins/examples/qt5-freeze

You need to copy that plugin folder and edit it to change to a version you need.

And than use it by adding mxe additional argument MXE_PLUGIN_DIRS='plugin dir path'

like image 167
IGHOR Avatar answered Sep 30 '22 23:09

IGHOR