Compiling for Windows, Mac and Linux!
Is the only way to do this…. is to install QT Creator on each OS and compile its own version?
(Currently running QT Creator under Mac OSX)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Qt Creator is just the automation tool, it will create Makefile and adjacent files for you.
If you want to cross-compile, simply extend your Makefile so it could be possible to cross-compile, for example, via:
Reference is here. Please note, you will need to have entire toolchain for every target, including libraries. This is a separate topic, but hopefully there is a whole bunch of articles out there. Btw, most Linux distro’s have mingw32 toolchain available, and I believe there should be one for OSX too.
Also, you might be highly interested in tmake – it was originally developed to autogenerate Makefiles for building Qt.