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. ..need to set execuatable ... error after clonning

..need to set execuatable ... error after clonning

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

    I have cloned "btscanner" (6.5. x example) and build a clone project.
    The result is "QTConnectivity(dev) and NOT btscanner project (x . pro) - as expected.

    Then I get this error

    3def9c50-1607-4fe8-9d84-2a1f619492a1-image.png

    1. How /where I set what is executable ?
    2. What is "custom run configuration" ?
    3. What does[dev] means? - ( can I convert that to .pro ?)
      4 , I was cloning btscaner.pro NOT QTConnectivity
    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by Chris Kawa
      #2

      When you build or run in QtCreator it builds or runs the active project. You can have multiple projects opened (like you do in the screenshot) but only one can be active.

      To run a project it needs to have an executable. A library project does not produce an executable, it produces a shared or static library, that can be used by other projects.

      In your screenshot you have "QtConnectivity [dev]" project set as active. It's marked with bold font on the project list. QtConnectivity is a library project, so you can't run it. If you have an executable that will load that library then you can set it in the project configuration, but I'm guessing that's not what you want to do here.

      To run the executable produced by one of the "btscanner" projects you need to set that project as active. To do that right click on the project name and select Set "btscanner" as Active Project.

      To answer your questions:

      How /where I set what is executable ?

      If active project produces an executable file you don't have to set anything. It just builds and runs that executable.
      If active project produces a library you can set an executable that will be used to run this project by clicking on the Projects icon (left side of QtCreator), selecting Run in the left panel and then setting a path to executable in the properties on the right. But again - that's not what you want to do here.

      What is "custom run configuration" ?

      It's all the settings needed to determine what happens when you click run - kit used to build project, executable path and parameters, working directory, system environment variables, debugging and deployment settings etc. This is all set up in the Projects tab of QtCreator. Usually you don't need to touch anything there.

      What does[dev] means? - ( can I convert that to .pro ?)

      That [dev] is just part of the directory name your project is in. There's nothing to convert. You can rename the directory if you want. You probably cloned a development branch of the QtConnectivity repository, so it landed in a directory named this way to mark that it's not the official release branch.
      .pro is a format of the build system qmake. This project does not use qmake. It uses CMake, so it has no .pro file. It has a CMakeLists.txt file that serves similar role. If you open it you can modify various project settings, like in a .pro file.

      I was cloning btscaner.pro NOT QTConnectivity

      You seem to have multiple clones of multiple projects opened at the same time. It's quite confusing. My suggestion would be to close the ones you don't currently use (right click on the project and choose close option). To work with the btscanner project make it the active one as I described above. Since you have multiple projects named the same you have to figure out which is which. You can do that by hovering mouse over the project name. It will show you the path in a tooltip.

      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