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 custom build step problem
Forum Updated to NodeBB v4.3 + New Features

QtCreator custom build step problem

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
qtcreator
1 Posts 1 Posters 870 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
    gusa
    wrote on last edited by gusa
    #1

    Hello.
    I have Qt project in QtCreator on Ubuntu. I need to copy some files into build subdirectory after building my project, so I added some custom steps that create subdirectory and move files in it. The problem is that step with mkdir command fails if directory i'm creating already exists. I have not figured out how to do multiple shell commands in one custom step, so i decided to put them all in one shell script. But custom step, that tries to run my shell script gives an error: "Can't run process «/home/gusa/Programming/P-Art_Repos/master/UpdatingSystem/PostBuild.sh»". I tested my script outside of QtCreator and it works just fine. Can anybody tell me why QtCreator can't run my shell script as custom step?
    PostBuild.sh code:

    [ -d "mongo-cxx" ] && rm -rf "mongo-cxx"
    mkdir "mongo-cxx"
    cp -f ../../LIBRARIES/mongo-cxx/Linux/lib/*.so mongo-cxx/
    
    cp -f ../../LIBRARIES/mongo-cxx/Linux/bin/mongo UpdateServer/mongo.exe
    cp -f ../../LIBRARIES/mongo-cxx/Linux/bin/mongod UpdateServer/mongod.exe
    cp -f ../../LIBRARIES/mongo-cxx/Linux/bin/mongoexport UpdateServer/mongoexport.exe
    cp -f ../../LIBRARIES/mongo-cxx/Linux/bin/mongoimport UpdateServer/mongoimport.exe
    
    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