Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Special Interest Groups
  3. Qt on BlackBerry and QNX
  4. Can't create bar file - Error preparing application descriptor file

Can't create bar file - Error preparing application descriptor file

Scheduled Pinned Locked Moved Qt on BlackBerry and QNX
13 Posts 2 Posters 6.7k 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.
  • D Offline
    D Offline
    daliusd
    wrote on 10 Jan 2013, 11:17 last edited by
    #4

    It looks like some lines are missing your file and I think they are important (not sure). I would recommend running package building from command line: http://qt-project.org/wiki/Qt-Creator-with-BlackBerry-10#97454c0726341cf8ad42e1e97a316b2e . I believe you will get more detailed error message than you see now (I hope).

    On unrelated note: do not use autoOrients since there is bug in NDK (see http://qt-project.org/forums/viewthread/22712/).

    @<?xml version='1.0' encoding='utf-8' standalone='no'?>
    <qnx >
    <id>com.example.czc</id>
    <name>zczcz</name>
    <versionNumber>1.0.0</versionNumber>
    <description>zcxcxzc</description>
    <initialWindow>
    <systemChrome>none</systemChrome>
    <transparent>false</transparent>
    <!--
    XXX: Do not use while auto-orientation not fixed
    <autoOrients>true</autoOrients>
    <aspectRatio>landscape</aspectRatio>
    -->
    <autoOrients>false</autoOrients>
    <aspectRatio>portrait</aspectRatio>
    </initialWindow>
    <env value="app/native/imports" var="QML_IMPORT_PATH">
    <env value="app/native/plugins:/usr/lib/qt4/plugins" var="QT_PLUGIN_PATH">
    <env value="app/native/lib:/usr/lib/qt4/lib/" var="LD_LIBRARY_PATH">

    &lt;!-- These are missing in your file --&gt;
    <arg>-platform</arg>
    <arg>blackberry</arg>
    <author>zczczc</author>
    <authorId>gY</authorId>
    
    <action system="true">run_native</action>
    <asset path="untitled" type="Qnx/Elf" entry="true">untitled</asset>
    <asset path="%SRC_DIR%/qml">qml</asset>
    

    </qnx>
    @

    1 Reply Last reply
    0
    • B Offline
      B Offline
      borceg
      wrote on 10 Jan 2013, 11:33 last edited by
      #5

      Even with these missing arguments it doesn't even start creating bar package. I looked at QtCreator source and this error leads to null value returned for qtVersion variable. Something is wrong with the kit. I forgot to mention that I'm using latest Gold NDK

      @bool BlackBerryCreatePackageStep::prepareAppDescriptorFile(const QString &appDescriptorPath, QTemporaryFile *preparedFile)
      173
      {
      174
      BlackBerryQtVersion *qtVersion = dynamic_cast<BlackBerryQtVersion *>(QtSupport::QtKitInformation::qtVersion(target()->kit()));
      175
      if (!qtVersion) {
      176
      raiseError(tr("Error preparing application descriptor file"));
      177
      return false;
      178
      }@

      1 Reply Last reply
      0
      • D Offline
        D Offline
        daliusd
        wrote on 10 Jan 2013, 11:38 last edited by
        #6

        I'm using Gold Native SDK as well (I'm working under Ubuntu). Maybe your installation is corrupt, maybe you have Qt installed on system and that conflicted somehow with Blackberry Qt (while I guess you would end up having problems earlier)? As I have said try building package from command line if compilation works without problems.

        1 Reply Last reply
        0
        • B Offline
          B Offline
          borceg
          wrote on 10 Jan 2013, 12:07 last edited by
          #7

          Gold NDK is not corrupted for sure, I'm working with Momentics without problem. I tried with other kit 4.8.3 for PlayBook and packaging works.

          @QtSupport::QtKitInformation::qtVersion(target()->kit()@ returns null for Gold NDK kit, but I don't know why, everything is set-up by following the guide.

          1 Reply Last reply
          0
          • D Offline
            D Offline
            daliusd
            wrote on 10 Jan 2013, 12:19 last edited by
            #8

            I would still not reject installation problem - if some parts are working that might happen simply because they are not corrupted. I personally don't have problems neither building from command line nor from QtCreator so I really doubt that there is problem.

            It looks like QtSupport::QtKitInformation is QtCreator part so building from command line could be temporary workaround until you figure out where the problem is. As well if building from command line will fail for you that will indicate that problem is not in QtCreator (and your QtCreator configuration).

            1 Reply Last reply
            0
            • D Offline
              D Offline
              daliusd
              wrote on 10 Jan 2013, 12:28 last edited by
              #9

              Maybe your Kit in Qt Creator is not configured properly and that's all: http://qt-project.org/wiki/Qt-Creator-with-BlackBerry-10#aeb0c0416dc24c861ae55212ae19338b

              1 Reply Last reply
              0
              • B Offline
                B Offline
                borceg
                wrote on 10 Jan 2013, 12:38 last edited by
                #10

                Probably qtversion tab is causing problems, because as stated in the guide it has input box for BlackBerry Native SDK but here in mine case this doesn't exist. And I'm starting qtcreator in same terminal window after executing c:\bbndk\bbndk-env.bat

                !http://i.imgur.com/OYjzf.png?1?7492(kit)!

                !http://i.imgur.com/Rfxar.png?1(qtver)!

                !http://i.imgur.com/rpMGO.png?1(compiler)!

                1 Reply Last reply
                0
                • D Offline
                  D Offline
                  daliusd
                  wrote on 10 Jan 2013, 12:48 last edited by
                  #11

                  That warning in "Qt Versions" tab looks suspicious. Try fixing it first. I don't use BB SDK with Windows so I can't help you further. Maybe somebody else will do.

                  1 Reply Last reply
                  0
                  • B Offline
                    B Offline
                    borceg
                    wrote on 10 Jan 2013, 12:51 last edited by
                    #12

                    Can't fix that :( It appears each time.

                    1 Reply Last reply
                    0
                    • B Offline
                      B Offline
                      borceg
                      wrote on 10 Jan 2013, 13:01 last edited by
                      #13

                      Uninstall QtCreator, re-install. Delete all kits/qt versions and re-add again. Now works, Solved :)

                      1 Reply Last reply
                      0

                      13/13

                      10 Jan 2013, 13:01

                      • Login

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