Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. qmake: SOURCE-File which exists is not found
Forum Updated to NodeBB v4.3 + New Features

qmake: SOURCE-File which exists is not found

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
3 Posts 2 Posters 530 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    topse
    wrote on last edited by topse
    #1

    Hi,
    I have a problem with a source-file:

    # works:
    SOURCES += C:\Qt\5.11.2\msvc2017_64\../Src/qtbase/src/3rdparty/sqlite/sqlite3.c
    
    #works not:
    SOURCES += $(QTDIR)\../Src/qtbase/src/3rdparty/sqlite/sqlite3.c
    
    #error-message: WARNING: Failure to find: Src\qtbase\src\3rdparty\sqlite\sqlite3.c
    #inspite of the error Qt Creator shows file in tree
    

    I double checked... Environment QTDIR = C:\Qt\5.11.2\msvc2017_64

    Can anyone help?

    Thanks and Best Regards,
    Tobias

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Wrong syntax. Use $$(QTDIR) as explained in qmake documentation:

      To obtain the contents of an environment value when qmake is run, use the $$(...) operator:
      

      http://doc.qt.io/qt-5/qmake-language.html

      (Z(:^

      1 Reply Last reply
      2
      • T Offline
        T Offline
        topse
        wrote on last edited by
        #3

        Thanks -- I had a bad feeling it would be easy...

        Best Regards,
        Tobias

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved