QTCreator on Windows compiling MS Win libraries



  • Hi

    I have been using QtCreator on Linux and I now have a need to compile Window code using QtCreator.
    Part of the code uses Window libraries such as <mscoree.h>.

    Is there a way to use Windows libraries from QtCreator on Windows? Do I need to install some packages from Microsoft?
    Sorry for this newbie question. I like QtCreator and have been doing Linux but first endeavor in windows.

    thanks

    -Vincent


  • Moderators

    As far as I know, there's no quick and easy solution to compiling Windows code on Linux. While Qt is generally cross-platform at a code level, creator is not geared for out-of-the-box cross compilation between platforms.

    I'm sure that if someone has set up the windows toolchain for cross compilation then they will speak up, but I'm afraid that it's not an easy task. If someone can prove me wrong, I'd be happy to have them do so.



  • Apologies if this is a double post, but my browser seems to have become confused...

    With all due respect to mlong, I think Vincent is not asking about cross-compilation, but rather whether one can include headers and libs from Windows in a Qt Creator project. I can't imagine how that would not work, but of course you might expect problems if you tried to mix UI from MFC, say, with Qt... :-)

    While I much prefer Qt Creator to Visual Studio, I should point out that theres a Visual Studio "plugin-in" that allows for fairly easy use of Qt from within Visual Studio: http://qt.nokia.com/downloads/visual-studio-add-in .


  • Moderators

    Ah, yes. I missed the part where he said QtCreator on Windows. My deepest apologies.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.