I was busy solving the Qt FAQ How to cross-compile a Qt Creator project from Ubuntu to a windows executable?.
Operating system: Ubuntu 10.04 LTS Lucid Lynx
IDE: Qt Creator 2.0.0
Project type: console application
Libraries used:
- Qt: version 4.7.0 (32 bit)
- STL: from GCC, shipped with Qt Creator 2.0.0
#------------------------------------------------- # # Project created by QtCreator 2010-09-23T19:13:58 # #------------------------------------------------- QT += core QT -= gui TARGET = CppQtCrosscompileToWindowsExample1 CONFIG += console CONFIG -= app_bundle TEMPLATE = app SOURCES += main.cpp #Set the C compiler to the mingw32 C compiler QMAKE_CC = i586-mingw32msvc-gcc #Set the C++ compiler to the mingw32 C++ compiler QMAKE_CXX = i586-mingw32msvc-g++
#include <iostream> int main() { std::cout << "I am developed under Unbuntu, " "and I will run under Windows\n"; }
Unknown