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
Developer
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: QT 4.8.3 + Symbian components built for ARM + SIM (updated on 9.15.2012)

Ooops, sorry about confusion. Yes libs work on any OS, but I only need bin folder (qmake, lrelease, moc, rcc, uic) to be build under win, because I mostly work in Qt Creator, and it doesn't accept linux qmake binary.
Developer
Posts: 43
Registered: ‎06-30-2012
My Device: Bold 9900
My Carrier: T-Mobile

Re: QT 4.8.3 + Symbian components built for ARM + SIM (updated on 9.15.2012)

Ahh, I understand the question.  here is how I do it (since I use Windows as well).

 

Install the IDE (either QT or BB NDK).  Then replace the libraries and include files with the new ones.  I have this in a CMD file to automate it.  Therefore you are leveraging the qmake that is already there.

 

Does this help?

 

Bryan

 

Developer
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: QT 4.8.3 + Symbian components built for ARM + SIM (updated on 9.15.2012)

I used this way with 4.8.2 libs until it messed all my apps. Anyway, I'll try to build 4.8.3 again. On my first try build worked, but I couldn't find the libs in the specified prefix dir - somehow they disappeared during the build process Smiley Very Happy
Developer
Posts: 77
Registered: ‎05-21-2012
My Device: DA C, Z10 LE, Passport
My Carrier: TIM

Re: QT 4.8.3 + Symbian components built for ARM + SIM (updated on 9.15.2012)

Hi,

 

I am trying to compile symbian components myself under debian 64 bit.

I have compiled Qt 4.8.3 successfully and can run a "Hello World" app on DevAlpha.

I compiled components as follow:

export QTDIR=/usr/local/Trolltech/Qt-4.8.3-QNX/
source  /opt/bbndk/bbndk-env.sh
export QMAKESPEC=/usr/local/Trolltech/Qt-4.8.3-QNX/mkspecs/blackberry-armv7le-qcc
./configure -symbian -nomake tests -nomake demos -nomake examples
make

 but when I run an app on the device I got:

 

plugin cannot be loaded for module "com.nokia.symbian": The plugin '/apps/ID.testDev_ID_________91b_____/native/imports/com/nokia/symbian.1.1/libsymbianplugin_1_1_3.so' uses incompatible Qt library. Expected build key "arm blackberry qcc no-pkg-config", got "arm blackberry g++ no-pkg-config" 

 but I can’t figure out how I compiled it with g++ instead of qcc

 

thanks in advance

Marco

 

 

Developer
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: QT 4.8.3 + Symbian components built for ARM + SIM (updated on 9.15.2012)

Check mkspecs. I think the default are used, not blackberry-armv7le-qcc
Developer
Posts: 77
Registered: ‎05-21-2012
My Device: DA C, Z10 LE, Passport
My Carrier: TIM

Re: QT 4.8.3 + Symbian components built for ARM + SIM (updated on 9.15.2012)

before the configure step I set QMAKESPEC to point to blackberry-armv7le-qcc. Without, it complains about it missing.

The strange thing is the error complain about g++ instead qcc, but build keys "arm" and "blackberry" are correct.
I don't know what to do now
Developer
Posts: 671
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: QT 4.8.3 + Symbian components built for ARM + SIM (updated on 9.15.2012)

try with export QMAKESPEC=/usr/local/Trolltech/Qt-4.8.3-QNX/mkspecs/default

Developer
Posts: 77
Registered: ‎05-21-2012
My Device: DA C, Z10 LE, Passport
My Carrier: TIM

Re: QT 4.8.3 + Symbian components built for ARM + SIM (updated on 9.15.2012)

Nothing. Same error displayed Smiley Sad
Developer
Posts: 43
Registered: ‎06-30-2012
My Device: Bold 9900
My Carrier: T-Mobile

Re: QT 4.8.3 + Symbian components built for ARM + SIM (updated on 9.15.2012)

[ Edited ]

To build for the device - ARM I use the following command (to be used for qcc - note that the newest branch of 4.8.3 now uses qnx-armv7le-qcc  instead of unsupported/qnx-armv7le-qcc )

 

./configure -opensource -confirm-license -qpa -iconv -shared -release -xplatform qnx-armv7le-qcc
-little-endian -arch arm -largefile -nomake examples -nomake demos -xmlpatterns
-no-webkit -no-neon -no-rpath -opengl es2 -prefix-install -prefix install/armv7le

 

 

once that is built I use the following command to build the symbian components

 

export QTDIR=~/qt

./configure -symbian

 

 

Developer
Posts: 195
Registered: ‎05-09-2012
My Device: Playbook, Z10 LE

Re: QT 4.8.3 + Symbian components built for ARM + SIM (updated on 9.15.2012)

[ Edited ]

I have decided to try to compile Qt on Windows following the steps described here:
http://qt-project.org/wiki/Building-Qt4-for-Blackberry

but already on the step:

Rebuild with ..\..\bin\qmake and then mingw32-make

 

 

I get the error. Any ideas what's wrong?

 

g++ -c -include tmp\obj\debug_shared\configure_pch.h -fno-keep-inline-dllexport
-g -fno-rtti -fexceptions -mthreads -Wall -Wextra -DUNICODE -DQT_NODLL -DQT_NO_C
ODECS -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NO_STL -D
QT_NO_COMPRESS -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -D_CRT_SECURE
_NO_DEPRECATE -DQT_BOOTSTRAPPED -DCOMMERCIAL_VERSION -DQT_NO_DYNAMIC_CAST -I"..\
..\include" -I"..\..\include\QtCore" -I"..\shared" -I"..\..\mkspecs\win32-g++-4.
6" -o tmp\obj\debug_shared\configureapp.o configureapp.cpp
configureapp.cpp: In member function 'void Configure::generateOutputVars()':
configureapp.cpp:2952:9: error: 'configStream' was not declared in this scope
mingw32-make[1]: *** [tmp/obj/debug_shared/configureapp.o] Error 1
mingw32-make[1]: Leaving directory `C:/Qt/qt-bbndk/qt-everywhere-opensource-src-
4.8.3/tools/configure'
mingw32-make: *** [debug-all] Error 2