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 Contributor
AnthonyMMWaB
Posts: 9
Registered: ‎03-25-2012
My Carrier: Virgin (Bell)

Re: ubuntu + QT5 + playbook (sans momentics and from command line)

Sorry those lines aren't quite right.

 

Should be

 

CONFIG += qt

QT += widgets

 

 

How do I edit posts on there boards?

Please use plain text.
Developer
iravelo
Posts: 61
Registered: ‎06-28-2011
My Carrier: sfr

Re: ubuntu + QT5 + playbook (sans momentics and from command line)

[ Edited ]

Tks Anthony !!

 

I finally ended up with this .pro file :

######################################################################
# Automatically generated by qmake (2.01a) Sun Mar 18 13:25:38 2012
######################################################################
# helloworld.pro, firstest qt app by raxy

TEMPLATE = app
TARGET = helloqtquick2
DEPENDPATH += .
INCLUDEPATH += .
SOURCES += main.cpp
CONFIG +=qt
QT += widgets
#RESOURCES += helloqtquick2.qrc
#OTHER_FILES += main.qml
#        -e $$[QT_INSTALL_LIBS]/libQtQml.so.5 lib/libQtQml.so.5 \
#       -e $$[QT_INSTALL_LIBS]/libQtV8.so.5 lib/libQtV8.so.5 \
#        -e $$[QT_INSTALL_LIBS]/libQtXmlPatterns.so.5 lib/libQtXmlPatterns.so.5 \

qnx {

    QMAKE_LFLAGS += '-Wl,-rpath,\'./app/native/lib\''

    PACKAGE_ARGS = \
        $${PWD}/bar-descriptor.xml $$TARGET \
        -e $${PWD}/icon.png res/icon.png \
        -e $$[QT_INSTALL_LIBS]/libQtCore.so.5 lib/libQtCore.so.5 \
        -e $$[QT_INSTALL_LIBS]/libQtGui.so.5 lib/libQtGui.so.5 \
        -e $$[QT_INSTALL_LIBS]/libQtOpenGL.so.5 lib/libQtOpenGL.so.5 \
        -e $$[QT_INSTALL_LIBS]/libQtNetwork.so.5 lib/libQtNetwork.so.5 \
        -e $$[QT_INSTALL_LIBS]/libQtWidgets.so.5 lib/libQtWidgets.so.5 \
        -e $$[QT_INSTALL_LIBS]/libQtQuick1.so.5 lib/libQtQuick1.so.5 \
	 -e $$[QT_INSTALL_LIBS]/libQtSql.so.5 lib/libQtSql.so.5 \
        -e $$[QT_INSTALL_PLUGINS]/platforms/libqnx.so plugins/platforms/libqnx.so \
        -e $$[QT_INSTALL_IMPORTS]/ imports/

    package.target = $${TARGET}.bar
    package.depends = $$TARGET
    package.commands = blackberry-nativepackager \
        -package $${TARGET}.bar \
        -devMode -debugToken $$(DEBUG_TOKEN) \
        $${PACKAGE_ARGS}

    QMAKE_EXTRA_TARGETS += package

    OTHER_FILES += bar-descriptor.xml

}

 and now the whole sequence of

qmake, make clean, make -j2, and make .bar

is errorfree !

 

To edit you post : click on Edit on the top right 'Options' of you post subwindows and then 'edit reply

 

Now, I have to deploy that fu*ing barfile to the device...

 

 

---------<={##}=>---------
I.Ravelo; Renault S.A.S. Corporate BBOS Java Apps Lead Conceptor/Coder; Qt learner
Please use plain text.
New Contributor
AnthonyMMWaB
Posts: 9
Registered: ‎03-25-2012
My Carrier: Virgin (Bell)

Re: ubuntu + QT5 + playbook (sans momentics and from command line)

huh, options menu was being weird earlier. Works fine now.

 

I found that actually deploying is very simple.

 

Now I just want toget the QTQuick stuff working.

Please use plain text.
Developer
iravelo
Posts: 61
Registered: ‎06-28-2011
My Carrier: sfr

Re: ubuntu + QT5 + playbook (sans momentics and from command line)

I managed to deploy the bar file,

no icon pb on my side,

The button is tiny and the font is not pretty, but at last I've got that button in the middle of my PB screen now !

amazing !

 

Thanks all !

 

---------<={##}=>---------
I.Ravelo; Renault S.A.S. Corporate BBOS Java Apps Lead Conceptor/Coder; Qt learner
Please use plain text.
Developer
BGmot
Posts: 1,064
Registered: ‎11-24-2011
My Carrier: x

Re: ubuntu + QT5 + playbook (sans momentics and from command line)

anyway puzzled why nm does not show anything for Qt libraries...

Please use plain text.
New Contributor
AnthonyMMWaB
Posts: 9
Registered: ‎03-25-2012
My Carrier: Virgin (Bell)

Re: ubuntu + QT5 + playbook (sans momentics and from command line)

nm ~/development/qnx/qt5/lib/libQtCore.so.5.0.0 -D -C 

works..

Please use plain text.
Developer
iravelo
Posts: 61
Registered: ‎06-28-2011
My Carrier: sfr

Re: ubuntu + QT5 + playbook (sans momentics and from command line)

great find Anthony,
tks !
---------<={##}=>---------
I.Ravelo; Renault S.A.S. Corporate BBOS Java Apps Lead Conceptor/Coder; Qt learner
Please use plain text.
Developer
BGmot
Posts: 1,064
Registered: ‎11-24-2011
My Carrier: x

Re: ubuntu + QT5 + playbook (sans momentics and from command line)

>nm ~/development/qnx/qt5/lib/libQtCore.so.5.0.0 -D -C 

I don't have -D and -C on Mac... interesting...

Please use plain text.
New Contributor
AnthonyMMWaB
Posts: 9
Registered: ‎03-25-2012
My Carrier: Virgin (Bell)

Re: ubuntu + QT5 + playbook (sans momentics and from command line)

just outputs this http://pastebin.com/9fdWKzPe

Please use plain text.
Developer
iravelo
Posts: 61
Registered: ‎06-28-2011
My Carrier: sfr

Re: ubuntu + QT5 + playbook (sans momentics and from command line)

Can anyone be kind enough to share here its working example project running Qt5 + QtQuick1 please,

It could help us jump on the QML train faster...

 

Tks in advance !

 

I've not checked github these times,

perhaps more v5 modules are now ready...

---------<={##}=>---------
I.Ravelo; Renault S.A.S. Corporate BBOS Java Apps Lead Conceptor/Coder; Qt learner
Please use plain text.