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. QtCreator shell script project
Forum Updated to NodeBB v4.3 + New Features

QtCreator shell script project

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 3 Posters 5.8k 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
    talmage
    wrote on last edited by
    #1

    I'm looking for a way to include a directory of Linux shell scripts in a subdirs project. Is that possible?

    I can create an empty Qt project and add my scripts to it. Then the build fails because QtCreator insists on running make. Make fails because the linking fails. There isn't anything to build!

    I can import an existing project. Then QtCreator won't add it to my subdirs project. Instead, it's a separate project.

    I've searched this site and and the rest of the Web. I can't believe that I'm the first person to do this, yet I can't find anyone else's wisdom on this topic.

    1 Reply Last reply
    0
    • D Offline
      D Offline
      Duck
      wrote on last edited by
      #2

      You failed to add some reasoning why you want to add shell scripts as a sub-project, and what you expect from "building" suich a shell script sub-project.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        Thanatos.jsse
        wrote on last edited by
        #3

        Sometimes I add shell scripts using qmake (only for visualization, on my project):

        @OTHER_FILES += share/scripts/shell/*.sh@

        BR,

        1 Reply Last reply
        0
        • T Offline
          T Offline
          talmage
          wrote on last edited by
          #4

          [quote author="Duck" date="1346104365"]You failed to add some reasoning why you want to add shell scripts as a sub-project, and what you expect from "building" suich a shell script sub-project.[/quote]

          Does it matter? I'll tell you, since you asked. It didn't occur to me that the reason might be important.

          Some of the apps in my subdirs project are command line apps. I have some shell scripts that invoke them, either individually, or in a pipeline. Mostly, this is for testing, although many of the shells scripts are useful in their own right. All of the scripts are related. If I keep using this project, I will probably refactor most of the scripts. It makes sense to me to keep them together as a subordinate project of my main project.

          For now, I've added the scripts to the .pro file of one of the other subordinate projects. It's not what I wanted but it does the job. I did it like this:

          @
          scripts.path = /opt/myproject/bin
          scripts.files = ../scripts/*.sh

          INSTALLS += scripts
          @

          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