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. [Solved] Error creating the package
QtWS25 Last Chance

[Solved] Error creating the package

Scheduled Pinned Locked Moved Qt on BlackBerry and QNX
4 Posts 2 Posters 3.2k 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.
  • J Offline
    J Offline
    john_god
    wrote on last edited by
    #1

    A few hours from the deadline for submitting my app, my project is now ready to rock and .... I am stuck :(
    From "here ":http://developer.blackberry.com/native/documentation/bb10/qt_package_deploy.html I trying to creat a package, I copy the file.bar and bar-descriptor.xml to host..../bin directory, for simplicity, and got an error:

    @joao@joao-EasyNote-TM86:~/bbndk/host_10_0_9_404/linux/x86/usr/bin$ ./blackberry-nativepackager -package MathGraphica.bar bar-descriptor.xml
    Error: Invalid asset path "MathGraphica"@

    here's my bar-descriptor.xml:

    @<?xml version='1.0' encoding='utf-8' standalone='no'?>
    <qnx >
    <id>ID</id>
    <name>MathGraphica</name>
    <versionNumber>1.0.0</versionNumber>
    <description>Advanced scientific calculator with 3D graphs</description>
    <initialWindow>
    <systemChrome>none</systemChrome>
    <transparent>false</transparent>
    <autoOrients>true</autoOrients>
    <aspectRatio>landscape</aspectRatio>
    </initialWindow>
    <publisher>Joao de Deus</publisher>
    <copyright>COPYRIGHT 2013</copyright>
    <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"/>
    <arg>-style</arg>
    <arg>qnxlight</arg>
    <action system="true">run_native</action>
    <!-- PROJECTPATH should point to the project binary, path can be relative -->
    <asset type="Qnx/Elf" path="MathGraphica" entry="true">PROJECTNAME</asset>
    <asset path="/home/joao/qtBlackBerryProjects/MathGraphicaOpenGL/images/calculadora.png">calculadora.png</asset>
    <icon>
    <image>calculadora.png</image>
    </icon>
    </qnx>@

    Calling for help to some nice souls here in forum before I turn panic mode on :)

    1 Reply Last reply
    0
    • J Offline
      J Offline
      john_god
      wrote on last edited by
      #2

      I changed

      <asset type="Qnx/Elf" path="MathGraphica" entry="true">PROJECTNAME</asset>
      to
      <asset type="Qnx/Elf" path="MathGraphica" entry="true">MathGraphica</asset>

      still got the same error

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Slocan
        wrote on last edited by
        #3

        The line:
        <asset type=“Qnx/Elf” path=“MathGraphica” entry=“true”>MathGraphica</asset>
        refers to your app executable. You're telling the packager there is a file named MathGraphica in the current directory (~/bbndk/host_10_0_9_404/linux/x86/usr/bin) which is used to launch the app. I doubt you compiled the app in this bbndk directory, so "cd" to where your compiled executable is, copy the bar-descriptor.xml file there, and re-run the same command.

        1 Reply Last reply
        0
        • J Offline
          J Offline
          john_god
          wrote on last edited by
          #4

          I got it working like you said.

          @joao@joao-EasyNote-TM86:~/qtBlackBerryProjects/MathGraphicaOpenGL-build-Blackberry-Release$ ./../../bbndk/host_10_0_9_404/linux/x86/usr/bin/blackberry-nativepackager -package MathGraphica.bar bar-descriptor.xml@

          Thank you very much.

          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