Results 1 to 14 of 14

Thread: Compile Qtcreator with mingw ?

  1. #1
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Compile Qtcreator with mingw ?

    I have finally discovered that if I want to use custom widgets I must to compile QTcreator with Mingw.
    Anyone can give some indications ?
    I have downloaded de source from QT, but I dont know how to do.
    Must I open qtcreator.pro and compile it ?
    Thanks

  2. #2
    Join Date
    Jun 2010
    Location
    Salatiga, Indonesia
    Posts
    160
    Thanks
    11
    Thanked 32 Times in 29 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    1

    Default Re: Compile Qtcreator with mingw ?

    Open "Qt Command Prompt" and change directory to Qt Creator source directory.
    Then execute :
    > qmake
    > mingw32-make release

  3. #3
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compile Qtcreator with mingw ?

    After (I suppose) finished the work, I have explored the main folder and see some files and subfolders that has been created.
    Where is the new Qtcreator ? how many folders I need ? What folders at the original QT I must rewrite ?
    If I run the new QTCreator.exe (located at \bin
    Failed to load core \lib\qtcreator\plugins\Nokia\Core.dll >> Not find ?
    ( And this file really exists )
    I'm completely lost...

  4. #4
    Join Date
    Jun 2010
    Location
    Salatiga, Indonesia
    Posts
    160
    Thanks
    11
    Thanked 32 Times in 29 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    1

    Default Re: Compile Qtcreator with mingw ?

    Maybe, there is conflict with other Qt Creator. BTW, did you run 'mingw32-make clean'?

  5. #5
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compile Qtcreator with mingw ?

    mmmmmm
    I'm going to do all again.
    But, Why QT people compile qt creator with msvc and Qt designer with mingw ?????

  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: Compile Qtcreator with mingw ?

    Quote Originally Posted by tonnot View Post
    After (I suppose) finished the work, I have explored the main folder and see some files and subfolders that has been created.
    Where is the new Qtcreator ? how many folders I need ? What folders at the original QT I must rewrite ?
    If I run the new QTCreator.exe (located at \bin
    Failed to load core \lib\qtcreator\plugins\Nokia\Core.dll >> Not find ?
    ( And this file really exists )
    I'm completely lost...
    Set the INSTALL_ROOT environment variable to the directory where you want to install Creator to (like C:\QtCreator_2.1) and run mingw32-make install.

    Quote Originally Posted by tonnot View Post
    But, Why QT people compile qt creator with msvc and Qt designer with mingw ?????
    Because Designer is part of Qt release (which is compiled with MinGW) and Creator is part of the "Qt Creator" release which is built with msvc. Glued together this gives "Qt SDK".
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  7. #7
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compile Qtcreator with mingw ?

    Can be so :

    qmake
    mingw32-make release install

    And,
    1.- If I set INSTALL_ROOT, how it can affect to QT operation?
    2.- Anyway to indicate this place to mingw32 install command ?
    (mingw32-make release install:"c:\qtcreator")


    Wysota, first thanks for the answer. I dont understand your explanation about the compilers used. Would not it be better than the two will use the same compiler?
    Thanks.

  8. #8
    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: Compile Qtcreator with mingw ?

    Quote Originally Posted by tonnot View Post
    Can be so :

    qmake
    mingw32-make release install
    This is immediately incorrect. Unless of course you set INSTALL_ROOT prior to running qmake.

    And,
    1.- If I set INSTALL_ROOT, how it can affect to QT operation?
    I have no idea what you mean.

    2.- Anyway to indicate this place to mingw32 install command ?
    (mingw32-make release install:"c:\qtcreator")
    Read my previous post again.

    Would not it be better than the two will use the same compiler?
    If they feel more comfortable with msvc then why shouldn't they be using it? What's the difference which compiler they use?
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  9. #9
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compile Qtcreator with mingw ?

    I have search 'INSTALL_ROOT' at google. At the moment I dont know if this variable is used by QT or Mingw.
    At QT Help the only link I can to find is : Installing Qt on Embedded Linux
    So, I think that I can set the variable for this work (compile Qt Creator) and forget it , isn't ?

    If they feel more comfortable with msvc then why shouldn't they be using it? What's the difference which compiler they use?
    Because if I'm going to develop a custom widget with plugin aproach, If I have QT Creator (MSVC) , and build my plugin using mingw... (I have not MSVC of course).
    I think the most of people uses one 'system' : all based in MSVC or Mingw, isn't ? So it would be interesting that QT offer a mingw or msvc based bin distribution ...
    Last edited by tonnot; 3rd November 2010 at 18:22.

  10. #10
    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: Compile Qtcreator with mingw ?

    Quote Originally Posted by tonnot View Post
    I have search 'INSTALL_ROOT' at google. At the moment I dont know if this variable is used by QT or Mingw.
    Let me repeat myself:
    Set the INSTALL_ROOT environment variable to the directory where you want to install Creator to (like C:\QtCreator_2.1). In doubt open the Makefile and analyze it yourself.

    Since you wanted to be treated as a mature developer I'm sure you know what environment variables are and how to use them.

    Because if I'm going to develop a custom widget with plugin aproach, If I have QT Creator (MSVC) , and build my plugin using mingw... (I have not MSVC of course).
    I think the most of people uses one 'system' : all based in MSVC or Mingw, isn't ?
    So you say Qt Creator should be built with MinGW so that people using MinGW wouldn't have to rebuild it but instead people using MSVC or any other supported compiler would, is that correct? So what's the difference?

    By the way, you already have Qt built for MSVC if you install Qt SDK, since Creator needs it so it is provided in the installation package. Or you can download it separately and build the things you need with MSVC Express. Choose the approach you find most appropriate.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  11. #11
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compile Qtcreator with mingw ?

    But... (And I consider closed this post) I think that if you have QTcreator (MSVC) and build a widget plugin with msvc you can not use it with QT designer .
    So the cuestion is everybody must to build something.... ?

  12. #12
    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: Compile Qtcreator with mingw ?

    Quote Originally Posted by tonnot View Post
    I think that if you have QTcreator (MSVC) and build a widget plugin with msvc you can not use it with QT designer .
    So the cuestion is everybody must to build something.... ?
    To be honest, I don't know. I use the bleeding-edge version of Creator anyway, so I have everything built myself with one compiler (on Linux) unless I only need the basic functionality of the sdk (on Windows) where I don't use Designer at all (unless I'm testing whether wwWidgets work but then I don't need Creator). There always comes a moment when you need to grow beyond the rigid and minimalistic cage provided by the default setup of practically anything.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  13. #13
    Join Date
    Sep 2010
    Posts
    654
    Thanks
    56
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Compile Qtcreator with mingw ?

    Sorry, but I keep on getting nothing....
    I have a .bat (placed at the qtcreator source - at my d: drive) with this content :

    SET INSTALL_ROOT = d:\QT2
    qmake
    mingw32-make release install

    I run this bat ... and there is no d:\QT2
    Please, any tutorial ?

  14. #14
    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: Compile Qtcreator with mingw ?

    Quote Originally Posted by tonnot View Post
    Please, any tutorial ?
    http://www.google.com/search?q=setti...les+on+windows
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. compile todo plugin in qtcreator
    By kabanek in forum Installation and Deployment
    Replies: 12
    Last Post: 31st December 2010, 12:12
  2. Replies: 15
    Last Post: 24th October 2010, 15:29
  3. QtCreator won't compile using VS2005
    By Spinz99 in forum Installation and Deployment
    Replies: 0
    Last Post: 3rd April 2009, 23:25
  4. using GLUT along with qtcreator/mingw in windows
    By stephanepoirier in forum Qt Programming
    Replies: 1
    Last Post: 3rd March 2009, 05:26
  5. compile with minGW ??
    By eric in forum Qt Programming
    Replies: 4
    Last Post: 8th November 2007, 00:41

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.