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 Debugging: Start application with wrapper script
Forum Updated to NodeBB v4.3 + New Features

Qt Creator Debugging: Start application with wrapper script

Scheduled Pinned Locked Moved Qt Creator and other tools
6 Posts 2 Posters 2.2k 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.
  • S Offline
    S Offline
    Schmonz
    wrote on last edited by
    #1

    Hi,

    I am using Qt Creator on Fedora Linux 20. My application cannot be run directly, because I need to set up its environment first using a shell script. Consequently, I need to enter the location of the binary as well as the wrapper shell script in Qt Creator to be able to run and debug the application. Is that possible, and how do I do it?

    Thank you!

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

      Hi and welcome to devnet,

      If it's a matter of environment variable setup, you can do it in the Run part of the project panel

      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
      • S Offline
        S Offline
        Schmonz
        wrote on last edited by
        #3

        I need a chroot, actually.

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

          Are you calling

          @chroot myCoolApplication@

          ?

          If so, you can add a custom executable where you call chroot with your application as parameter

          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
          • S Offline
            S Offline
            Schmonz
            wrote on last edited by
            #5

            That works for running the app but not for debugging it, as Qt does not pass the right symbol file to gdb. Chroot admittedly is quite a rare use case, so it is no problem that Qt Creator does not support it. I think I will opt for something like GVim + Conque GDB for now. Thanks a lot for your help, though!

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

              You're welcome !

              Might be rare but could be an interesting feature. You should check the "bug report system":http://bugreports.qt-project.org to see if anything like that has already been talked about. If not consider opening a new Feature Request :)

              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

              • Login

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