Results 1 to 4 of 4

Thread: VS add-in: _(QTDIR) instead of $(QTDIR)

  1. #1
    Join Date
    Mar 2009
    Posts
    19
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default VS add-in: _(QTDIR) instead of $(QTDIR)

    I just installed Qt 4.5.1 and the VS add-in. In Visual Studio, when I go to Qt>Open Qt Project File, the add-in output looks like this:

    --- (Import): Generating new project of tpsdkdialogsx_qt.pro file
    ...
    --- (qmake) : Arguments: -spec $(QTDIR)\mkspecs\win32-msvc2005 -tp vc "tpsdkdialogsx_qt.pro" -o "tpsdkdialogsx_qt.vcproj" QMAKE_INCDIR_QT=$(QTDIR)\include QMAKE_LIBDIR_QT= QMAKE_LIBDIR=$(QTDIR)\lib QMAKE_UIC=_(QTDIR)\bin\uic.exe QMAKE_MOC=_(QTDIR)\bin\moc.exe QMAKE_RCC=_(QTDIR)\bin\rcc.exe QMAKE_QMAKE=$(QTDIR)\bin\qmake.exe

    Notice the use of $(QTDIR) in some places and _(QTDIR) in others. When I build, I get an error like this:
    Qt Code:
    1. 1>'_' is not recognized as an internal or external command
    To copy to clipboard, switch view to plain text mode 
    If I open the vcproj file in a text editor and replace all instances of _(QTDIR) with $(QTDIR), the project builds as I expect.

    Does any one know what's going wrong?

  2. #2
    Join Date
    Mar 2008
    Location
    Houston, Texas, USA
    Posts
    277
    Thanks
    9
    Thanked 17 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: VS add-in: _(QTDIR) instead of $(QTDIR)

    You should file a bug report.
    Qt-4.7.3 | Gentoo ~amd64 | KDE-4.7
    Aki IRC Client for KDE4 | Qt Documentation

  3. #3
    Join Date
    Mar 2009
    Posts
    19
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: VS add-in: _(QTDIR) instead of $(QTDIR)

    Reverting to the VS add-in 1.0RC has fixed the issue for now. I'll go ahead and file a bug.

  4. #4
    Join Date
    Mar 2009
    Posts
    22
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: VS add-in: _(QTDIR) instead of $(QTDIR)

    I have experienced this problem too. After some try, I found a solution.

    Open *.vcproj with text editor after openening the project from *.pro.
    Find and replace all _(QTDIR) with $(QTDIR).

    Now it works.
    The bug added and fixed in 1.0.1 release but there is no downloadable file at that version.

    Huseyin

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.