Important: Please read the Qt Code of Conduct -

Compiling question...

  • I have made a small Qt program in Windows, and I do not understand how to compile it for use in Linux (using DSL distribution). What steps do I need to take? I am guessing that I will be compiling it in command line.

  • What did you use on windows? In the case of MSVC, use the Qt VS plug-in to generate some .pro and .pri files. Then on Linux you should be able to pretty much do
    @qmake && make@
    and go through the cycle fix/make until everything works.

    If you are using qmake with mingw on windows, you use make instead of mingw32-make.

    Once you have the .pro files you can use Qt Creator on Linux. That would save you from learning the command line stuff. It'll still be useful if you do though.

Log in to reply