Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Run and debug by bumblebee
Forum Updated to NodeBB v4.3 + New Features

Run and debug by bumblebee

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 3.9k 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.
  • A Offline
    A Offline
    Aryprogrammer
    wrote on last edited by
    #1

    Hi,
    My laptop is using Nvidia Optimus Technology and I have Ubuntu, if I want to use my nvidia gpu, I have to use bumblebee. so how can I run my program in Qt by bumblebee (when I want to run a program by bumblebee I use this command in Terminal "optirun my-program")

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mlong
      wrote on last edited by
      #2

      Are you asking how to launch a separate program via optirun from within your own Qt application? If so, then you'll use QProcess to launch optirun, with my-program as the first command line parameter passed to it.

      Software Engineer
      My views and opinions do not necessarily reflect those of anyone -- living or dead, real or fictional -- in this universe or any other similar multiverse node. Void where prohibited. Your mileage may vary. Caveat emptor.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Aryprogrammer
        wrote on last edited by
        #3

        No, I mean how can I debug my gpu program in Qt creator

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          Creator does not support bumblebee (whatever that is).

          You should be able to add a custom exectuable runconfiguration to creator (Projects->Run Settings) that can start whatever you want with whatever parameters. Debugging that will most likely not work through the bumblebee wrapper. You will need to use the normal run configuration set up for you by creator for that. Switching between runconfigs is pretty fast though (Ctrl-T, or click on the computer icon in the lower left area of creator).

          1 Reply Last reply
          0
          • S Offline
            S Offline
            sorenc
            wrote on last edited by
            #5

            Just adding to this old post as I had the same issue. Call qtcreator with "optirun qtreator" and debugging will work and you can get the correct context (ie use the nvidia hardware) - so do not call optirun again in your run time config - just once when spawning qtcreator. This worked for me with no additional changes to the qt config.

            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