Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Environment Variables
QtWS25 Last Chance

Environment Variables

Scheduled Pinned Locked Moved General and Desktop
18 Posts 5 Posters 9.7k Views
  • 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.
  • G Offline
    G Offline
    goetz
    wrote on last edited by
    #9

    Just do a

    @
    find . -type f -print0 | xargs -0 grep MY_AAB_DIRECTORY
    @

    in the source directory. It will show you all the occurrences of the string MY_AAB_DIRECTORY, if any. This will work on any Unix/Linux/Mac and with MinGW on Windows.

    http://www.catb.org/~esr/faqs/smart-questions.html

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #10

      I just hit CTRL+SHIFT+F in Qt Creator to do the same :-)

      1 Reply Last reply
      0
      • G Offline
        G Offline
        goetz
        wrote on last edited by
        #11

        [quote author="Andre" date="1330597667"]I just hit CTRL+SHIFT+F in Qt Creator to do the same :-)[/quote]

        That's only half the fun :)

        http://www.catb.org/~esr/faqs/smart-questions.html

        1 Reply Last reply
        0
        • A Offline
          A Offline
          Arukas
          wrote on last edited by
          #12

          I had already did the CTRL+SHIFT+F in Qt Creator, before I posted.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #13

            Sorry, I have not a single clue, what's going wrong here. The description is too vague and without looking at the actual project, I doubt that we can get any further here.

            http://www.catb.org/~esr/faqs/smart-questions.html

            1 Reply Last reply
            0
            • A Offline
              A Offline
              Arukas
              wrote on last edited by
              #14

              Let me give you a clearer picture:

              I have one project with just one file in it, the project file itself. There are only two lines in this project file, and I delete them. (Not: these two lines did not contain anything about the environment variable) I save the changes, I then clean all. There is now nothing in the project file and only this project file is loaded. I either do a qmake or build all, I get that error about my environmental variable not being found, on an empty project file.

              So if you imagine a blank and empty project giving me MY_AAB_DIRECTORY environment variable, you have an accurate picture.

              -Arukas

              1 Reply Last reply
              0
              • G Offline
                G Offline
                goetz
                wrote on last edited by
                #15

                How is an empty project file supposed to do any reasonable work?

                http://www.catb.org/~esr/faqs/smart-questions.html

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  Arukas
                  wrote on last edited by
                  #16

                  That not my point. Your concern was you needed to see the project, and I'm pointing out there's nothing to see, literally. Qmake shouldn't give errors on empty project files about environment variables. I gave it a try Qmake does nothing on an empty file. I can also reproduce the same errors by deleting the entire contents of another project in the source folder.

                  I should of mention earlier, when I get the error and click on it, it says "file not found". So its looking for something that's not there, and I don't know why its looking for it in the first place.

                  -Thanks
                  Arukas

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    goetz
                    wrote on last edited by
                    #17

                    qmake moans on an empty test.pro - because it wants to link something (the app name is based on some default logic if there's no TARGET explicitly set). So no, qmake is not quiet on an empty project file.

                    So, maybe you want to post the complete build log of that empty project. I doubt that anyone can imagine what's going on here.

                    http://www.catb.org/~esr/faqs/smart-questions.html

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      Arukas
                      wrote on last edited by
                      #18

                      Where's this build file?

                      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