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. Qt Creator Not Recognizing New Project Build Directory

Qt Creator Not Recognizing New Project Build Directory

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
5 Posts 2 Posters 1.1k 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.
  • C Offline
    C Offline
    Crag_Hack
    wrote on last edited by Crag_Hack
    #1

    I'm having a silly problem with Qt Creator. It doesn't let me change the default Working Directory for my project. I moved the project to a new location which caused the problem. I can change the working directory under Projects --> Run however it won't change the default. If I select shadow build it uses the old working directory. When I build I get:

    The build directory needs to be at the same level as the source directory.
    

    I renamed some of the extra files sitting around to loghelper.pro.userold file, loghelper.pro.user.3.0-pre1old, loghelper.pro.user.3.2-pre1old, loghelper.pro.user.627e749old and all 3 Makefiles to old as well hoping to force a rebuild of whatever component was using the old working directory but with no success.

    Also I did Run qmake and Clean Project as well.

    Any ideas? Thanks!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      IIRC, that's just a warning.

      Can you share your .pro file ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Crag_Hack
        wrote on last edited by Crag_Hack
        #3

        Thanks. Sure he goes. Also I get

        LNK1181: cannot open input file 'release\main.obj'
        
        #-------------------------------------------------
        #
        # Project created by QtCreator 2013-11-14T14:26:53
        #
        #-------------------------------------------------
        
        QT       += core gui
        QT       += network
        
        greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
        
        TARGET = loghelper
        TEMPLATE = app
        
        INCLUDEPATH += "C:\OpenSSL-Win32\include"
        
        LIBS += -LC:\OpenSSL-Win32\lib -llibeay32 -lssleay32
        
        SOURCES += main.cpp\
                loghelper.cpp \
            logentry.cpp \
            clicklabel.cpp \
            slentry.cpp
        
        HEADERS  += loghelper.h \
            logentry.h \
            clicklabel.h \
            slentry.h
        
        CONFIG += static
        
        CONFIG += release
        
        1 Reply Last reply
        0
        • C Offline
          C Offline
          Crag_Hack
          wrote on last edited by
          #4

          And this is somewhat just a nuisance I can set the build directory manually just wondering why Qt Creator doesn't play nice with the shadow build option after resetting the working directory.

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Crag_Hack
            wrote on last edited by Crag_Hack
            #5

            Solved the problem! The default working directory is the working directory as of the last time you closed the project (maybe save not sure). So I set the working directory to the new one by unchecking shadow build, closed the project, then re-opened it and the default shadow build working directory was updated. Now clicking shadow build works again. Somewhat unintuitive but oh well.

            1 Reply Last reply
            1

            • Login

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