Results 1 to 2 of 2

Thread: Environment variable in vs2012 for Qt5

  1. #1
    Join Date
    Nov 2009
    Location
    US, Midwest
    Posts
    215
    Thanks
    62
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Environment variable in vs2012 for Qt5

    I started to port my existing vs2010/Qt4 projects to vs2012/Qt5 (Qt AddOn is not installed in vs2012)

    I am having a strange problem with vs2012 in CustomBuld\General\CommandLine option - it does not recognize command $(QTDIR)\bin\moc.exe. I am getting "The system cannot find the path specified." error
    When I replace $(QTDIR) with actual path it works. QTDIR is defined as c:\Libraries\Qt\qt-5\qtbase
    So, c:\Libraries\Qt\qt-5\qtbase\bin\moc.exe works, but $(QTDIR)\bin\moc.exe does not.

    Then I started to examine the source code and found out that IDE no longer finds Qt includes, like #include <QObject>. "Additional include directories" have $(QTDIR)\include in there. Something is with QTDIR, but I can' figure out what it could be?

    What might be the problem?
    Last edited by TorAn; 17th March 2013 at 05:28.

  2. #2
    Join Date
    Nov 2009
    Location
    US, Midwest
    Posts
    215
    Thanks
    62
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Environment variable in vs2012 for Qt5

    Well, the problem is solved, sort of. There is no problem with environment variables, rather it is a problem with a file that is apparently created by Qt add-on to visual studio, Qt4VSPropertySheet.props. It contained my variable with the "old" path.

Similar Threads

  1. Build qt 4.8.3 with openssl with VS2012
    By Edder in forum Installation and Deployment
    Replies: 1
    Last Post: 12th December 2012, 19:08
  2. Qt Creator PATH Environment Variable
    By dohzer in forum Qt Tools
    Replies: 3
    Last Post: 4th December 2010, 07:50
  3. does qt 4.5.1 have the app environment like qpe?
    By alexcuiCN in forum Installation and Deployment
    Replies: 0
    Last Post: 6th May 2009, 11:21
  4. System environment variable
    By fahlen in forum Qt Programming
    Replies: 4
    Last Post: 27th November 2007, 20:02
  5. Environment variable
    By Pragya in forum Qt Programming
    Replies: 2
    Last Post: 25th May 2007, 14:02

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.