Results 1 to 4 of 4

Thread: Visual Studios 2005 rebuild question

  1. #1
    Join Date
    Jan 2006
    Location
    Third rock from the sun
    Posts
    106
    Thanks
    17
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Visual Studios 2005 rebuild question

    I am fairly new to using Visual Studios 2005 and Qt, having spent most of my development with Qt on Linux. I am using the integrator but I am trying to move the GeneratedFiles\ moc files into a different directory other than the base directory. I have successfully done this, however every time I build or run the application, all the Qt files are re-moc'd and subsequently re-built. This takes a rather long amount of time and I know it was not occurring when the files were in the default directory structure Qt put them in. Is there something I am missing other than editing the properties for the headers to output to my new directory and pointing my include paths to this new directory? Like I said before, my application builds and runs correctly, it just has to completely re-build everything every time!

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

    Default Re: Visual Studios 2005 rebuild question

    You can probably tweak that somewhere in the VS configuration, but if you have a .pro file, you can use qmake's directives - OBJECTS_DIR, UI_DIR, RCC_DIR and MOC_DIR to point where those files should be generated. Then you can generate a Visual Studio project from the .pro file if you want one.

  3. #3
    Join Date
    Jan 2006
    Location
    Third rock from the sun
    Posts
    106
    Thanks
    17
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Visual Studios 2005 rebuild question

    Unfortunately I am not using a .pro file, just using VS to alter Qt areas.

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

    Default Re: Visual Studios 2005 rebuild question

    So use whatever means VS provides. Just be aware that you can create a VS project from a qmake one.

Similar Threads

  1. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 06:51
  2. Qt configure with msvc.net
    By jivanr in forum Installation and Deployment
    Replies: 1
    Last Post: 11th June 2007, 08:17
  3. Compile App using OpenGL and Visual Studios 2003
    By Rayven in forum General Programming
    Replies: 3
    Last Post: 26th April 2007, 15:43
  4. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  5. problem with linking
    By mickey in forum Qt Programming
    Replies: 49
    Last Post: 12th August 2006, 21: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
  •  
Qt is a trademark of The Qt Company.