Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Developer
Posts: 21
Registered: ‎03-28-2012
My Device: shravan.pottala@gmail.com
My Carrier: Airtel

I have a Qt working application and want to run it on BlackBery Playbook.Is it possible?If Yes How?

I have a Qt working application and want to  run it on BlackBery Playbook.Is it possible?If Yes How?.

 

 

Can I  make my Qt application  work/ run on the Blackberry  PlayBook?

 

 

 

 

Developer
Posts: 1,280
Registered: ‎03-03-2011
My Device: Playbook, Z10, Q10, Z30 with Files & Folders and Orbit of course
My Carrier: Vodafone

Re: I have a Qt working application and want to run it on BlackBery Playbook.Is it possible?If Yes How?

Your question is much too general to be answered here or anywhere online. You might as well post "How do I write the next Angry Birds" or "Please build a house for me".

 

These forums are meant for developers to discuss specific issues. If you are the developer of the app, you should have at least some understanding of how Qt works and what is required to port your app to another device. Together with the documentation and release notes you'll be able to start compiling for PlayBook.

 

If you run into issues with compatibility or specific build steps, then by all means, post a specific question here with enough background info and/or code samples for others to reproduce the problem.

 

Also, it doesn't help repeating the same question within a few hours. 

Files & Folders, the unified file & cloud manager for PlayBook and BB10 with SkyDrive, SugarSync, Box, Dropbox, Google Drive, Google Docs. Free 3-day trial! - Jon Webb - Innovatology - Utrecht, Netherlands
New Developer
Posts: 21
Registered: ‎03-28-2012
My Device: shravan.pottala@gmail.com
My Carrier: Airtel

Re: I have a Qt working application and want to run it on BlackBery Playbook.Is it possible?If Yes How?

I want to say that I have installed the Qt PlayBook just now and want to port my Qt application  to the blackberry i.e  .BAR format.

 

 

 

I want the steps to   port  man.

Developer
Posts: 62
Registered: ‎03-31-2012
My Device: Playbook
My Carrier: None

Re: I have a Qt working application and want to run it on BlackBery Playbook.Is it possible?If Yes How?

It is mostly possible. Qt for Playbook is in an early stage and some functionallity isn't read yet. But most of it is working for me. Qt-Mobility and QtWebKit isn't there (at the moment). But Qt-Core runs fine without any problems here. You have to add a new rule to your .pro-File called "qnx" and there you have to define all your playbook specific stuff. You also need a XML-file to describe your BAR-file :-) And as far as I know you have to get a developer-token to install self craeted Apps to yor playbook. Greatest problem is to get the BAR-decription correct ;-) I use Windows XP in a Virtualbox for development. Just install JDK, Native SDK and Qt-SDK 4.8.1 (file is called 4.8.0). I had problems installing the SDK's when not copied to the Desktop before installing.
New Developer
Posts: 21
Registered: ‎03-28-2012
My Device: shravan.pottala@gmail.com
My Carrier: Airtel

Re: I have a Qt working application and want to run it on BlackBery Playbook.Is it possible?If Yes How?

I got all the signing keys today only. What is the developer token is it similar to debug token?

 

Qt core?

 

 

Please explain the below  lines

 

You have to add a new rule to your .pro-File called "qnx" and there you have to define all your playbook specific stuff. You also need a XML-file to describe your BAR-file

Developer
Posts: 62
Registered: ‎03-31-2012
My Device: Playbook
My Carrier: None

Re: I have a Qt working application and want to run it on BlackBery Playbook.Is it possible?If Yes How?

I'll try to post my files :-) Some lines are only needed by my project, but I think you will find them ^^

 

.pro

 

 

qnx {
    message( "PLAYBOOK" )

    DEFINES += Q_OS_PLAYBOOK=true
    #DEFINES -= NO_FILE_LOGGING=true

    # native development for GPS
    BB_NDK = /bbndk-2.0.0
    INCLUDEPATH += $$BB_NDK/target/qnx6/usr/include
    LIBS        += -lbps

    # crashes on playbook durig cache-description
    QT -= webkit

    #CONFIG += mobility
    #MOBILITY += location systeminfo feedback sensors

    #LIBS += -lbbsupport
    #QMAKE_LFLAGS += '-Wl,-rpath,\'./app/native/lib\''
    QMAKE_LFLAGS += -Wl,-rpath=.:app/native/lib:app/native/lib/platforms -Lapp/native/lib -Lapp/native/lib/platforms

    package.target = $${TARGET}.bar
    package.depends = $${TARGET}
    #package.commands = blackberry-nativepackager \
    #    -package $${TARGET}.bar \
    #    -devMode -debugToken $$(DEBUG_TOKEN) \
    #    $${PACKAGE_ARGS}
    message( $$[QT_INSTALL_LIBS] )
    message( $$[QT_INSTALL_PLUGINS] )
    # QtCore QtGui QtOpenGL are needed for libblackberry.so
    package.commands = blackberry-nativepackager \
        -devMode -debugToken playbook/debugtoken.bar \
        -package $${TARGET}.bar -arg -platform -arg blackberry \
        bar-descriptor.xml $$TARGET \
        -e res/bikeator.png res/bikeator.png \
        -e res/logo.png res/logo.png \
        -e $$[QT_INSTALL_LIBS]/libQtCore.so.4    lib/libQtCore.so.4 \
        -e $$[QT_INSTALL_LIBS]/libQtGui.so.4     lib/libQtGui.so.4 \
        -e $$[QT_INSTALL_LIBS]/libQtOpenGL.so.4  lib/libQtOpenGL.so.4 \
        -e $$[QT_INSTALL_LIBS]/libQtNetwork.so.4 lib/libQtNetwork.so.4 \
        -e $$[QT_INSTALL_LIBS]/libQtWebKit.so.4  lib/libQtWebKit.so.4 \
        -e $$[QT_INSTALL_LIBS]/libQtScript.so.4  lib/libQtScript.so.4 \
        -e $$[QT_INSTALL_LIBS]/libQtSql.so.4     lib/libQtSql.so.4 \
        -e $$[QT_INSTALL_LIBS]/libQtXml.so.4     lib/libQtXml.so.4 \
        -e $$[QT_INSTALL_PLUGINS]/platforms/libblackberry.so lib/platforms/libblackberry.so \
        -e $$[QT_INSTALL_PLUGINS]/platforms/libblackberry.so lib/libblackberry.so \
        -e $$[QT_INSTALL_PLUGINS]/sqldrivers/libqsqlite.so   lib/sqldrivers/libqsqlite.so \
        -e $$[QT_INSTALL_PLUGINS]/imageformats/libqjpeg.so   lib/imageformats/libqjpeg.so
        #-e $$[QT_INSTALL_LIBS]/libQtCore.so.4 lib/libQtCore.so.4 \
        #-e $$[QT_INSTALL_LIBS]/libQtGui.so.4 lib/libQtGui.so.4 \
        #-e $$[QT_INSTALL_LIBS]/libQtOpenGL.so.4 lib/libQtOpenGL.so.4 \
        #-e $$[QT_INSTALL_LIBS]/libQtNetwork.so.4 lib/libQtNetwork.so.4 \
        #-e $$[QT_INSTALL_LIBS]/libbbsupport.so.4 lib/libbbsupport.so.4 \
        #-e $$[QT_INSTALL_PLUGINS]/platforms/libblackberry.so lib/platforms/libblackberry.so


    QMAKE_EXTRA_TARGETS += package

    OTHER_FILES += bar-descriptor.xml
}

 bar-descriptor.xml

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
    <id>com.bikeator.bikeator</id>
    <filename>BikeAtor_Free</filename>
    <name>BikeAtor</name>
    <versionNumber>0.0.1</versionNumber>
    <description>GPS and Maps</description>
    <copyright>2012</copyright>

    <initialWindow>
        <systemChrome>none</systemChrome>
        <transparent>false</transparent>
        <autoOrients>true</autoOrients>
        <aspectRatio>landscape</aspectRatio>
    </initialWindow>

    <publisher>Andreas Wiener</publisher>
    <permission system="true">run_native</permission>
    <category>core.games</category>
    <icon><image>res/bikeator.png</image></icon>
    <splashscreen>res/logo.png</splashscreen>
    <action>read_geolocation</action>
    <action>access_shared</action>

    <!-- examples
    <env var="QT_DEBUG_PLUGINS" value="1" />
    <env var="LD_LIBRARY_PATH" value="app/native/lib" />
    <env var="QT_PLUGIN_PATH" value="app/native/lib/plugins"/>
    <env var="QT_QPA_FONTDIR" value="/base/usr/fonts/font_repository/liberation" />
    <env var="QT_PLUGIN_PATH" value="app/native/lib/plugins"/>
    <env var="QT_QPA_PLATFORM_PLUGIN_PATH" value="app/native/lib/platforms" />
    -->
    <!-- working
    <env var="QT_DEBUG_PLUGINS" value="1" />
    <env var="LD_LIBRARY_PATH" value="app/native/lib" />
    <env var="QT_PLUGIN_PATH" value="app/native/lib/plugins"/>
    <env var="QT_QPA_PLATFORM_PLUGIN_PATH" value="app/native/lib/platforms" />
    -->
    <env var="LD_LIBRARY_PATH" value="app/native/lib" />
    <env var="QT_QPA_PLATFORM_PLUGIN_PATH" value="app/native/lib/platforms" />
</qnx>

 

New Developer
Posts: 21
Registered: ‎03-28-2012
My Device: shravan.pottala@gmail.com
My Carrier: Airtel

Re: I have a Qt working application and want to run it on BlackBery Playbook.Is it possible?If Yes How?

Thank you for quick reply . I will try   to run it.