is it possible to run application on windows which developed on linux platform ?
-
I have knowledge related to qt more than 2.5 years. i have developed many applications on linux .
so i want to know
Will my same application run on windows ?
To run same application on windows what other changes i need to do ?
-
I have knowledge related to qt more than 2.5 years. i have developed many applications on linux .
so i want to know
Will my same application run on windows ?
To run same application on windows what other changes i need to do ?
@Qt-embedded-developer said in is it possible to run application on windows which developed on linux platform ?:
Will my same application run on windows ?
If you do not use Linux specific API, yes it will.
Simply build it on Windows. -
@Qt-embedded-developer said in is it possible to run application on windows which developed on linux platform ?:
Will my same application run on windows ?
If you do not use Linux specific API, yes it will.
Simply build it on Windows.I have build the application on linux.
So without build on windows, will my application run on windows.
Is there way to generate application for windows on linux ?
-
I have build the application on linux.
So without build on windows, will my application run on windows.
Is there way to generate application for windows on linux ?
@Qt-embedded-developer said in is it possible to run application on windows which developed on linux platform ?:
So without build on windows, will my application run on windows.
No.
Is there way to generate application for windows on linux ?
No.
Or at minimum in practice you need to compile separately on each target for each target.
As a separate matter, if you used Python (PyQt, PySide) your script should work on both platforms. But not so easy to generate distributions for each platform from another platform.
-
I have build the application on linux.
So without build on windows, will my application run on windows.
Is there way to generate application for windows on linux ?
Hi,
@Qt-embedded-developer said in is it possible to run application on windows which developed on linux platform ?:
I have build the application on linux.
So without build on windows, will my application run on windows.
No unless you execute it in the context of WSL (Windows Subsystem for Linux).
Is there way to generate application for windows on linux ?
Cross-compilation using MinGW could work but requires to first cross-compile Qt and the dependencies you are using. A virtual machine with Windows on it would likely be simpler.
-
@Qt-embedded-developer said in is it possible to run application on windows which developed on linux platform ?:
So without build on windows, will my application run on windows.
No.
Is there way to generate application for windows on linux ?
No.
Or at minimum in practice you need to compile separately on each target for each target.
As a separate matter, if you used Python (PyQt, PySide) your script should work on both platforms. But not so easy to generate distributions for each platform from another platform.
@JonB means its possible by generating such type of python script.
-
@Qt-embedded-developer said in is it possible to run application on windows which developed on linux platform ?:
So without build on windows, will my application run on windows.
No.
Is there way to generate application for windows on linux ?
No.
Or at minimum in practice you need to compile separately on each target for each target.
As a separate matter, if you used Python (PyQt, PySide) your script should work on both platforms. But not so easy to generate distributions for each platform from another platform.
@JonB said in is it possible to run application on windows which developed on linux platform ?:
As a separate matter, if you used Python (PyQt, PySide) your script should work on both platforms. But not so easy to generate distributions for each platform from another platform.
It is your decision whether you wish to code with Qt in C++ or in Python.
-
@Qt-embedded-developer said in is it possible to run application on windows which developed on linux platform ?:
Will my same application run on windows ?
If you do not use Linux specific API, yes it will.
Simply build it on Windows.@jsulm Means i need to install qt on windows and then i need to make that application on it. which will create .exe for my application. And then then that .exe will work on any windows os.
-
@JonB said in is it possible to run application on windows which developed on linux platform ?:
As a separate matter, if you used Python (PyQt, PySide) your script should work on both platforms. But not so easy to generate distributions for each platform from another platform.
It is your decision whether you wish to code with Qt in C++ or in Python.
If install qt on windows and then generated .exe .
then is it possible .exe on qt which can run on any windows without installing qt or mingw for qt terminal ?
if not then what extra stuff needed with less amount to run .exe on any windows simply for user ?
-
If install qt on windows and then generated .exe .
then is it possible .exe on qt which can run on any windows without installing qt or mingw for qt terminal ?
if not then what extra stuff needed with less amount to run .exe on any windows simply for user ?
@Qt-embedded-developer you can get all dependencies (excluding your own) by using windeployqt tool on the freshly created executable. The process is described here:
https://doc.qt.io/qt-5/windows-deployment.html -
If install qt on windows and then generated .exe .
then is it possible .exe on qt which can run on any windows without installing qt or mingw for qt terminal ?
if not then what extra stuff needed with less amount to run .exe on any windows simply for user ?
@Qt-embedded-developer said in is it possible to run application on windows which developed on linux platform ?:
then is it possible .exe on qt which can run on any windows without installing qt or mingw for qt terminal ?
Not any Windows. but 8 and 10. Might win 7 but Xp is stone dead.
Also it will need some DLLS with the exe as artwaw explains.