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
scorpion230154
Posts: 9
Registered: ‎09-08-2011
My Device: developer
My Carrier: developer
Accepted Solution

Erreur building Qt4.8.3 pour Playbook

BlackBerryPlayBookSimulator-Installer-2.1.0-1032-Linux-201209272349 with
installer-bbndk-2.1.0-linux-1032-201209271809-201209280007

../TMP$ git clone git://gitorious.org/qt/qt.git { 22 october 2012 }

../TMP/qt$ source /home/scorpion/BLACKBERRY/PLAYBOOK/PB_2_1_0-1032/bbndk-env.sh

../TMP/qt$ ./configure -opensource -confirm-license -qpa -iconv -shared -release -xplatform blackberry-x86-qcc -little-endian -arch i386 -largefile -nomake examples -nomake demos -xmlpatterns -no-webkit -no-rpath -opengl es2 -reduce-exports -system-sqlite -prefix-install -prefix /home/scorpion/BLACKBERRY/Qt4.8_x86

../TMP/qt$ make


kernel/qwidget.cpp: In member function 'void QWidget::setAttribute(Qt::WidgetAttribute, bool)':
kernel/qwidget.cpp:11024: error: 'NAVIGATOR_PORTRAIT' was not declared in this scope
kernel/qwidget.cpp:11024: error: 'NAVIGATOR_LANDSCAPE' was not declared in this scope
kernel/qwidget.cpp:11024: error: 'navigator_set_orientation_mode' was not declared in this scope
cc: /home/scorpion/BLACKBERRY/PLAYBOOK/PB_2_1_0-1032/host/linux/x86/usr/lib/gcc/i486-pc-nto-qnx6.5.0/4.4.2/cc1plus error 1
make[1]: *** [.obj/release-shared/qwidget.o] Error 1
make[1]: Leaving directory `/home/scorpion/TMP/qt/src/gui'
make: *** [sub-gui-make_default-ordered] Error 2

An idea?

Thank you.

Please use plain text.
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Erreur building Qt4.8.3 pour Playbook

I don't see this option  -prefix-install here http://qt-project.org/wiki/Building-Qt4-for-Blackberry 

I did not try x86 but was able to compile the latest code from this branch for arm yesterday.

Please use plain text.
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Erreur building Qt4.8.3 pour Playbook

I take my workds back! sorry, just got home and checked terminal window with Qt building process, I got exactly the same errors.

Please use plain text.
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Erreur building Qt4.8.3 pour Playbook

Looks like this commit broke the build

commit a37c2733b37857e1ca60d36653559c1528d72b64
Author: Bernd Weimer <bweimer@rim.com>
Date:   Thu Oct 4 13:16:46 2012 +0200

    Blackberry: implemented "orientation lock" widget attribute
    
    Qt::WA_LockPortraitOrientation and Qt::WA_LockLandscapeOrientation
    will be adhered to.
    
    This is not needed in Qt5, as those attributes have been removed from Qt5.
    
    Change-Id: I5f29cad0e2c784caa6201b683d7b658a5b0d083d
    Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
    Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
    Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>

Please use plain text.
New Contributor
scorpion230154
Posts: 9
Registered: ‎09-08-2011
My Device: developer
My Carrier: developer

Re: Erreur building Qt4.8.3 pour Playbook

Thank you for the information.

I compiled by modifying the source code:
../TMP/qt/src/gui/kernel/ qwidget.cpp
-------------------------------------
...
        if (testAttribute(Qt::WA_AutoOrientation)) {
            navigator_rotation_lock(false);
        } // else {
            // navigator_set_orientation_mode((testAttribute(Qt::WA_LockPortraitOrientation) ?
                                            // NAVIGATOR_PORTRAIT : NAVIGATOR_LANDSCAPE), 0);
            // navigator_rotation_lock(true);
        // }

For my application under development is not serious I'll see later.

Please use plain text.
Contributor
mcguire
Posts: 24
Registered: ‎09-10-2012
My Device: Blackberry Dev Alpha
My Carrier: -

Re: Erreur building Qt4.8.3 pour Playbook

[ Edited ]

Due to the focus on BB10, Qt versions after 4.8.3 are no longer supported for the Blackberry Tablet OS.

Please use Qt 4.8.3, that should work fine.

 

Note that the change that was mentioned here was the only change that broke the build, but there are other changes which subtly break things at runtime, so don't try to get it to compile by commenting out stuff, there will be other problems. Use 4.8.3 instead.

Please use plain text.
New Contributor
scorpion230154
Posts: 9
Registered: ‎09-08-2011
My Device: developer
My Carrier: developer

Re: Erreur building Qt4.8.3 pour Playbook

Thank you for the info.
Necessary is to Qt4.8.4 Qt4.8.3.

 

Please use plain text.
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Erreur building Qt4.8.3 pour Playbook

>Due to the focus on BB10, Qt versions after 4.8.3 are no longer supported for the Blackberry Tablet OS.

>Please use Qt 4.8.3, that should work fine.

I am confused, what's not supported on Blackberry Tablet OS and what shoud we use for Blackberry Tabled OS?

Is this http://qt-project.org/wiki/Building-Qt4-for-BlackBerry going to be updated?

Thanks.

Please use plain text.