Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [Moved] include executable in the project
Forum Update on Monday, May 27th 2025

[Moved] include executable in the project

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 3 Posters 2.6k 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.
  • L Offline
    L Offline
    luca72
    wrote on last edited by
    #1

    Hello i'm under mac, how can i include executable files in my project

    thanks

    Luca

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      Are we talking about deployment here? Or are we talking about starting external processes? Are we talking about adding additional compilers to qmake projects?

      A bit more information would be useful.

      1 Reply Last reply
      0
      • L Offline
        L Offline
        luca72
        wrote on last edited by
        #3

        in my program i use growisofs with QProcess, i need to include it in my executable.
        How i can do it?

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lgeyer
          wrote on last edited by
          #4

          The only Qt-ish way I can think of is packing the executable as a resource and extract it on first use. Another possibility would be to directly link growisofs if going GPL is an option for you.

          Besides from that this is a standard deployment question. Follow the tag on the right side to get further information.

          1 Reply Last reply
          0
          • G Offline
            G Offline
            goetz
            wrote on last edited by
            #5

            [I moved the thread to the Installation/Deployment subforum.]

            You should add the growisofs utility into the application bundle of your application.

            Have a look at the "How to add resource files to an OS X application bundle":http://developer.qt.nokia.com/wiki/Resource_files_in_OS_X_bundle wiki article and adapt the path in the bundle. Usually the directory MyProgramm.app/Contents/MacOS is a good place. Also make sure that additional libraries (if needed) are also copied to the bundle.

            To call the utility from your application use the following snippet:

            @
            QString growisofsPath = QCoreApplication::applicationDirPath() + "/growisofs";
            QProcess grow;
            grow.start(growisofsPath, args);
            @

            http://www.catb.org/~esr/faqs/smart-questions.html

            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