-3

I have developed Qt on Windows for Windows, and on Linux for Linux.

I understand that in order to develop a Qt application for both Windows + Linux is well documented (although I haven't actually done it yet).

What I would like to do is create a Qt project but run it on both Windows + Linux .

Is this possible?

Beakie
  • 1,948
  • 3
  • 20
  • 46
  • "I have developed Qt on Windows for Windows, and on Linux for Linux." What is that supposed to mean? – jpo38 Dec 19 '15 at 13:27
  • 2
    I don't get your distinctions or what the exact problem is. If your code is portable (if you stick to Qt, it usually is), you can develop on Windows and compile and run it on Linux afterwards, or vice-versa. – Frank Osterfeld Dec 19 '15 at 15:02
  • Sure it is possible to develop on several platforms, this is target of Qt – demonplus Dec 19 '15 at 17:00

1 Answers1

2

Assuming you're asking about developing Qt Project on both Operating system.
Yes . you can open your project in both operating system if you have Qt Creator or related development application installed.

Assuming you want to compile your project for both Operating systems
you can follow up this for cross-compilation : How do I configure Qt for cross-compilation from Linux to Windows target?

or you can compile it on your Linux Distribution maybe inside the VM-ware .

also good read if you need more : https://forum.qt.io/topic/16018/how-to-compile-a-qt-application-targeting-for-linux-from-a-windows-machine/15

Source : Internet.

Community
  • 1
  • 1