Results 1 to 6 of 6

Thread: Using Qt Creator under Wine in Linux?

  1. #1
    Join Date
    Mar 2010
    Posts
    10
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Using Qt Creator under Wine in Linux?

    Hi,

    Has anybody had any success in using Qt Creator through Wine in Linux? I thought that I might be able to cross-compile simple programs for windows this way....

    I can install Qt Creator and Qt4 for Windows in Wine, but Qt Creator does not run (it complains about missing lots of DLLs)

    Any thoughts would be welcome.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Using Qt Creator under Wine in Linux?

    Running Qt Creator under wine will not help you in any way. You either need to run a compiler (such as MinGW) under wine or you need a full cross-compiler toolchain for the specific platform (i.e. by building MinGW for Linux). Qt Creator is just a text editor. Of course you'll need Qt libs built for the target platform too.

  3. #3
    Join Date
    Mar 2010
    Posts
    10
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Using Qt Creator under Wine in Linux?

    Sorry, my previous statement was perhaps a little ambiguous. I download and installed the whole Qt SDK for Windows (under Wine), which has MinGW and Qt libs bundled in it as well. Do you think that will work? (Obviously, with the caveat that I have to get it to run first!)

    I'm just being lazy really, I thought that this might be a relatively simple way to build small executables for Windows under Linux. I had a brief look at MinGW cross-compiling for Windows in Linux, but it looked like a lot of new things to learn!

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Using Qt Creator under Wine in Linux?

    Quote Originally Posted by kevinchannon View Post
    Sorry, my previous statement was perhaps a little ambiguous. I download and installed the whole Qt SDK for Windows (under Wine), which has MinGW and Qt libs bundled in it as well. Do you think that will work? (Obviously, with the caveat that I have to get it to run first!)
    My answer still stands - you can use the Creator version for Linux and make it run a compiler that will produce code for Windows.

    I'm just being lazy really, I thought that this might be a relatively simple way to build small executables for Windows under Linux. I had a brief look at MinGW cross-compiling for Windows in Linux, but it looked like a lot of new things to learn!
    It's certainly better to build MinGW for Linux, at least you will be sure it would work correctly. I doubt wine would be able to serve all the tools and libs required for compilation - but who knows... maybe it can

  5. #5
    Join Date
    Mar 2010
    Posts
    10
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Using Qt Creator under Wine in Linux?

    Quote Originally Posted by wysota View Post
    My answer still stands - you can use the Creator version for Linux and make it run a compiler that will produce code for Windows.
    Do you know if there a way that can be specified within Creator itself? Or would it involve editing the Makefile directly?

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Using Qt Creator under Wine in Linux?

    You can set it in Creator. You need to do two things - first instruct qmake to generate a makefile for a proper platform by passing an appropriate command line option to it and then make sure the proper compiler is in the path where it can be found by the makefile generated.

Similar Threads

  1. Using git with qt creator
    By dreamh4k in forum Qt Programming
    Replies: 1
    Last Post: 29th June 2010, 00:18
  2. linux-ipaq-g++ Vs linux-arm-g++
    By alejo in forum Installation and Deployment
    Replies: 0
    Last Post: 22nd February 2010, 00:23
  3. QT Creator
    By vinod sharma in forum Qt Tools
    Replies: 2
    Last Post: 22nd January 2010, 08:34
  4. Qt Creator
    By fnmblot in forum General Discussion
    Replies: 3
    Last Post: 12th April 2009, 08:06
  5. QODBC on Wine LINUX not connect
    By patrik08 in forum Qt Programming
    Replies: 3
    Last Post: 2nd May 2007, 13:42

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.