09-18-2012 04:02 PM
09-18-2012 04:45 PM
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
09-18-2012 05:14 PM
09-19-2012 05:56 AM
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
09-19-2012 06:07 AM
09-19-2012 07:08 AM
09-19-2012 07:22 AM
09-19-2012 07:54 AM
09-19-2012 08:36 AM - edited 09-19-2012 08:36 AM
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
09-19-2012 10:07 AM - edited 09-19-2012 10:09 AM
I have decided to try to compile Qt on Windows following the steps described here:
http://qt-project.org/wiki/Building-Qt4-for-Blackb
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