11-07-2012 01:34 PM
I've switched to QT Creator for faster compilation & deployment.
Everything works fine including debugging but it doesn't display logs (qDebug etc).
I know that logs should be redirected to stdout/stderr if they are to be displayed in QNX Momentics console.
This is done using qInstallMsgHandler and it works. But it doesn't work in QT Creator.
So the question is:
How does QNX Momentics intercept the logs after they are redirected to stderr/stdout?
I was able to view the logs via SSH using the following method. It works for slogger2, but I don't know how to access stdout/stderr output:
1) Start blackberry-connect
2) ssh firstname.lastname@example.org -i "/Users/User/.config/QtProject/qtcreator/qnx/Black
3) slog2info -w | grep qt-msg
Any suggestions are welcome!
Solved! Go to Solution.
11-08-2012 08:45 AM
I would rather use QtCreator as well. The Eclipse IDE was never something I liked.
Which version of Qt Creator did you use? Any special setup steps?
Btw. I have seen that it was recommended to use simple sprintf... instead of qDebug() to log your stuff since it wasn't working. So I think what you've seen is just a macro that will use standard console output functions.
11-10-2012 09:13 AM - edited 11-10-2012 09:14 AM
It does support Cascades.
I've followed this guide:
Autocompletion did not work initially. I don't know why, maybe paths were too long?
As a workaround I've created a symlink in my project folder:
include -> /Applications/bbndk/target_10_0_9_386/qnx6/usr/inc
Then added the following lines to .pro file:
INCLUDEPATH += include include/qt4/QtCore LIBS += -lbbcascades
By the way, logs started working after reboot.
Everything is working now.
p.s. I'm using Mac OS X Lion.