10-22-2012 11:46 PM
BlackBerryPlayBookSimulator-Installer-2.1.0-1032-L
installer-bbndk-2.1.0-linux-1032-201209271809-2012
../TMP$ git clone git://gitorious.org/qt/qt.git { 22 october 2012 }
../TMP/qt$ source /home/scorpion/BLACKBERRY/PLAYBOOK/PB_2_1_0-1032/b
../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/h
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.
Solved! Go to Solution.
10-24-2012 05:21 PM
I don't see this option -prefix-install here http://qt-project.org/wiki/Building-Qt4-for-Blackb
I did not try x86 but was able to compile the latest code from this branch for arm yesterday.
10-24-2012 07:06 PM
I take my workds back! sorry, just got home and checked terminal window with Qt building process, I got exactly the same errors.
10-24-2012 07:33 PM
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>
10-24-2012 11:43 PM
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::
// NAVIGATOR_PORTRAIT : NAVIGATOR_LANDSCAPE), 0);
// navigator_rotation_lock(true);
// }
…
For my application under development is not serious I'll see later.
10-25-2012 02:55 AM - edited 10-25-2012 02:57 AM
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.
10-25-2012 03:18 AM
Thank you for the info.
Necessary is to Qt4.8.4 Qt4.8.3.
10-25-2012 09:00 AM
>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-BlackB
Thanks.