Results 1 to 3 of 3

Thread: VS add on Error

  1. #1
    Join Date
    Sep 2010
    Posts
    13
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default VS add on Error

    When compiling a project using 1.1.17 of the VS add on I get the warning:
    "Build must be stopped before the project can be closed"

    Disabling the add on removes the warning.

    What I've found is that if the MocDirectory is ./Generated and the Rcc and Uic Directory are ./GeneratedFiles it will create this error condition. I made all the folder locations match and the problem went away.

    Something to ponder on a slow day....

  2. #2
    Join Date
    Sep 2010
    Posts
    13
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: VS add on Error

    Looks like I spoke too soon - the error message is back. Apparently if the project actually has to build, then there is no warning. However, if the project is up to date, the warning appears. It also appears that the project file is being saved (the time stamp changes), even though the project is up to date.

    This is with a solution with 6 interconnected projects (libraries, DLLs and executables).

    Disabling the add on still gets rid of the problem.

    This is only happening in one configuration of the build (the x86 CE6 build), while the other 2 configurations (ARM CE6 and Win32) have never shown the problem. I'm thinking there's some issue with my project or solution file I have yet to track down...

  3. #3
    Join Date
    Sep 2010
    Posts
    13
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: VS add on Error

    I've solved my VS add on problem. I'm building using a custom Qt build for a CE x86 device. When I compiled Qt, I entered the CE_ARCH as _X86_, which turns out is wrong. When I found the error, a co-worker I'm blaming everything on figured we could fool the Qt add on by just changing the value in the mkspec. turns out the add on is much smarter than us, and it was totally freaked out by some value it found in some file.

    I'm not sure where exactly the add on was finding the value, but the solution was just to rebuild Qt using the correct value and now it all appears to be working. the only issue I ran into was that I had changed the MOC dir to not use the \$(ConfigurationName)" at the end, and the add on would keep excluding the moc files. Apparently there is a requirement to separate the debug versus release versions of the moc_xxx files.

    All seems to be happy now, except for the fact that signal/slot performance sucks, for some reason - it makes the system very slow, but that's the subject for another thread...

Similar Threads

  1. no compile error, but error on run with QMenu QAction
    By sincnarf in forum Qt Programming
    Replies: 4
    Last Post: 4th May 2011, 11:05
  2. fatal error C1001: An internal error has occurred in the compiler
    By noodles in forum Installation and Deployment
    Replies: 0
    Last Post: 12th August 2010, 11:24
  3. Replies: 1
    Last Post: 25th October 2008, 19:18
  4. qTextEdit error - clipboard error
    By bruccutler in forum Qt Programming
    Replies: 1
    Last Post: 21st May 2007, 09:21
  5. ERROR:: QPainter: Internal error; no available GC
    By Krishnacins in forum Qt Programming
    Replies: 2
    Last Post: 8th March 2006, 06:05

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
  •  
Qt is a trademark of The Qt Company.