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. Automatically adding new external files.
Forum Updated to NodeBB v4.3 + New Features

Automatically adding new external files.

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
5 Posts 2 Posters 1.3k Views 2 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.
  • A Offline
    A Offline
    aluchko
    wrote on last edited by
    #1

    We're using Qt Creator to develop our project with our own build system.

    We keep the project files under version control, though they're often left out of updates, so when files get added/deleted via SVN, or manually copied within the project, there's often a cumbersome process whereby people need to go to File > Add External Files to get the new files to show up in the source tree.

    My current makeshift solution is that when my project.files gets out of sync I just use the following script, build-files.sh > project.files.

    #!/bin/bash
    
    find src -name *cc -o -name *hh
    find src -name *\.c -o -name *\.h
    find -L include -type d -o -print
    find python_src -name *py
    find -name -name Makefile -o -name \*java
    

    However this isn't the cleanest process since it requires manual intervention or a semi-frequent cron job. I thought about a slightly more complicated solution using inotify to run the script when the list of files got changed, but I was wondering if anyone else had encountered the same problem and found a proper solution? Is there a basic piece of Qt Creator that would fix this?

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

      Hi,

      What version of Qt are you using ?
      What version of Qt Creator are you using ?
      What Linux distribution are you running ?

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

      A 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        What version of Qt are you using ?
        What version of Qt Creator are you using ?
        What Linux distribution are you running ?

        A Offline
        A Offline
        aluchko
        wrote on last edited by
        #3

        @SGaist
        Qt Creator 3.0.1
        Based on Qt 5.5.1 (GCC 4.8.2 20140120 (Red Hat 4.8.2-16), 64 bit)
        CentOS Linux release 7.2.1511 (Core)

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

          Slightly out of date, current version of Qt Creator is 4.6. You should try that one.

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

          A 1 Reply Last reply
          0
          • SGaistS SGaist

            Slightly out of date, current version of Qt Creator is 4.6. You should try that one.

            A Offline
            A Offline
            aluchko
            wrote on last edited by
            #5

            @SGaist I updated to Qt Creator 4.1.0 (newest I can get without going external on CentOS 7.2)

            I go into my project, manually copy a source file outside of qtcreator, and Qt Creator doesn't see the new file or give any mechanism to automatically detect and add it.

            I can try looking for a 4.6 install but is this a piece of functionality that's supposed to exist in 4.6? I didn't see any mention of it when looking online.

            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