Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Howto build a sis file containing one exe and several plugin dlls?
Forum Updated to NodeBB v4.3 + New Features

Howto build a sis file containing one exe and several plugin dlls?

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 3.1k 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.
  • H Offline
    H Offline
    harbaum
    wrote on 28 Mar 2011, 18:11 last edited by
    #1

    Hi,

    i have an application which makes extensive use of plugins. This builds and runs just fine under Windows, Desktop Linux, MeeGo and Maemo5. But i really can't figure out how to include the plugins into the sis package on symbian.

    My directory tree roughly looks like this:

    program.pro
    src/src.prc
    src/<various source files>
    plugins/plugins.pro
    plugins/type1/type1.pro
    plugins/type1/<various source files>
    plugins/type2/type2.pro
    plugins/type2/<various source files>

    Which imho is exactly the way how things should look like.

    program.pro contains nothing but references to the subfolders:

    @
    TEMPLATE = subdirs
    SUBDIRS += src plugins
    @

    src.pro contains a symbian specific part to package the executable:

    @
    symbian {
    TARGET = program
    TARGET.CAPABILITY = Location NetworkServices
    }
    @

    the plugin.pro again only references the subdirs:

    @
    TEMPLATE = subdirs
    SUBDIRS += type1 type2
    @

    and finally the plugins itselfs pro files contain symbian specific parts to build successfully:

    @
    symbian {
    TARGET.EPOCALLOWDLLDATA = 1
    TARGET.CAPABILITY = ALL -TCB
    }
    @

    Now my big problem: Why is only my programs exe being put into the sis file? How can i also include my dlls?

    Further related questions:

    • Do i finally need seperate UID3's for each dll or should i be using the same for all of them or can i ignore them altogether if they are part of my sis and are never to be invoked externally?
    • Where is the right place to put my dlls under symbian so my main app finds them, but other apps won't use them accidentially?

    Thanks,
    Till

    1 Reply Last reply
    0
    • L Offline
      L Offline
      leon.anavi
      wrote on 28 Mar 2011, 19:19 last edited by
      #2

      Hi Till,

      Where is the right place to put my dlls under symbian so my main app finds them, but other apps won’t use them accidentially?

      Symbian OS provides directories that can only be accessed with certain privileges. Each application has a secured directory: \private<sid> where <sid> is the Secure ID of the application. This is the directory where an application can store sensitive data.

      For information on this topic please have a look at this article: http://wiki.forum.nokia.com/index.php/Platform_Security

      Best regards,
      Leon

      http://anavi.org/

      1 Reply Last reply
      0
      • H Offline
        H Offline
        harbaum
        wrote on 30 Mar 2011, 17:50 last edited by
        #3

        Thanks, but as long there's no real documentation on packaging complex qt projects for symbian (or it's hidden well enough), i am stuck before even having the chance to store my plugins in that location ...

        1 Reply Last reply
        0
        • L Offline
          L Offline
          leon.anavi
          wrote on 30 Mar 2011, 17:59 last edited by
          #4

          Hi,

          Please also take a look at the following links:
          http://library.forum.nokia.com/index.jsp?topic=/Qt_for_Symbian_Developers_Library/GUID-97A34C6E-9F2B-4743-86F8-563362F7047A_cover.html
          http://wiki.forum.nokia.com/index.php/Deploying_a_Qt_Application

          I believe that Add files to the installation section of article Developing a Qt Application may be useful in your case. In my opinion following the the given example you will be able to deploy several dll into a single package.

          BR, Leon

          http://anavi.org/

          1 Reply Last reply
          0
          • H Offline
            H Offline
            harbaum
            wrote on 30 Mar 2011, 19:43 last edited by
            #5

            Thanks!! That page gave me some hint and now my plugins are being loaded.

            One thing not mentioned on that page: If your project consists of several project files, you must place all DEPLOYMENT related statements in the same one, otherwise the build system tries to build seperate sis files for each of these project files and finally only the last one of these is returned by the remote compiler.

            Now i still have some problem with connecting a signal to the plugin, but that's another issue. Thanks so far ...

            1 Reply Last reply
            0

            1/5

            28 Mar 2011, 18:11

            • Login

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