[Interest] Can I mix Qt VS Tools with Visual Studio's "Linux development with C++" to build a Qt app on Linux?

Crocker, William William.Crocker at analog.com
Fri Jan 31 13:02:55 CET 2020

I build on Linux using a .pro file, qmake, make and gcc.
(I develop on Linux)

I use the same .pro file on Windows where I build with VisualStudio.
(I just build and release on Windows.)

The .pro file does contain OS specific sections.
Mostly where to find “other” header files and their
corresponding libs.

Example attahed.


From: Interest <interest-bounces at qt-project.org> On Behalf Of dshinaberry at MRU.MEDICAL.CANON
Sent: Thursday, January 30, 2020 1:16 PM
To: interest at qt-project.org
Subject: [Interest] Can I mix Qt VS Tools with Visual Studio's "Linux development with C++" to build a Qt app on Linux?



I originally posted this question on the Qt Forum: https://forum.qt.io/topic/110620/can-i-mix-qt-vs-tools-with-visual-studio-s-linux-development-with-c-to-build-a-qt-app-on-linux

One of the moderators, JKSH, suggested asking here if I didn't get any responses, which I have not.

In my searching, I haven't found anything directly on topic about this. So, I thought I'd post here. Full disclosure: I am quite new and green with respect to Qt.

I've tinkered enough to be able to use the Qt VS Tools to create a Qt project that builds for Windows using Visual Studio 2017.

And I've created a C++ project using the "Linux development with C++" that builds on Linux using Visual Studio 2017.

Now I'd like to mix the two in order to build my Qt app on both Windows and Linux using Visual Studio 2017 to perform both builds.

The Qt VS Tools documentation talks about creating a .pro file and exporting the project in order to build on other platforms. This would seem to indicate that it is not possible to do what I'd like. But, I'm not sure whether this is a hard requirement or just reflects the state of things when the documentation was written.

So, is it possible to mix the two and build a Qt app from Visual Studio for both Windows and Linux platforms? If so, can someone give me an outline of the steps to follow to achieve this?

Many Thanks

This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20200131/19bd5bfd/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: demo.pro
Type: application/octet-stream
Size: 705 bytes
Desc: demo.pro
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20200131/19bd5bfd/attachment-0001.obj>

More information about the Interest mailing list