Results 1 to 3 of 3

Thread: Migrating from Visual Studio to Qt Creator

  1. #1
    Join Date
    May 2010
    Posts
    11
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Question Migrating from Visual Studio to Qt Creator

    Hi

    I have a modified version of the OGRE library that I would like to use in a QT project. However this OGRE library was previously compiled using Visual Studio Express 2008 and my QT project was build with the QT Creator using the MinGW compiler that came with it. Obviously I need to migrate my OGRE project to QT by recompiling it using the same compiler.

    With OGRE comes a CMake setup that supports MinGW however I get lots of errors when I try to "configure" OGRE with it. I think it cannot find the MinGW compiler.

    Are there any special environment variables that I should set or something that I should do to make it possible to compile non-QT projects with QT Creator (MinGW)?

    Or should I download and install the MinGW compiler separately from QT and configure the QT Creator to use that instead of the one that comes with QT? I do not want to break my QT installation.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Migrating from Visual Studio to Qt Creator

    If you have the Qt SDK and its bundled MingW environment then you should find a "Qt Command Prompt" option in your Windows start menu. This sets the environment to find and build with MingW. Alternately, the \Qt\2010.02.1\bin\qtenv.bat file will do the equivalent. Both approaches leave you with a minimal PATH and environment that you might/will need to add to.

    You could also build a copy of Qt and your project with the MSVC compilers to align with OGRE.

  3. The following user says thank you to ChrisW67 for this useful post:

    cass (25th June 2010)

  4. #3
    Join Date
    May 2010
    Posts
    11
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Migrating from Visual Studio to Qt Creator

    Thank you. It worked! OGRE runs fine now inside QT however the 3rd party plugins OGRE uses are not happy with Mingw. I think I will try your second suggestion.

Similar Threads

  1. Using visual studio add in
    By Leolander in forum Newbie
    Replies: 1
    Last Post: 17th February 2010, 07:46
  2. Qt Creator or Visual Studio
    By N3wb in forum Newbie
    Replies: 6
    Last Post: 13th August 2009, 11:02
  3. Visual Studio Add-in
    By dima in forum Installation and Deployment
    Replies: 3
    Last Post: 5th August 2009, 06:36
  4. QT Add-in for Visual Studio
    By justso1 in forum Newbie
    Replies: 13
    Last Post: 15th June 2009, 14:09
  5. Visual Studio .NET & QT
    By fruzzo in forum Installation and Deployment
    Replies: 6
    Last Post: 3rd December 2007, 21:00

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.