Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QT with C++ in cygwin

Tags:

g++

cygwin

qt

I am just trying to get started with QT and I am using C++ on cygwin(gcc-g++). Can anyone please let me know the packages I need to install from the cygwin setup to have a proper working QT environment to make it work with C++ or point me to the information please?

like image 874
user2311285 Avatar asked Oct 15 '25 18:10

user2311285


1 Answers

If you want to develop Qt for Windows applications, you need to download and install Qt for Windows development packages from https://qt.io/ , as well as build tools (such as MinGW-w64 GCC) and SDKs for Windows, not Cygwin.

Compilers, other build tools and Cygwin SDKs in the Cygwin environment, are for Cygwin development, they can't be used with Qt for Windows.

You can still install Qt for Cygwin development packages from Cygwin repo, if you want. But remember the resulting Qt applications from this platform are Cygwin programs, and can't be used independently on Windows without Cygwin. And Qt GUI applications for Cygwin will requiring an X server to run, so it is probably not the thing that you expecting.

In most cases, please consider Cygwin and Windows are 2 separated platforms.

like image 65
Low power Avatar answered Oct 17 '25 21:10

Low power