Feed for discussion Qt General in project Qt.Posts for Qt Generalpost101154: Problem with custom Qt screen driverSam Koltonhttp://community.qnx.com/sf/go/post1011542013-05-05T16:29:32Z2013-05-05T16:29:32ZHello everybody!!!
Sory for my bad english(
I'm trying to write my custom screen driver for Qt on QNX.
My question is where to place my plugin?
I wrote stub for plugin which simply must print "Hello" on console. After i wrote QScreenPlugin class which exports my driver with name "glesdriver" (implementation of QScreenPlugin in attachment). Then i compile plugin to so library. After I place my drver in catalog /usr/qnx650/target/qnx6/x86/usr/lib/qt4/plugins/gfxdrivers.
After all I'm trying to run qtdemo with my driver:
./qtdemo -qws -display glesdriver
But Qt returning with error:
glesdriver: driver not found
I'm interested in where to place screen driver in Qt for QNX, and where are standart screen drivers placed?Sam Kolton2013-05-05T16:29:32Zpost100800: Re: Self Hosted development using Qt on QNXArmin Steinhoffhttp://community.qnx.com/sf/go/post1008002013-04-23T13:11:59Z2013-04-23T13:11:59ZMeans QNX 6.5.0 x86 based systems ?
--Armin
Mitchell Schoenbrun wrote:
> To the QNX Community. I'm interested in hearing from other developers who are interested in developing with Qt, but using the QNX system as a self hosted environment without resorting to using a separate target device. You can contact me about this at maschoen@pobox.com.
>
> What I hear from QNX is that Photon is going away after QNX 6.5.0 and therefore for most practical purposes, so it self hosted development.
>
> I'm of the radical opinion that the best development tool provide by QNX is self hosted QNX and so I'm taking steps so that I can continue in that direction.
>
> The first two steps I've taken are as follows.
> I've ported Qt version 4.8.2 to QNX 6.5.0. I've done this using just a QNX system, not resorting to the documented use of Linux. If anyone else is interested in how I did this, please let me know and I will provide details.
>
> I've also enhanced this version so that it can support running Qt programs under Photon. The implementation is flexible, and the same modules can be run with or without Photon without recompiling.
>
> The attached jpg shows two Qt demo programs running both with and without the Photon Window frame.
>
> Currently I only support 32bit ARGB video mode. Also, note that when in the Qt window, Qt provides the cursor image. This leaves a cursor visible in the Qt window at all times, even when the system cursor leaves the window.
>
> I am looking into additional steps that make it possible to continue to develop in a self hosted manner once QNX 6.5.0 has been superseded.
>
>
>
> _______________________________________________
>
> Qt General
> http://community.qnx.com/sf/go/post100764
> To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.comArmin Steinhoff2013-04-23T13:11:59Zpost100764: Self Hosted development using Qt on QNXMitchell Schoenbrunhttp://community.qnx.com/sf/go/post1007642013-04-21T05:20:03Z2013-04-21T05:20:03ZTo the QNX Community. I'm interested in hearing from other developers who are interested in developing with Qt, but using the QNX system as a self hosted environment without resorting to using a separate target device. You can contact me about this at maschoen@pobox.com.
What I hear from QNX is that Photon is going away after QNX 6.5.0 and therefore for most practical purposes, so it self hosted development.
I'm of the radical opinion that the best development tool provide by QNX is self hosted QNX and so I'm taking steps so that I can continue in that direction.
The first two steps I've taken are as follows.
I've ported Qt version 4.8.2 to QNX 6.5.0. I've done this using just a QNX system, not resorting to the documented use of Linux. If anyone else is interested in how I did this, please let me know and I will provide details.
I've also enhanced this version so that it can support running Qt programs under Photon. The implementation is flexible, and the same modules can be run with or without Photon without recompiling.
The attached jpg shows two Qt demo programs running both with and without the Photon Window frame.
Currently I only support 32bit ARGB video mode. Also, note that when in the Qt window, Qt provides the cursor image. This leaves a cursor visible in the Qt window at all times, even when the system cursor leaves the window.
I am looking into additional steps that make it possible to continue to develop in a self hosted manner once QNX 6.5.0 has been superseded.Mitchell Schoenbrun2013-04-21T05:20:03Zpost100351: Re: Problem with qtEasy-example on QNX 6.5Dennis Kelllyhttp://community.qnx.com/sf/go/post1003512013-04-06T12:32:54Z2013-04-06T12:32:54Zhttp://developer.blackberry.com/ndkDennis Kellly2013-04-06T12:32:54Zpost100350: Re: Problem with qtEasy-example on QNX 6.5Patrick N.http://community.qnx.com/sf/go/post1003502013-04-06T12:30:17Z2013-04-06T12:30:17ZHi Dennis,
first of all thanks for the answer.
>>You need to make sure the armle-v7 libraries from "qt_qnx_2011-02-24b.zip'
>>found at http://community.qnx.com/sf/frs/do/viewRelease/projects.qt/frs.binpkg.targets
>>are installed on your target - either on an SDcard you mount, or put them in your .ifs build in Momentics. The model
>>system you referenced puts the libraries on the SDcard and uses only a small .ifs for booting - similar to the base BSP
>>ifs.
With this you mean that i have to put the libraries on the sd-card and refer in the BBxM-buildscript to this libraries/install them at start-up?
Can you give me the buildfile for the sd-example for reference?
At the moment i am reading the "QNX Neutrino Realtime Operating System - Building Embedded Systems" for a better understanding in working with bsp´s and QNX and (i hope) in combination with the buildfile i can understand this better.
----------------------------
>>>>>can I use this cEasy binary for BBxM?
>>No. It would need to be re-compiled using the BB native tools.
Sorry that I have to ask this, but what do mean by "BB native tools"? I searched in the internet for this, but i can´t fully grasp the meaning.. this is more a language problem.. i am not soo bad in english ( I think), but I don´t get this one..Patrick N.2013-04-06T12:30:17Zpost100316: Re: Problem with qtEasy-example on QNX 6.5Dennis Kelllyhttp://community.qnx.com/sf/go/post1003162013-04-04T19:22:41Z2013-04-04T19:22:41Z>>>can I use this cEasy binary for BBxM?
No. It would need to be re-compiled using the BB native tools.Dennis Kellly2013-04-04T19:22:41Zpost100315: Re: Problem with qtEasy-example on QNX 6.5Dennis Kelllyhttp://community.qnx.com/sf/go/post1003152013-04-04T18:59:49Z2013-04-04T18:59:49Z>>>if I want to get this project/program working on a Beagleboard-xM?
>>>...what should I do if I want to start with the original bsp?
You need to make sure the armle-v7 libraries from "qt_qnx_2011-02-24b.zip'
found at http://community.qnx.com/sf/frs/do/viewRelease/projects.qt/frs.binpkg.targets
are installed on your target - either on an SDcard you mount, or put them in your .ifs build in Momentics. The model system you referenced puts the libraries on the SDcard and uses only a small .ifs for booting - similar to the base BSP ifs.
>>>I also found in the resulting bin order other qt program binaries with different size??
If you are talking about Qt libraries, the reason is that the example image probably uses Qt 4.8.2 instead of 4.71 as posted on Foundry27. You can build the newer binaries from the main Qt repository.Dennis Kellly2013-04-04T18:59:49Zpost100313: Re: Problem with qtEasy-example on QNX 6.5Patrick N.http://community.qnx.com/sf/go/post1003132013-04-04T18:13:46Z2013-04-04T18:13:46ZNow it is running :)
can I use this cEasy binary for BBxM?
Does someony have an idea about my other question form the first post?Patrick N.2013-04-04T18:13:46Zpost100284: Re: RE: Problem with qtEasy-example on QNX 6.5Patrick N.http://community.qnx.com/sf/go/post1002842013-04-02T21:26:40Z2013-04-02T21:26:40ZWell.. I didn´t see that..
Head -> table -> table -> table
Thx! I will try this tomorrow and post here again then.
n8Patrick N.2013-04-02T21:26:40Zpost100283: RE: Problem with qtEasy-example on QNX 6.5Peter Martinhttp://community.qnx.com/sf/go/post1002832013-04-02T21:00:36Z2013-04-02T21:00:36ZClick on the shutdown option on that screen, and choose exit to text mode.
-----Original Message-----
From: Patrick N. [mailto:community-noreply@qnx.com]
Sent: April-02-13 4:58 PM
To: general-qt
Subject: Re: Problem with qtEasy-example on QNX 6.5
No, the login is a nice looking picture where i can use my mouse to select the users or click some buttons I added a picture of the login screen.
_______________________________________________
Qt General
http://community.qnx.com/sf/go/post100282
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.comPeter Martin2013-04-02T21:00:36Zpost100282: Re: Problem with qtEasy-example on QNX 6.5Patrick N.http://community.qnx.com/sf/go/post1002822013-04-02T20:57:53Z2013-04-02T20:57:53ZNo, the login is a nice looking picture where i can use my mouse to select the users or click some buttons
I added a picture of the login screen.Patrick N.2013-04-02T20:57:53Zpost100281: Re: Problem with qtEasy-example on QNX 6.5Dennis Kelllyhttp://community.qnx.com/sf/go/post1002812013-04-02T20:36:00Z2013-04-02T20:36:00Z>>>If I shutdown photon, I come the login window.
The login window is textmode, no?
Login and type the Qt command line.Dennis Kellly2013-04-02T20:36:00Zpost100280: Re: Problem with qtEasy-example on QNX 6.5Patrick N.http://community.qnx.com/sf/go/post1002802013-04-02T20:32:01Z2013-04-02T20:32:01Zhmm .. the interesting thing is that i cannot exit Photon to go into a textmode..
If I shutdown photon, I come the login window.
Do I have a wrong installation or setting? I installed qnxsdp-6.5.0-201007091524-dvd.iso in VMWarePlayer and use the superuser account. No other settings made besides time and date ( and the mentioned steps for qt)Patrick N.2013-04-02T20:32:01Zpost100279: Re: Problem with qtEasy-example on QNX 6.5Dennis Kelllyhttp://community.qnx.com/sf/go/post1002792013-04-02T20:02:33Z2013-04-02T20:02:33ZThere is only one layer (according to the output) and I suppose Photon is occupying it.
Try logout of photon to text mode before you execute the cEasy command line.Dennis Kellly2013-04-02T20:02:33Zpost100275: Problem with qtEasy-example on QNX 6.5Patrick N.http://community.qnx.com/sf/go/post1002752013-04-02T19:49:05Z2013-04-02T19:49:05ZHello
I have tried to build the cEasy example on a self-hosted QNX 6.5 development environment.
For this I used:
http://community.qnx.com/sf/discussion/do/listPosts/projects.qt/discussion.general.topc20245
and followed the instructions given in the pdf.
I use Windows 8 as Host and for the self-hosted machine VMWarePlayer.
When I try to execute step5 on page 7 (# ./cEasy -qws) then I get the following output (and error):
>>QQnxScreen: Attached to Device, number of displays: 1
>>QQnxScreen: Attached to Display 0, resolution 1024x768, refresh 60 Hz
>>QQnxScreen: gf_layer_attach(0) failed with error code 8
>>qnx: driver cannot connect
>>Abort (core dumped)
It cannot connect to my display?
what could I do? installing another driver?
------------------------------------
And a second question:
If I get the binary for a Qt Project with the method from above or wtih this method:
http://community.qnx.com/sf/discussion/do/listPosts/projects.qt/discussion.general.topc21459
What am I supposed to do with the binary if I want to get this project/program working on a Beagleboard-xM?
I found this example:
http://community.qnx.com/sf/discussion/do/listPosts/projects.qt/discussion.general.topc20735
and this is working well, but what should I do if I want to start with the original bsp?
I also found in the resulting bin order other qt program binaries with different size?? Where do I get these?
I want to understand the process but I cannot find documents for this kind of topic (including project binaries in a bsp). Does someone know good documents (maybe if you have worked on a similar project).
I hope you/someone can help, so that I can finally start to make my own programm on my Beagleboard-xM with Qt (Ihave so much ideas...) :DPatrick N.2013-04-02T19:49:05Zpost100031: Re: Running Qt 4.7.1 for QNX on the Freescale iMX28EVK boardRoy Marshhttp://community.qnx.com/sf/go/post1000312013-03-20T10:35:59Z2013-03-20T10:35:59ZDennis,
FYI The font issue was due missing .ttf fonts in /usr/photon/font_repository
also FYI to get the mouse running required QWS_MOUSE_PROTO=qnx:/dev/devi/touch0 noting that most documentation doesn't mention the device path being required perhaps because this is a touchscreen mounted outside of io-hid
Conclusion
iMX28EVK from Freescale does support Qt albeit in limited form.
Many thanks for your patient assistance.
Roy.Roy Marsh2013-03-20T10:35:59Zpost100002: Re: Running Qt 4.7.1 for QNX on the Freescale iMX28EVK boardRoy Marshhttp://community.qnx.com/sf/go/post1000022013-03-19T14:54:42Z2013-03-19T14:54:42ZDennis,
I have (and always had) the font files in place. Here is some detail:-
# ls -l /usr/photon/font_repository
total 93
-rwxrwxrwx 1 root 0 210 Mar 19 2013 fontdir
-rwxrwxrwx 1 root 0 12393 Mar 20 2000 pcterm12.phf
-rwxrwxrwx 1 root 0 12905 Mar 20 2000 pcterm14.phf
-rwxrwxrwx 1 root 0 17437 May 31 2004 pcterm20.phf
-rwxrwxrwx 1 root 0 2817 Mar 17 2003 phcursor.phf
# cat /usr/photon/font_repository/fontdir
pcterm12,.phf,PC Terminal,12,,0000-00FF,Nf,6x12,13K
pcterm14,.phf,PC Terminal,14,,0000-00FF,Nf,8x14,13K
pcterm20,.phf,PC Terminal,20,,0000-00FF,Nf,10x20,18K
phcursor,.phf,Photon Cursor,0,,E900-E921,Np,32x31,3K
I have tried altering PATH to point to each of the subdirs again with no change.
Is it that qtdemo which would normally be started first performs some setup?
Otherwise am I missing an environment variable perhaps?
Roy.Roy Marsh2013-03-19T14:54:42Zpost99993: Re: Running Qt 4.7.1 for QNX on the Freescale iMX28EVK boardDennis Kelllyhttp://community.qnx.com/sf/go/post999932013-03-19T12:38:01Z2013-03-19T12:38:01ZYou need the font files themselves!
For 4.7.1, Qt seems to use photon fonts - you must supply this directory /usr/photon/font_repository
and its files.
For 4.8.x versions I populate only
/usr/local/Trolltech/QtEmbedded-4.8.0-arm/lib/fontsDennis Kellly2013-03-19T12:38:01Zpost99992: Re: Running Qt 4.7.1 for QNX on the Freescale iMX28EVK boardRoy Marshhttp://community.qnx.com/sf/go/post999922013-03-19T12:30:55Z2013-03-19T12:30:55ZDennis,
I have libfont.so and libfont.so.1 but other than that what else would be needed?
Thanks.Roy Marsh2013-03-19T12:30:55Zpost99990: Re: Running Qt 4.7.1 for QNX on the Freescale iMX28EVK boardDennis Kelllyhttp://community.qnx.com/sf/go/post999902013-03-19T12:02:39Z2013-03-19T12:02:39Zvsync running is enough verification of the graphics.
If the fonts don't load, maybe they are not found on the target?Dennis Kellly2013-03-19T12:02:39Zpost99989: Re: Running Qt 4.7.1 for QNX on the Freescale iMX28EVK boardRoy Marshhttp://community.qnx.com/sf/go/post999892013-03-19T12:01:33Z2013-03-19T12:01:33ZRe post99986, will do.
Thanks Roy.Roy Marsh2013-03-19T12:01:33Zpost99988: Re: Running Qt 4.7.1 for QNX on the Freescale iMX28EVK boardRoy Marshhttp://community.qnx.com/sf/go/post999882013-03-19T11:58:51Z2013-03-19T11:58:51ZDennis,
Crossed over responses there.
Yes, vsync does run egl-gears doesn't
# egl-gears
Couldn't find a compatible frame buffer configuration on layer 0
# egl-gears-lite
Couldn't find a compatible frame buffer configuration on layer 0
I have one query re mainwindow as it doesn't show the text in the headings.
I run it and get the responses as follows:-
# mainwindow -qws
QQnxScreen: Attached to Device, number of displays: 1
QQnxScreen: Attached to Display 0, resolution 800x480, refresh 60 Hz
QFont::setPointSize: Point size <= 0 (-2), must be greater than 0
QFont::setPointSize: Point size <= 0 (-2), must be greater than 0
QFont::setPointSize: Point size <= 0 (-2), must be greater than 0
QFont::setPointSize: Point size <= 0 (-2), must be greater than 0
QFont::setPointSize: Point size <= 0 (-2), must be greater than 0
QFont::setPointSize: Point size <= 0 (-2), must be greater than 0
QFont::setPointSize: Point size <= 0 (-2), must be greater than 0
QFont::setPointSize: Point size <= 0 (-2), must be greater than 0
QFont::setPointSize: Point size <= 0 (-2), must be greater than 0
Roy.Roy Marsh2013-03-19T11:58:51Zpost99986: Re: Running Qt 4.7.1 for QNX on the Freescale iMX28EVK boardDennis Kelllyhttp://community.qnx.com/sf/go/post999862013-03-19T11:53:41Z2013-03-19T11:53:41Z>>> libQtDeclarative.so.4 => /proc/boot/libQtDeclarative.so.4.7.1 (0x1200000)
Your last post shows you are loading a QtDeclarative app. I believe if you find a "legacy" app the library requirements will be much lower.Dennis Kellly2013-03-19T11:53:41Zpost99985: Re: Running Qt 4.7.1 for QNX on the Freescale iMX28EVK boardRoy Marshhttp://community.qnx.com/sf/go/post999852013-03-19T11:47:55Z2013-03-19T11:47:55ZDennis,
I have now got the mainwindow part of qtdemo to run (don't know what my issue was). However I still have the "ldd:FATAL: Could not load library libQtNetwork.so.4" trying to run qtdemo. Full ldd printout is:-
# ldd /proc/boot/qtdemo
/proc/boot/qtdemo:
libQtHelp.so.4 => /proc/boot/libQtHelp.so.4.7.1 (0x1080000)
libQtDeclarative.so.4 => /proc/boot/libQtDeclarative.so.4.7.1 (0x1200000)
libQtScript.so.4 => /proc/boot/libQtScript.so.4.7.1 (0x1600000)
libQtSvg.so.4 => /proc/boot/libQtSvg.so.4.7.1 (0x1140000)
libQtXmlPatterns.so.4 => /proc/boot/libQtXmlPatterns.so.4.7.1 (0x1900000)
libQtSql.so.4 => /proc/boot/libQtSql.so.4.7.1 (0x1850000)
libQtXml.so.4 => /proc/boot/libQtXml.so.4.7.1 (0x1ec0000)
libQtGui.so.4 => /proc/boot/libQtGui.so.4.7.1 (0x200000)
ldd:FATAL: Could not load library libQtNetwork.so.4
At ~27MB before the libQtNetwork load attempt, that must be the 32MB limit!
Thanks for your help and suggestions.
Roy.Roy Marsh2013-03-19T11:47:55Zpost99984: Re: Running Qt 4.7.1 for QNX on the Freescale iMX28EVK boardDennis Kelllyhttp://community.qnx.com/sf/go/post999842013-03-19T11:40:57Z2013-03-19T11:40:57Z>>>I am not running a Photon system which I believe would be required for vsysnc.
Roy, vsync and opengl apps like egl-gears write to "gf" directly and do not require photon.
The reason I suggested these kind of apps was to make sure that "gf" graphics are functioning correctly on your test target. They are sort of a pre-requisite for Qt functionality. (Note vsync requires two layers - not sure of your target - but I egl-gears should work on one layer.)
>>>I am also only trying to mount the prebuilt Qt apps
Are the apps "debug" versions? A debug version can be several hundred kbytes while a stripped version is usually ten's of kbytes.Dennis Kellly2013-03-19T11:40:57Zpost99978: Re: Running Qt 4.7.1 for QNX on the Freescale iMX28EVK boardRoy Marshhttp://community.qnx.com/sf/go/post999782013-03-19T09:29:07Z2013-03-19T09:29:07ZDennis,
Thanks for your response.
It is certainly interesting to see the amount of memory required to run even simple apps.
Re your comments, at present I am not running a Photon system which I believe would be required for vsysnc.
I am also only trying to mount the prebuilt Qt apps and I am not building apps from source yet.
Essentially then I am putting the ifs together for a demo of Qt.
Everything seems to point to lack of lib space hence my interest in determining if any other users are running on imx28.
A QNX ticket has confirmed the 32M limitation but the libs seem to fail on a cumulative total of 18-22Mbytes of dll size.
Perhaps there is an internal limit to the amount of dll space which could be increased?
It does seem however the iMX28 is probably not man enough for the job.
However if you have any revelations I would love to hear them!
Many thanks,
Roy.Roy Marsh2013-03-19T09:29:07Zpost99972: Re: Running Qt 4.7.1 for QNX on the Freescale iMX28EVK boardDennis Kelllyhttp://community.qnx.com/sf/go/post999722013-03-18T22:23:38Z2013-03-18T22:23:38ZRoy-
I suppose it may be possible you are running into the 32M per process limit.
I took a look at physical memory use on beagle-xm. With cEasy (or qTstat or aMeter or speedo) running on beagle, physical memory use goes up by about 30M.
With webvu (webkit) on beagle memory use goes up by about 46M !
It looks like you 'might' squeak under the ARM 32M virtual address limit (pre-arm-v6) if you use QtDeclarative. However, without QtDeclarative, memory demands should be lower.Dennis Kellly2013-03-18T22:23:38Zpost99967: Re: Running Qt 4.7.1 for QNX on the Freescale iMX28EVK boardDennis Kelllyhttp://community.qnx.com/sf/go/post999672013-03-18T20:21:30Z2013-03-18T20:21:30ZRoy-
Sounds like you have the basics. Does "vsync" run on your board?
DennisDennis Kellly2013-03-18T20:21:30Zpost99966: Re: Running Qt 4.7.1 for QNX on the Freescale iMX28EVK boardRoy Marshhttp://community.qnx.com/sf/go/post999662013-03-18T20:18:32Z2013-03-18T20:18:32ZHi Dennis,
Yes I have put the binaries in their correct directories. For mx28 I use the armle.
For the printout with this post I had the objects on a usb stick for convenience of testing but I have built it in an ifs and had the same result. I am literally using only the libs and built programs supplied in the qt_qnx_2011-02-24b.zip
The bsp for the EVK board is straight from the QNX bsp's and the ifs is built with the QNX system builder.
My IDE is 650 (not the SP1).
I have also built an iMX53 on a different EVK with the armv7 libs and that works and presents a screen for qtdemo and mainwindow so I know I've got the right structure.
Thanks.Roy Marsh2013-03-18T20:18:32Zpost99964: Re: Running Qt 4.7.1 for QNX on the Freescale iMX28EVK boardDennis Kelllyhttp://community.qnx.com/sf/go/post999642013-03-18T19:27:36Z2013-03-18T19:27:36ZJust as a sanity check, you have installed the "arm" libraries, and not the armv7 libraries.. ?Dennis Kellly2013-03-18T19:27:36Zpost99961: Running Qt 4.7.1 for QNX on the Freescale iMX28EVK boardRoy Marshhttp://community.qnx.com/sf/go/post999612013-03-18T17:09:51Z2013-03-18T17:09:51ZHas anyone run the prebuilt objects on the fREESCALE imx28evk?
I can get the system to start loading a demo (eg 'mainwindow') but it appears unable to complete loading the dlls required. The process stops as follows (using ldd to illustrate the laoding problem):-
# ldd /fs/Qt_mx28/embeddeddialogs
/fs/Qt_mx28/embeddeddialogs:
libQtGui.so.4 => /fs/Qt_mx28/lib/libQtGui.so.4 (0x1100000)
libQtNetwork.so.4 => /fs/Qt_mx28/lib/libQtNetwork.so.4 (0x1e00000)
libsocket.so.3 => /dev/shmem/libsocket.so.3 (0x1080000)
ldd:FATAL: Could not load library libQtCore.so.4
Is this simply that the 32MByte process space limitation prevents the dlls loading?
Thanks.Roy Marsh2013-03-18T17:09:51Zpost99128: Qt, QNX and Beagleboard-xMPatrick N.http://community.qnx.com/sf/go/post991282013-02-07T00:13:00Z2013-02-07T00:13:00ZHi @all!
I was told that I should use Qt on my Beagleboard for a GUI. I also found a doku about changing a Qt Creator project into a QNX project. I still don´t really get this Qt thing, but from what I understood is that I can write the GUI in the Qt Creator and then add it into my Beagleboard BSP.
My question would be:
How do I have to add the resulting files from Qt into the BSP-package (and especially where?)?
I am still new to QNX so the structure and the language I have to use is really hard for me to understand...
Also because I don´t know how I have to work with the structure from the BSP (But I think this is a topic for another forum-section :) )Patrick N.2013-02-07T00:13:00Zpost99072: Re: QT for Windows 7Seyfettin Süngerhttp://community.qnx.com/sf/go/post990722013-02-05T13:46:19Z2013-02-05T13:46:19ZDenis,
Thanks for support, but I don't want to dirty this forum up.
Could you please also add this comment to other post too.
Regards,Seyfettin Sünger2013-02-05T13:46:19Zpost99069: Re: QT for Windows 7Dennis Kelllyhttp://community.qnx.com/sf/go/post990692013-02-05T13:42:42Z2013-02-05T13:42:42ZYes. 4.7.1 or 4.8.* will work with current released io-display.
There are many hints on this forum, but probably the most comprehensive is:
http://dl.dropbox.com/u/13676760/qt_debugging_rev2.pdf
It contains links to some programs which you can build and run, as well as some preconfigured target images.
DennisDennis Kellly2013-02-05T13:42:42Zpost99068: Re: RE: QT for Windows 7Seyfettin Süngerhttp://community.qnx.com/sf/go/post990682013-02-05T13:42:24Z2013-02-05T13:42:24ZSo what about previous version?
For example : 4.8.1 or others?
If there is a way to do my wishes, then could you please tell me how can I
run a QT application on a board where QNX is running.
Regards,
Seyfettin SungerSeyfettin Sünger2013-02-05T13:42:24Zpost99066: QT for Windows 7Seyfettin Süngerhttp://community.qnx.com/sf/go/post990662013-02-05T13:35:54Z2013-02-05T13:35:54ZSo what about previous version?
For example : 4.8.1 or others?
If there is a way to do my wishes, then could you please tell me how can I
run a QT application on a board where QNX is running.
Regards,
Seyfettin SungerSeyfettin Sünger2013-02-05T13:35:54Zpost99064: Re: RE: QT for Windows 7Dennis Kelllyhttp://community.qnx.com/sf/go/post990642013-02-05T13:30:50Z2013-02-05T13:30:50ZYou can only use Qt5 with QNX "UI Core" - which is not yet available for 6.5 SP1.
While NDK uses a version of Core UI, there have been changes which like make it incompatible with QNX 6.5 SP1 and/or current Qt5.Dennis Kellly2013-02-05T13:30:50Zpost99063: RE: QT for Windows 7Seyfettin Süngerhttp://community.qnx.com/sf/go/post990632013-02-05T13:19:50Z2013-02-05T13:19:50ZDear Denis,
I use Windows7 Home Edition.
Maybe, you misunderstood me.
I want to do below thins;
First what kind of environment do I have?
. Windows 7 Home Edition
. Not installed QT5
(qt-windows-opensource-5.0.1-mingw47_32-x86-offline.exe)
. An ARMv7 based board on which QNX 6.5 can run.
What I want to do
. I heard QT5 has ported to QNX. If not, which version should I use.
. Develop a simple qt applications with qmls.
. Then cross-compile it on Windows (cmd screen) for ARM7.
. Then add the cross-compiled file to the BSP image.
. Run it on the board.
I hope, I was clear enough what I would like to with QT & QNX.
PS: can I use Blackberry Native SDK for above purposes?
Thanks for support Denis.
Seyfettin SungerSeyfettin Sünger2013-02-05T13:19:50Zpost99062: Re: QT for Windows 7Dennis Kelllyhttp://community.qnx.com/sf/go/post990622013-02-05T13:02:45Z2013-02-05T13:02:45ZWhat version of Qt?Dennis Kellly2013-02-05T13:02:45Zpost99061: QT for Windows 7Seyfettin Süngerhttp://community.qnx.com/sf/go/post990612013-02-05T12:54:58Z2013-02-05T12:54:58ZHello People,
Is there anyone who can help me to do cross-compile for qt QNX on Windows.
Why Windows is always problem for me while doing some configuration on it.
Please let me know if there is any documantation that I can port my QT application to my ARM board?
I am looking forward to your support.
Best regards,Seyfettin Sünger2013-02-05T12:54:58Zpost98525: Re: QNX, QT5 and PPCGrant Courvillehttp://community.qnx.com/sf/go/post985252013-01-11T16:53:51Z2013-01-11T16:53:51Z> Grant Courville wrote:
> > X86 support is firmly part of our roadmap and have been working on
> accelerated Intel GPU support ... you will this as well in the coming months.
> >
> > The bottom line is that when it comes to Qt support on a realtime OS
> platform, QNX is absolutely your best option. We have a Qt4.x port, Qt5 port,
> QtCreator 2.6 port
>
> That means QSS is going to support, offering and selling Qt xx for x86
> systems ?
Commercial licensing for Qt is owned exclusively by Digia.
You can also obtain Qt under the LGPL license.
QNX has been working closely with KDAB and Digia and others to ensure that Qt for QNX is ported and available for our customer base.
In terms of "selling" Qt, if you want to purchase Qt commercial licenses, you need to contact Digia.
technical support for Qt is provided by KDAB, Digia (for commercial licensees) and of course teh Qt community at large. At this time, we (QNX Software Systems) do not offer direct fee-based support for Qt as we have deemed it better for this to come from expert Qt companies such as KDAB, Digia and others.
> > and continue to invest heavily in integrating and optimizing Qt technology
> for QNX. The only thing we are dealing with at the moment is coordinating
> availability of the latest Qt releases with the latest technology from QNX.
>
> Are there any roadmaps for polishing up the "latest technology" for the
> support of PCIe, APIC and MSI for x86 systems??
Yes. We are working on locking down the feature set for our next major OS release and will communicate this once we have gone through proper due diligence and processes.
Hope this helps.
>
> --Armin
>Grant Courville2013-01-11T16:53:51Zpost98523: Re: QNX, QT5 and PPCArmin Steinhoffhttp://community.qnx.com/sf/go/post985232013-01-11T16:45:57Z2013-01-11T16:45:57ZGrant Courville wrote:
> X86 support is firmly part of our roadmap and have been working on accelerated Intel GPU support ... you will this as well in the coming months.
>
> The bottom line is that when it comes to Qt support on a realtime OS platform, QNX is absolutely your best option. We have a Qt4.x port, Qt5 port, QtCreator 2.6 port
That means QSS is going to support, offering and selling Qt xx for x86
systems ?
> and continue to invest heavily in integrating and optimizing Qt technology for QNX. The only thing we are dealing with at the moment is coordinating availability of the latest Qt releases with the latest technology from QNX.
Are there any roadmaps for polishing up the "latest technology" for the
support of PCIe, APIC and MSI for x86 systems??
--ArminArmin Steinhoff2013-01-11T16:45:57Zpost98522: Re: QNX, QT5 and PPCGrant Courvillehttp://community.qnx.com/sf/go/post985222013-01-11T16:30:27Z2013-01-11T16:30:27ZX86 support is firmly part of our roadmap and have been working on accelerated Intel GPU support ... you will this as well in the coming months.
The bottom line is that when it comes to Qt support on a realtime OS platform, QNX is absolutely your best option. We have a Qt4.x port, Qt5 port, QtCreator 2.6 port and continue to invest heavily in integrating and optimizing Qt technology for QNX. The only thing we are dealing with at the moment is coordinating availability of the latest Qt releases with the latest technology from QNX.Grant Courville2013-01-11T16:30:27Zpost98521: Re: QNX, QT5 and PPCArmin Steinhoffhttp://community.qnx.com/sf/go/post985212013-01-11T16:09:48Z2013-01-11T16:09:48ZGrant Courville wrote:
> I just noticed your reference to PPC in your title. If by this you mean "PowerPC", note that QNX is not investing in Qt or any graphics support for PowerPC platforms from a roadmap perspective.
Are the x86 systems also dead ends ??
--Armin
>
>
>
> _______________________________________________
>
> Qt General
> http://community.qnx.com/sf/go/post98520
> To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com
>Armin Steinhoff2013-01-11T16:09:48Zpost98520: Re: QNX, QT5 and PPCGrant Courvillehttp://community.qnx.com/sf/go/post985202013-01-11T15:52:38Z2013-01-11T15:52:38ZI just noticed your reference to PPC in your title. If by this you mean "PowerPC", note that QNX is not investing in Qt or any graphics support for PowerPC platforms from a roadmap perspective.Grant Courville2013-01-11T15:52:38Zpost98519: Re: QNX, QT5 and PPCGrant Courvillehttp://community.qnx.com/sf/go/post985192013-01-11T15:47:28Z2013-01-11T15:47:28ZThe UI Early Access Program (UI EAP) will provide access to the experimental versions of the QNX's new composition manager, GPU technology and WFD drivers. Access to this will be limited at first until we are ready to expand availability to a broader target audience (hardware platforms, etc).
We have made a significant investment in graphics technology so that we can take advantage of some of the GPU acceleration and allow seamless integrated support for multiple UI/graphics technologies (Qt, OpenGL ES, StoryBoard, Elektrobit).
The UI EAP will available in Q1 this year (within the next 2 months).
if you need to use Qt "now" (in advance of the UI EAP technology availability), then you should use Qt 4.7x or Qt 4.8x which is supported buy the QNX GF framework.
KDAB have been our primary partner when it comes to Qt so if you need any specific help with Qt, contact KDAB (www.kdab.com; till@kdab.com).Grant Courville2013-01-11T15:47:28Zpost98517: Re: QNX, QT5 and PPCArmin Steinhoffhttp://community.qnx.com/sf/go/post985172013-01-11T14:49:56Z2013-01-11T14:49:56ZMichael Tasche wrote:
> Hi all,
>
> after QT 5 has been released, I tried to build it for QNX 6.5 SP1.
> I ended with the Info, that I need the new QNX "Screen" Subsystem, used on Blackberry 10.
>
> Well, my QSSL representation told me following:
> - I have to wait for an experimental prerelease of "Screen".
> - "Screen" will not be released for PPC !?!?
>
> Can somebody coment this?
> Do I only get target support for CPU's, running on Blackberry devices/emulators in the future?
Something heart about support of x86 systems ?
--Armin
>
> Kind Regards
> Michael
>
>
>
>
> _______________________________________________
>
> Qt General
> http://community.qnx.com/sf/go/post98510
> To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com
>Armin Steinhoff2013-01-11T14:49:56Zpost98510: QNX, QT5 and PPCMichael Taschehttp://community.qnx.com/sf/go/post985102013-01-11T12:55:58Z2013-01-11T12:55:58ZHi all,
after QT 5 has been released, I tried to build it for QNX 6.5 SP1.
I ended with the Info, that I need the new QNX "Screen" Subsystem, used on Blackberry 10.
Well, my QSSL representation told me following:
- I have to wait for an experimental prerelease of "Screen".
- "Screen" will not be released for PPC !?!?
Can somebody coment this?
Do I only get target support for CPU's, running on Blackberry devices/emulators in the future?
Kind Regards
MichaelMichael Tasche2013-01-11T12:55:58Zpost98162: Re: Qt example with tabsArmin Steinhoffhttp://community.qnx.com/sf/go/post981622012-12-15T20:17:34Z2012-12-15T20:17:34Z> Armin wrote:
[clip]
>> The next Webinare about automative solutions will argue against
>> "dangerous" open source third party software.
That webinare was a classical case in "barking at the wrong tree".
The right tree could be: http://www.mozilla.org/en-US/firefoxos/
Nice that RIM is able to provide the base for a "plan B" !
--ArminArmin Steinhoff2012-12-15T20:17:34Zpost97963: Re: Qt example with tabsArmin Steinhoffhttp://community.qnx.com/sf/go/post979632012-12-11T09:07:50Z2012-12-11T09:07:50ZGrant Courville wrote:
> The BB10 Qt SDK is pre-Qt5. Also,
really ? It is specified as 4.8.x ... it supports also x86 systems!
> QNX 6.5 does not include the graphics framework (i.e. composition manager) that is used by BB10.
I don't see a relationship with this version of Qt and the composition
manager ... but I have still to test it!
>
> You will see much more Qt activity from QNX and RIM in the coming months...
There is since a long time a lot of Qt activity from RIM ... also HTML5
is strong supported by open source solutions.
In the moment I don't see any activities from QSS in order to support Qt
or first class open source HTML5 solutions.
When I follow the Webinars from QSS I see simply warnings against third
party software and very old fairy tales about the Linux kernel.
I hope the QSS marketing doesn't believe what they are telling ...
The next Webinare about automative solutions will argue against
"dangerous" open source third party software.
How can I belive that QSS will support Qt and HTML5 in the same extent
as RIM ? Isn't it that QSS is a sub of RIM ??
--Armin
>
> Grant
>
>> BTW ... the new SDK of BB10 include a complete development environment
>> (Momentics based) for Qt and QNX 6.5 !!
>>
>> --Armin
>>
>> Dennis Kellly wrote:
>>> Description of a very simple "tabbed" UI app is posted here. Links to the
>> code are contained within document.
>>> http://dl.dropbox.com/u/13676760/tabs.pdf
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>>
>>> Qt General
>>> http://community.qnx.com/sf/go/post97442
>>> To cancel your subscription to this discussion, please e-mail general-qt-
>> unsubscribe@community.qnx.com
>
>
>
>
>
> _______________________________________________
>
> Qt General
> http://community.qnx.com/sf/go/post97951
> To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com
>Armin Steinhoff2012-12-11T09:07:50Zpost97951: Re: Qt example with tabsGrant Courvillehttp://community.qnx.com/sf/go/post979512012-12-10T21:25:57Z2012-12-10T21:25:57ZThe BB10 Qt SDK is pre-Qt5. Also, QNX 6.5 does not include the graphics framework (i.e. composition manager) that is used by BB10.
You will see much more Qt activity from QNX and RIM in the coming months...
Grant
>
> BTW ... the new SDK of BB10 include a complete development environment
> (Momentics based) for Qt and QNX 6.5 !!
>
> --Armin
>
> Dennis Kellly wrote:
> > Description of a very simple "tabbed" UI app is posted here. Links to the
> code are contained within document.
> >
> > http://dl.dropbox.com/u/13676760/tabs.pdf
> >
> >
> >
> >
> >
> >
> > _______________________________________________
> >
> > Qt General
> > http://community.qnx.com/sf/go/post97442
> > To cancel your subscription to this discussion, please e-mail general-qt-
> unsubscribe@community.qnx.com
> >
>Grant Courville2012-12-10T21:25:57Zpost97950: Re: Qt example with tabsArmin Steinhoffhttp://community.qnx.com/sf/go/post979502012-12-10T21:22:27Z2012-12-10T21:22:27ZBTW ... the new SDK of BB10 include a complete development environment
(Momentics based) for Qt and QNX 6.5 !!
--Armin
Dennis Kellly wrote:
> Description of a very simple "tabbed" UI app is posted here. Links to the code are contained within document.
>
> http://dl.dropbox.com/u/13676760/tabs.pdf
>
>
>
>
>
>
> _______________________________________________
>
> Qt General
> http://community.qnx.com/sf/go/post97442
> To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com
>Armin Steinhoff2012-12-10T21:22:27Zpost97822: s3D SupportSeyfettin Süngerhttp://community.qnx.com/sf/go/post978222012-12-05T15:41:05Z2012-12-05T15:41:05ZDear All,
Is there anybody who can share information about s3D support? Can QNX support it?
Regards,Seyfettin Sünger2012-12-05T15:41:05Zpost97542: Re: qt 4.8.3 on mpc5121 with opengl under QNX 6.5.0SP1Michael Taschehttp://community.qnx.com/sf/go/post975422012-11-28T09:35:58Z2012-11-28T09:35:58Z> Is your 5121 system running argb8888?
If my aystem is configured argb8888 or rgb888, qt requests "type=es1 rgba=8,8,8,0 surface-type=window"
If my aystem is configured rgb565, qt requests "type=es1 rgba=5,6,5,0 surface-type=window"
Both variants do not work.
QT only requests configs without alpha channel, why?
Can I configure that?
Is argb the same as rgba?
display.conf only works with argb8888, but not with rgba8888.
Regards
Michael
>
> /etc/system/config/display.conf
>
> device {
> drivername=mpc5121
> vid=0
> did=0
> deviceindex=0
> modeopts=/etc/system/config/mpc5121.conf
> display {
> xres=1024
> yres=768
> refresh=60
> pixel_format=argb8888
> }
> }
>
> If system is configured for argb8888, and Qt wants "rgba=5,6,5,0" then it
> won't load. It seems you would have to reconfigure io-display for "rgb565" -
> which I am not sure the driver supports. OR somehow get Qt to want argb8888.Michael Tasche2012-11-28T09:35:58Zpost97518: Re: qt 4.8.3 on mpc5121 with opengl under QNX 6.5.0SP1Dennis Kelllyhttp://community.qnx.com/sf/go/post975182012-11-27T20:05:27Z2012-11-27T20:05:27ZIs your 5121 system running argb8888?
/etc/system/config/display.conf
device {
drivername=mpc5121
vid=0
did=0
deviceindex=0
modeopts=/etc/system/config/mpc5121.conf
display {
xres=1024
yres=768
refresh=60
pixel_format=argb8888
}
}
If system is configured for argb8888, and Qt wants "rgba=5,6,5,0" then it won't load. It seems you would have to reconfigure io-display for "rgb565" - which I am not sure the driver supports. OR somehow get Qt to want argb8888.Dennis Kellly2012-11-27T20:05:27Zpost97481: qt 4.8.3 on mpc5121 with opengl under QNX 6.5.0SP1Michael Taschehttp://community.qnx.com/sf/go/post974812012-11-27T11:39:22Z2012-11-27T11:39:22ZHi all,
I am testing qt 4.8.3 against the ppc mpc5121 cpu.
It seems to work very well, if I do not try to use opengl.
I have tested following 2 configurations:
a) ./configure -prefix /opt/qt-qnx650/4.8.3/ppcbe -xplatform qws/qnx-ppc-g++ -embedded powerpc -no-gfx-linuxfb -no-mouse-linuxtp -no-kbd-tty -no-qt3
support -qt-gfx-qnx -qt-mouse-qnx -qt-kbd-qnx -no-exceptions -confirm-license -no-webkit -opengl es2
b) ./configure -prefix /opt/qt-qnx650/4.8.3/ppcbe -xplatform qws/qnx-ppc-g++ -embedded powerpc -no-gfx-linuxfb -no-mouse-linuxtp -no-kbd-tty -no-qt3
support -qt-gfx-qnx -qt-mouse-qnx -qt-kbd-qnx -no-exceptions -confirm-license -no-webkit -opengl es1 -no-openvg
(Without -no-openvg in case b) I got compile problems.
I use this driver:
NAME=devg-mpc5121.so
DESCRIPTION=Graphics driver dll for Freescale 5121e
DATE=2008/11/07-18:33:33-EST
STATE=stable
HOST=CControl
USER=ccontrol
VERSION=6.4.0
TAGID=2406
and got following error:
root@mecp512x:/qt/examples/opengl/hellogl_es>./hellogl_es -qws
QQnxScreen: Attached to Device, number of displays: 1
QQnxScreen: Attached to Display 0, resolution 1024x768, refresh 60 Hz
QQnxMouseHandler: connected.
QWSQnxKeyboardHandler: connected.
QEglContext::chooseConfig(): Could not find a suitable EGL configuration
Requested: "type=es1 rgba=5,6,5,0 surface-type=window"
Available:
"id=1 type=es1 rgba=8,8,8,8 surface-type=window,pixmap,pbuffer,1415
caveat=none level=1 max-pbuffer-size=2048x2048
native-renderable=true visual-id=0 visual-type=5152
bind-texture=no-rgb,rgba min-swap-interval=255
max-swap-interval=0"
"id=2 type=es1 rgba=8,8,8,8 surface-type=window,pixmap,pbuffer,1415
caveat=none level=2 max-pbuffer-size=2048x2048
native-renderable=true visual-id=0 visual-type=5152
bind-texture=no-rgb,rgba min-swap-interval=255
max-swap-interval=0"
"id=3 type=es1 rgba=8,8,8,8 surface-type=window,pixmap,pbuffer,1031
caveat=none level=1 max-pbuffer-size=2048x2048
native-renderable=false visual-id=2 visual-type=5152
bind-texture=no-rgb,no-rgba min-swap-interval=255
max-swap-interval=0"
"id=4 type=es1 rgba=8,8,8,8 surface-type=window,pixmap,pbuffer,1031
caveat=none level=2 max-pbuffer-size=2048x2048
native-renderable=false visual-id=2 visual-type=5152
bind-texture=no-rgb,no-rgba min-swap-interval=255
max-swap-interval=0"
"id=5 type=es1 rgba=8,8,8,8 depth=28 surface-type=window,pixmap,pbuffer,1031
caveat=none level=1 max-pbuffer-size=2048x2048
native-renderable=false visual-id=5 visual-type=5152
bind-texture=no-rgb,no-rgba min-swap-interval=255
max-swap-interval=0"
"id=6 type=es1 rgba=8,8,8,8 depth=28 surface-type=window,pixmap,pbuffer,1031
caveat=none level=2 max-pbuffer-size=2048x2048
native-renderable=false visual-id=5 visual-type=5152
bind-texture=no-rgb,no-rgba min-swap-interval=255
max-swap-interval=0"
"id=7 type=es1 rgba=8,8,8,8 surface-type=window,pixmap,pbuffer,1031
caveat=none level=1 max-pbuffer-size=2048x2048
native-renderable=false visual-id=8 visual-type=5152
samples=4 sample-buffers=1 bind-texture=no-rgb,no-rgba
min-swap-interval=255 max-swap-interval=0"
"id=8 type=es1 rgba=8,8,8,8 surface-type=window,pixmap,pbuffer,1031
caveat=none level=2 max-pbuffer-size=2048x2048
native-renderable=false visual-id=8 visual-type=5152
samples=4 sample-buffers=1 bind-texture=no-rgb,no-rgba
min-swap-interval=255 max-swap-interval=0"
"id=9 type=es1 rgba=8,8,8,8 depth=28 surface-type=window,pixmap,pbuffer,1031
caveat=none level=1 max-pbuffer-size=2048x2048
native-renderable=false visual-id=11 visual-type=5152
samples=4 sample-buffers=1 bind-texture=no-rgb,no-rgba
min-swap-interval=255 max-swap-interval=0"
"id=10 type=es1 rgba=8,8,8,8 depth=28 surface-type=window,pixmap,pbuffer,1031
caveat=none level=2 max-pbuffer-size=2048x2048
native-renderable=false visual-id=11 visual-type=5152
samples=4 sample-buffers=1 bind-texture=no-rgb,no-rgba
min-swap-interval=255 max-swap-interval=0"
"id=11 type=es1 rgba=5,6,5,0 surface-type=window,pixmap,pbuffer,1415
caveat=none level=1 max-pbuffer-size=2048x2048
native-renderable=true visual-id=0 visual-type=4880
bind-texture=rgb,no-rgba min-swap-interval=255
max-swap-interval=0"
"id=12 type=es1 rgba=5,6,5,0 surface-type=window,pixmap,pbuffer,1415
caveat=none level=2 max-pbuffer-size=2048x2048
native-renderable=true visual-id=0 visual-type=4880
bind-texture=rgb,no-rgba min-swap-interval=255
max-swap-interval=0"
"id=13 type=es1 rgba=5,6,5,0 surface-type=window,pixmap,pbuffer,1031
caveat=none level=1 max-pbuffer-size=2048x2048
native-renderable=false visual-id=1 visual-type=4880
bind-texture=no-rgb,no-rgba min-swap-interval=255
max-swap-interval=0"
"id=14 type=es1 rgba=5,6,5,0 surface-type=window,pixmap,pbuffer,1031
caveat=none level=2 max-pbuffer-size=2048x2048
native-renderable=false visual-id=1 visual-type=4880
bind-texture=no-rgb,no-rgba min-swap-interval=255
max-swap-interval=0"
"id=15 type=es1 rgba=5,5,5,1 surface-type=window,pixmap,pbuffer,1415
caveat=none level=1 max-pbuffer-size=2048x2048
native-renderable=true visual-id=0 visual-type=5904
bind-texture=no-rgb,rgba min-swap-interval=255
max-swap-interval=0"
"id=16 type=es1 rgba=5,5,5,1 surface-type=window,pixmap,pbuffer,1415
caveat=none level=2 max-pbuffer-size=2048x2048
native-renderable=true visual-id=0 visual-type=5904
bind-texture=no-rgb,rgba min-swap-interval=255
max-swap-interval=0"
"id=17 type=es1 rgba=5,5,5,1 surface-type=window,pixmap,pbuffer,1031
caveat=none level=1 max-pbuffer-size=2048x2048
native-renderable=false visual-id=0 visual-type=5904
bind-texture=no-rgb,no-rgba min-swap-interval=255
max-swap-interval=0"
"id=18 type=es1 rgba=5,5,5,1 surface-type=window,pixmap,pbuffer,1031
caveat=none level=2 max-pbuffer-size=2048x2048
native-renderable=false visual-id=0 visual-type=5904
bind-texture=no-rgb,no-rgba min-swap-interval=255
max-swap-interval=0"
"id=19 type=es1 rgba=5,6,5,0 depth=28 surface-type=window,pixmap,pbuffer,1031
caveat=none level=1 max-pbuffer-size=2048x2048
native-renderable=false visual-id=4 visual-type=4880
bind-texture=no-rgb,no-rgba min-swap-interval=255
max-swap-interval=0"
"id=20 type=es1 rgba=5,6,5,0 depth=28 surface-type=window,pixmap,pbuffer,1031
caveat=none level=2 max-pbuffer-size=2048x2048
native-renderable=false visual-id=4 visual-type=4880
bind-texture=no-rgb,no-rgba min-swap-interval=255
max-swap-interval=0"
"id=21 type=es1 rgba=5,5,5,1 depth=28 surface-type=window,pixmap,pbuffer,1031
caveat=none level=1 max-pbuffer-size=2048x2048
native-renderable=false visual-id=3 visual-type=5904
bind-texture=no-rgb,no-rgba min-swap-interval=255
max-swap-interval=0"
"id=22 type=es1 rgba=5,5,5,1 depth=28 surface-type=window,pixmap,pbuffer,1031
caveat=none level=2 max-pbuffer-size=2048x2048
native-renderable=false visual-id=3 visual-type=5904
bind-texture=no-rgb,no-rgba min-swap-interval=255
max-swap-interval=0"
"id=23 type=es1 rgba=5,6,5,0 surface-type=window,pixmap,pbuffer,1031
caveat=none level=1 max-pbuffer-size=2048x2048
native-renderable=false visual-id=7 visual-type=4880
samples=4 sample-buffers=1 bind-texture=no-rgb,no-rgba
min-swap-interval=255 max-swap-interval=0"
"id=24 type=es1 rgba=5,6,5,0 surface-type=window,pixmap,pbuffer,1031
caveat=none level=2 max-pbuffer-size=2048x2048
native-renderable=false visual-id=7 visual-type=4880
samples=4 sample-buffers=1 bind-texture=no-rgb,no-rgba
min-swap-interval=255 max-swap-interval=0"
"id=25 type=es1 rgba=5,5,5,1 surface-type=window,pixmap,pbuffer,1031
caveat=none level=1 max-pbuffer-size=2048x2048
native-renderable=false visual-id=6 visual-type=5904
samples=4 sample-buffers=1 bind-texture=no-rgb,no-rgba
min-swap-interval=255 max-swap-interval=0"
"id=26 type=es1 rgba=5,5,5,1 surface-type=window,pixmap,pbuffer,1031
caveat=none level=2 max-pbuffer-size=2048x2048
native-renderable=false visual-id=6 visual-type=5904
samples=4 sample-buffers=1 bind-texture=no-rgb,no-rgba
min-swap-interval=255 max-swap-interval=0"
"id=27 type=es1 rgba=5,6,5,0 depth=28 surface-type=window,pixmap,pbuffer,1031
caveat=none level=1 max-pbuffer-size=2048x2048
native-renderable=false visual-id=10 visual-type=4880
samples=4 sample-buffers=1 bind-texture=no-rgb,no-rgba
min-swap-interval=255 max-swap-interval=0"
"id=28 type=es1 rgba=5,6,5,0 depth=28 surface-type=window,pixmap,pbuffer,1031
caveat=none level=2 max-pbuffer-size=2048x2048
native-renderable=false visual-id=10 visual-type=4880
samples=4 sample-buffers=1 bind-texture=no-rgb,no-rgba
min-swap-interval=255 max-swap-interval=0"
"id=29 type=es1 rgba=5,5,5,1 depth=28 surface-type=window,pixmap,pbuffer,1031
caveat=none level=1 max-pbuffer-size=2048x2048
native-renderable=false visual-id=9 visual-type=5904
samples=4 sample-buffers=1 bind-texture=no-rgb,no-rgba
min-swap-interval=255 max-swap-interval=0"
"id=30 type=es1 rgba=5,5,5,1 depth=28 surface-type=window,pixmap,pbuffer,1031
caveat=none level=2 max-pbuffer-size=2048x2048
native-renderable=false visual-id=9 visual-type=5904
samples=4 sample-buffers=1 bind-texture=no-rgb,no-rgba
min-swap-interval=255 max-swap-interval=0"
"id=31 type=es1 rgba=8,8,8,8 surface-type=window,pixmap,pbuffer,1415
caveat=slow max-pbuffer-size=2147483647x2147483647
max-pbuffer-pixels=2147483647 native-renderable=true
visual-id=0 visual-type=5152 bind-texture=no-rgb,rgba
min-swap-interval=255 max-swap-interval=0"
"id=32 type=es1 rgba=8,8,8,8 surface-type=window,pixmap,pbuffer,1031
caveat=slow max-pbuffer-size=2147483647x2147483647
max-pbuffer-pixels=2147483647 native-renderable=false
visual-id=2 visual-type=5152 bind-texture=no-rgb,no-rgba
min-swap-interval=255 max-swap-interval=0"
"id=33 type=es1 rgba=8,8,8,8 depth=28 surface-type=window,pixmap,pbuffer,1031
caveat=slow max-pbuffer-size=2147483647x2147483647
max-pbuffer-pixels=2147483647 native-renderable=false
visual-id=5 visual-type=5152 bind-texture=no-rgb,no-rgba
min-swap-interval=255 max-swap-interval=0"
"id=34 type=es1 rgba=8,8,8,8 surface-type=window,pixmap,pbuffer,1031
caveat=slow max-pbuffer-size=2147483647x2147483647
max-pbuffer-pixels=2147483647 native-renderable=false
visual-id=8 visual-type=5152 samples=4 sample-buffers=1
bind-texture=no-rgb,no-rgba min-swap-interval=255
max-swap-interval=0"
"id=35 type=es1 rgba=8,8,8,8 depth=28 surface-type=window,pixmap,pbuffer,1031
caveat=slow max-pbuffer-size=2147483647x2147483647
max-pbuffer-pixels=2147483647 native-renderable=false
visual-id=11 visual-type=5152 samples=4 sample-buffers=1
bind-texture=no-rgb,no-rgba min-swap-interval=255
max-swap-interval=0"
"id=36 type=es1 rgba=5,6,5,0 surface-type=window,pixmap,pbuffer,1415
caveat=slow max-pbuffer-size=2147483647x2147483647
max-pbuffer-pixels=2147483647 native-renderable=true
visual-id=0 visual-type=4880 bind-texture=rgb,no-rgba
min-swap-interval=255 max-swap-interval=0"
"id=37 type=es1 rgba=5,6,5,0 surface-type=window,pixmap,pbuffer,1031
caveat=slow max-pbuffer-size=2147483647x2147483647
max-pbuffer-pixels=2147483647 native-renderable=false
visual-id=1 visual-type=4880 bind-texture=no-rgb,no-rgba
min-swap-interval=255 max-swap-interval=0"
"id=38 type=es1 rgba=5,5,5,1 surface-type=window,pixmap,pbuffer,1415
caveat=slow max-pbuffer-size=2147483647x2147483647
max-pbuffer-pixels=2147483647 native-renderable=true
visual-id=0 visual-type=5904 bind-texture=no-rgb,rgba
min-swap-interval=255 max-swap-interval=0"
"id=39 type=es1 rgba=5,5,5,1 surface-type=window,pixmap,pbuffer,1031
caveat=slow max-pbuffer-size=2147483647x2147483647
max-pbuffer-pixels=2147483647 native-renderable=false
visual-id=0 visual-type=5904 bind-texture=no-rgb,no-rgba
min-swap-interval=255 max-swap-interval=0"
"id=40 type=es1 rgba=5,6,5,0 depth=28 surface-type=window,pixmap,pbuffer,1031
caveat=slow max-pbuffer-size=2147483647x2147483647
max-pbuffer-pixels=2147483647 native-renderable=false
visual-id=4 visual-type=4880 bind-texture=no-rgb,no-rgba
min-swap-interval=255 max-swap-interval=0"
"id=41 type=es1 rgba=5,5,5,1 depth=28 surface-type=window,pixmap,pbuffer,1031
caveat=slow max-pbuffer-size=2147483647x2147483647
max-pbuffer-pixels=2147483647 native-renderable=false
visual-id=3 visual-type=5904 bind-texture=no-rgb,no-rgba
min-swap-interval=255 max-swap-interval=0"
"id=42 type=es1 rgba=5,6,5,0 surface-type=window,pixmap,pbuffer,1031
caveat=slow max-pbuffer-size=2147483647x2147483647
max-pbuffer-pixels=2147483647 native-renderable=false
visual-id=7 visual-type=4880 samples=4 sample-buffers=1
bind-texture=no-rgb,no-rgba min-swap-interval=255
max-swap-interval=0"
"id=43 type=es1 rgba=5,5,5,1 surface-type=window,pixmap,pbuffer,1031
caveat=slow max-pbuffer-size=2147483647x2147483647
max-pbuffer-pixels=2147483647 native-renderable=false
visual-id=6 visual-type=5904 samples=4 sample-buffers=1
bind-texture=no-rgb,no-rgba min-swap-interval=255
max-swap-interval=0"
"id=44 type=es1 rgba=5,6,5,0 depth=28 surface-type=window,pixmap,pbuffer,1031
caveat=slow max-pbuffer-size=2147483647x2147483647
max-pbuffer-pixels=2147483647 native-renderable=false
visual-id=10 visual-type=4880 samples=4 sample-buffers=1
bind-texture=no-rgb,no-rgba min-swap-interval=255
max-swap-interval=0"
"id=45 type=es1 rgba=5,5,5,1 depth=28 surface-type=window,pixmap,pbuffer,1031
caveat=slow max-pbuffer-size=2147483647x2147483647
max-pbuffer-pixels=2147483647 native-renderable=false
visual-id=9 visual-type=5904 samples=4 sample-buffers=1
bind-texture=no-rgb,no-rgba min-swap-interval=255
max-swap-interval=0"
"id=46 type=es1 rgba=0,0,0,0 buffer-size=8 surface-type=window,pixmap,pbuffer,1415
caveat=slow max-pbuffer-size=2147483647x2147483647
max-pbuffer-pixels=2147483647 native-renderable=true
visual-id=0 visual-type=8 bind-texture=no-rgb,no-rgba
min-swap-interval=255 max-swap-interval=0"
Any ideas?
Kind regards
michaelMichael Tasche2012-11-27T11:39:22Zpost97442: Qt example with tabsDennis Kelllyhttp://community.qnx.com/sf/go/post974422012-11-26T12:40:40Z2012-11-26T12:40:40ZDescription of a very simple "tabbed" UI app is posted here. Links to the code are contained within document.
http://dl.dropbox.com/u/13676760/tabs.pdfDennis Kellly2012-11-26T12:40:40Zpost97134: Re: Qt 5 for QNXDennis Kelllyhttp://community.qnx.com/sf/go/post971342012-11-13T13:02:29Z2012-11-13T13:02:29ZQt5 does not run on the currently released graphics framework... only Qt4.Dennis Kellly2012-11-13T13:02:29Zpost97121: Re: Qt 5 for QNXTom Freedyhttp://community.qnx.com/sf/go/post971212012-11-13T06:39:07Z2012-11-13T06:39:07ZHi,
I'm trying to build QT5 with opengl ES2 for the Beagleboard-XM and the build fails on OpenGL ES 2.x auto-detection with stdint.h: No such file or directory. Any suggestions would be great!
-ThomasTom Freedy2012-11-13T06:39:07Zpost97069: ldd:FATAL: Could not load library libQtNetwork.so.4Sangwoon Chunghttp://community.qnx.com/sf/go/post970692012-11-12T00:57:55Z2012-11-12T00:57:55ZHi,
I'm working to run qtdemo on OMAPL138.
But I have an error like below.
#qtdemo -qws
..
libs: load_object: attempt load of libQtGui.so.4
debug: find_file:1151: name=libQtGui.so.4
libpath=/proc/boot:/lib:/usr/lib:/lib/dll:/opt/lib rpath=NULL
debug: searchpath:1095: name=libQtGui.so.4 path= amode=4 bufsize=1025
debug: searchpath:1095: name=libQtGui.so.4
path=/proc/boot:/lib:/usr/lib:/lib/dll:/opt/lib amode=4 bufsize=1025
debug: searchpath:1119: trying /proc/boot/libQtGui.so.4
debug: searchpath:1130:/proc/boot/libQtGui.so.4: failed (No such file or
directory)
debug: searchpath:1119: trying /lib/libQtGui.so.4
debug: searchpath:1130:/lib/libQtGui.so.4: failed (No such file or
directory)
debug: searchpath:1119: trying /usr/lib/libQtGui.so.4
debug: searchpath:1124:/usr/lib/libQtGui.so.4: success
libs: /usr/lib/libQtGui.so.4: found; real path:/usr/lib/libQtGui.so.4
libs: load_elf32: loaded lib at addr 200000(text) e4fa68(data)
libs: object libQtGui.so.4 loaded; real soname: libQtGui.so.4 loaded from:
/usr/lib/libQtGui.so.4
libs: load_object: attempt load of libQtNetwork.so.4
debug: find_file:1151: name=libQtNetwork.so.4
libpath=/proc/boot:/lib:/usr/lib:/lib/dll:/opt/lib rpath=NULL
debug: searchpath:1095: name=libQtNetwork.so.4 path= amode=4 bufsize=1025
debug: searchpath:1095: name=libQtNetwork.so.4
path=/proc/boot:/lib:/usr/lib:/lib/dll:/opt/lib amode=4 bufsize=1025
debug: searchpath:1119: trying /proc/boot/libQtNetwork.so.4
debug: searchpath:1130:/proc/boot/libQtNetwork.so.4: failed (No such file or
directory)
debug: searchpath:1119: trying /lib/libQtNetwork.so.4
debug: searchpath:1130:/lib/libQtNetwork.so.4: failed (No such file or
directory)
debug: searchpath:1119: trying /usr/lib/libQtNetwork.so.4
debug: searchpath:1124:/usr/lib/libQtNetwork.so.4: success
libs: /usr/lib/libQtNetwork.so.4: found; real
path:/usr/lib/libQtNetwork.so.4
ldd:FATAL: Could not load library libQtNetwork.so.4
#set
DL_DEBUG=1
HOME=/
IFS='
'
KSH_VERSION='@(#)PD KSH v5.2.14 99/07/13.2'
LD_LIBRARY_PATH=/proc/boot:/lib:/usr/lib:/lib/dll:/opt/lib
MAILCHECK=600
OPTIND=1
PATH=/proc/boot:/bin:/usr/bin:/opt/bin:/sbin:/usr/sbin
PHFONT=/dev/phfont
PHOTON=/dev/photon
PHOTON_PATH=/usr/photon
PPID=1
PS1='# '
PS2='> '
PS3='#? '
PS4='+ '
PWD=/
QWS_DISPLAY=qnx
QWS_KEYBOARD=qnx
QWS_MOUSE_PROTO=qnx
RANDOM=17504
SECONDS=52973
SHELL
SYSNAME=nto
TERM=qansi
TMOUT=0
VASC_SHIMDIR=/lib/dll
_=set
#
Thanks in advance for any tip.
PatrickSangwoon Chung2012-11-12T00:57:55Zpost96688: Help needed in building cEasy projectLu Lihttp://community.qnx.com/sf/go/post966882012-10-29T18:41:21Z2012-10-29T18:41:21ZHi all,
I am a beginner trying to use QT for QNX development. I downloaded the example and was just trying to build the cEasy project as the document "using momenticcs ide with qt". I installed QT 4.8.3 mingw under Windows 7.
However, I encountered the problem at the beginning. My questions are:
1. which version of qt is the doc using?
2. I can't find the mspecs as in the bat file is looking for: "unsupported/qws/qnx-i386-g++". The "qnx-i386-g++" was not in the "unsupported" folder. Is that because of the wrong version of qt?
3. when linking the project, it was looking for "libCore" ..., what I could found is only "libCore4.a" or (lib"Otherlib4".a). I changed the name of the libs but then the link error for "undefined xxx" appeared.
Any hint to help me to start?
Thank you in advance!
LouisLu Li2012-10-29T18:41:21Zpost96197: Qt Running Question?Eren Basturkhttp://community.qnx.com/sf/go/post961972012-10-10T15:55:58Z2012-10-10T15:55:58ZHi,
I'm working qt to qnx porting process. I think this process are accomplished.
When i running this command. The output of the commands as in the following.
./helloapp -qws
QQnxScreen: Attached to Device, number of displays: 1
QQnxScreen: Attached to Display 0, resolution 720x400, refresh 60 Hz
QQnxMouseHandler: Unable to open mouse device (No such file or directory)
I first time running qt app on QNX. Do you think the software works?
Not: I could not see any gui with LCD tv?
Does QNX support for LCD TV?
ThanksEren Basturk2012-10-10T15:55:58Zpost96194: Re: Qt Running ErrorEren Basturkhttp://community.qnx.com/sf/go/post961942012-10-10T15:49:36Z2012-10-10T15:49:36ZI solved this problem.
ThanksEren Basturk2012-10-10T15:49:36Zpost96163: Re: Qt Running ErrorEren Basturkhttp://community.qnx.com/sf/go/post961632012-10-09T22:29:50Z2012-10-09T22:29:50ZIs there no one to help about this error?
ThanksEren Basturk2012-10-09T22:29:50Zpost96111: Re: Qt Running ErrorEren Basturkhttp://community.qnx.com/sf/go/post961112012-10-08T21:31:48Z2012-10-08T21:31:48ZDennis Do you have any idea about this problem?
I'm trying copy directory with this command but i get error
cp -R /fs/dos/local /usr/
Please you watch this video
http://www.youtube.com/watch?v=Srl51JfKPaMEren Basturk2012-10-08T21:31:48Zpost96099: Re: Qt Running ErrorEren Basturkhttp://community.qnx.com/sf/go/post960992012-10-08T01:13:53Z2012-10-08T01:13:53ZAs far as i know, i will carry qt-qnx-armv7 directory to under /usr/local directory
i copied qt-qnx-armv7 direcory to sd card. But i can not copy .
you can look following link for my steps
http://www.youtube.com/watch?v=Srl51JfKPaM
thanksEren Basturk2012-10-08T01:13:53Zpost96098: Re: Qt Running ErrorDennis Kelllyhttp://community.qnx.com/sf/go/post960982012-10-07T23:19:39Z2012-10-07T23:19:39ZYou willl have to experiment. I can't know for sure. I told you where I put the font files on my image.Dennis Kellly2012-10-07T23:19:39Zpost96096: Re: Qt Running ErrorEren Basturkhttp://community.qnx.com/sf/go/post960962012-10-07T23:01:16Z2012-10-07T23:01:16ZI don't include font. I used 4.8.2 for create qmake. Also add prefix=/usr/local/qt-arm-v7 paramter when i creating qmake.
My fonts file /usr/local/qt-qnx-arm-v7/lib/fonts. You can look image.png
how can i include this fonts?
I need information like fonts location on beagleboard imageEren Basturk2012-10-07T23:01:16Zpost96095: Re: Qt Running ErrorDennis Kelllyhttp://community.qnx.com/sf/go/post960952012-10-07T21:59:55Z2012-10-07T21:59:55ZSo did you include the font files? There are about 80 of them in the 4.8 release. My beagle image has them at /usr/local/Trolltech/QtEmbedded-4.8.0-arm/lib/fonts.Dennis Kellly2012-10-07T21:59:55Zpost96094: Re: Qt Running ErrorEren Basturkhttp://community.qnx.com/sf/go/post960942012-10-07T21:41:59Z2012-10-07T21:41:59ZHi Dennis,
I used qt plugins path command but error still countinue
i took video for my steps. You can look youtube link
I'm waiting monday for your answers
http://www.youtube.com/watch?v=Cqo5_UEeSGM
thanksEren Basturk2012-10-07T21:41:59Zpost96086: Re: Qt Running ErrorEren Basturkhttp://community.qnx.com/sf/go/post960862012-10-06T00:13:53Z2012-10-06T00:13:53ZYou said, You will use start up script ("before you run your program... or put it in a startup script.")
i add this code bzh file
I didn't put plugins. How can i put plugins to /usr/lib/qt4/plugins?
Thanks for helpEren Basturk2012-10-06T00:13:53Zpost96083: Re: Qt Running ErrorDennis Kelllyhttp://community.qnx.com/sf/go/post960832012-10-05T21:51:31Z2012-10-05T21:51:31ZSo why didn't you use the command I gave you - before running ./helloapp -qws
export QT_PLUGIN_PATH=/usr/lib/qt4/plugins
./helloapp -qws
Did you put the plugins in /usr/lib/qt4/plugins ?Dennis Kellly2012-10-05T21:51:31Zpost96080: Re: Qt Running ErrorEren Basturkhttp://community.qnx.com/sf/go/post960802012-10-05T21:18:38Z2012-10-05T21:18:38ZHi Dennis,
You said this code export QT_PLUGIN_PATH=/usr/lib/qt4/plugins but I think this command only QT_PLUGIN_PATH=/usr/lib/qt4/plugins not export QT_PLUGIN_PATH=/usr/lib/qt4/plugins for variable
You can look youtube link
http://www.youtube.com/watch?v=hUW17EV4f8A
You can look commans.txt for my steps
I'm waiting for your answersEren Basturk2012-10-05T21:18:38Zpost96078: Re: Qt Running ErrorEren Basturkhttp://community.qnx.com/sf/go/post960782012-10-05T20:31:48Z2012-10-05T20:31:48ZI did these steps qt now, but still i getting error.
please
if you show it with a picture of these steps will be very good for meEren Basturk2012-10-05T20:31:48Zpost96076: Re: Qt Running ErrorDennis Kelllyhttp://community.qnx.com/sf/go/post960762012-10-05T20:14:27Z2012-10-05T20:14:27ZJust export the variable .. fo get qTstat
# export QT_PLUGIN_PATH=/usr/lib/qt4/plugins
before you run your program... or put it in a startup script.Dennis Kellly2012-10-05T20:14:27Zpost96075: Re: Qt Running ErrorEren Basturkhttp://community.qnx.com/sf/go/post960752012-10-05T20:11:50Z2012-10-05T20:11:50ZI have never used qstat and how can i edit qstat?
Thanks for helpEren Basturk2012-10-05T20:11:50Zpost96073: Re: Qt Running ErrorDennis Kelllyhttp://community.qnx.com/sf/go/post960732012-10-05T19:54:23Z2012-10-05T19:54:23ZQt 4.8.2 does not default the plugin path as expected. Edit /bin/qTstat on the SD card and add the following as the first line so plugin for .jpg images can be used:
export QT_PLUGIN_PATH=/usr/lib/qt4/pluginsDennis Kellly2012-10-05T19:54:23Zpost96072: Re: Qt Running ErrorEren Basturkhttp://community.qnx.com/sf/go/post960722012-10-05T19:52:04Z2012-10-05T19:52:04ZHi Dennis,
I thanks for help. I solved this problem with your support but i have a new problem.
You can look image.png for my steps. I'm will working weekend for qt porting problem. I'm waiting for your answers.
Error:
/helloapp -qws
QFontDatabase: Cannot find font directory /usr/local/qt-qnx-armv7/lib/fonts - is Qt installed correctly?
Abort
#
Thanks for helpEren Basturk2012-10-05T19:52:04Zpost96068: Re: Qt Running ErrorDennis Kelllyhttp://community.qnx.com/sf/go/post960682012-10-05T18:23:06Z2012-10-05T18:23:06ZYou are using beagle board without a network. The error is a Qt library trying to find a socket. I suppose you can start io-pkt-v4 without a driver, and the library will be happy. You'll have to try it.Dennis Kellly2012-10-05T18:23:06Zpost96067: Re: Qt Running ErrorEren Basturkhttp://community.qnx.com/sf/go/post960672012-10-05T18:19:35Z2012-10-05T18:19:35ZDennis Do you have any idea about this error?
ThanksEren Basturk2012-10-05T18:19:35Zpost96058: 3D QT Support for QNXSeyfettin Süngerhttp://community.qnx.com/sf/go/post960582012-10-05T14:06:08Z2012-10-05T14:06:08ZDear All,
Could you please share some information if it is possible to port 3D QT applications to QNX?
Do we need to add extra libraries while building host and target environment to run 3D applications?
All replies will be highly appreciated.
Regards,Seyfettin Sünger2012-10-05T14:06:08Zpost96046: Qt Running ErrorEren Basturkhttp://community.qnx.com/sf/go/post960462012-10-04T22:37:53Z2012-10-04T22:37:53ZHi ,
I'm working qnx one BeagleBoard. I have a error whey i running qt application.
My Error:
# ./helloapp -qws
QWSServerSocket::init: Address family not supported by protocol family
QWSServerSocket: unable to create socket.
QWSServerPrivate::initServer: server socket not listening: No such process
Failed to bind to /ramdisk/qtembedded-0/QtEmbedded-0
Abort
You can look this youtube link for my
http://www.youtube.com/watch?v=nZ8Ccbb-x4o
Thank you in advanceEren Basturk2012-10-04T22:37:53Zpost96020: Re: Qt Target Library Location?Eren Basturkhttp://community.qnx.com/sf/go/post960202012-10-04T10:10:39Z2012-10-04T10:10:39ZI wrote previous command incorrectly
the command must be as follows "devb-ram ram capacity=16384 &"Eren Basturk2012-10-04T10:10:39Zpost96019: Re: Qt Target Library Location?Eren Basturkhttp://community.qnx.com/sf/go/post960192012-10-04T10:06:44Z2012-10-04T10:06:44ZHi Dennis,
As far as I understand, we have created 8 Mb ramdisk this command "devb-ram ram capacity=8192 & "
but my application 11,3MB. İf I created 16MB ramdisk this command ""devb-ram ram capacity=8192 & " mDoes any problem occurs for qnx target system?Eren Basturk2012-10-04T10:06:44Zpost96018: Re: Qt Target Library Location?Eren Basturkhttp://community.qnx.com/sf/go/post960182012-10-04T09:10:01Z2012-10-04T09:10:01ZHi Dennis,
I get an error when copying helloworld app.
Error: "cp: Ran out of disk space writing /ramdisk/helloapp."
You can look follwoning link for my steps.
http://www.youtube.com/watch?v=BeOWvx49Q2QEren Basturk2012-10-04T09:10:01Zpost95995: Re: Qt Target Library Location?Dennis Kelllyhttp://community.qnx.com/sf/go/post959952012-10-03T13:15:24Z2012-10-03T13:15:24ZYes, in a script you need waitfor. When creating by hand from a shell you can't use waitfor as you noted previously.Dennis Kellly2012-10-03T13:15:24Zpost95993: Re: Qt Target Library Location?Eren Basturkhttp://community.qnx.com/sf/go/post959932012-10-03T12:47:29Z2012-10-03T12:47:29ZHi Dennis,
I created ramdisk.
Looks like you forgot "waitfor" command. I added waitfor commands and i have created ramdsik.
devb-ram ram capacity=8192 &
waitfor /dev/hd1
dinit -hq /dev/hd1t77
mount /dev/hd1t77 /ramdisk
export TMPDIR=/ramdisk
Thanks for helpEren Basturk2012-10-03T12:47:29Zpost95957: Re: Qt Target Library Location?Eren Basturkhttp://community.qnx.com/sf/go/post959572012-10-01T20:33:45Z2012-10-01T20:33:45Zalso As far as I understand, i will add this code bsh file
code: "devb-ram ram capacity=8192 &"
i will runing this code on command prompt
dinit -hq /dev/hd1t77
mount /dev/hd1t77 /ramdisk
export TMPDIR=/ramdisk
or i will add all code to bsh file?
Do I understand correctly?Eren Basturk2012-10-01T20:33:45Zpost95956: Re: Qt Target Library Location?Eren Basturkhttp://community.qnx.com/sf/go/post959562012-10-01T20:25:51Z2012-10-01T20:25:51ZHi Dennis,
thanks for answers but I could not find fs-qnx4.so in shared library. ı searched this library on google but i found only one page http://www.qnx.com/developers/docs/6.3.2/neutrino/utilities/f/fs-qnx4.so.html.
Where can I find the library?Eren Basturk2012-10-01T20:25:51Zpost95945: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?Dennis Kelllyhttp://community.qnx.com/sf/go/post959452012-10-01T12:28:27Z2012-10-01T12:28:27Z'pthread' is a Linux library. My guess is either you didn't build cEasy for QNX - or you are picking it up from the wrong place.Dennis Kellly2012-10-01T12:28:27Zpost95944: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?Remco Pothttp://community.qnx.com/sf/go/post959442012-10-01T12:22:02Z2012-10-01T12:22:02ZI'm also busy with your demo application cEasy, in Qtcreator on desktop it works very well. Now I'm trying to run it on a virtual machine which is running QNX. qmake_qnx is working fine and give me the objects files. When I run make after the qmake_qnx command I get an error, it says that it can not find the -lpthread,, but if I look in my lib folder there is no such lib as lpthread in it... maybe someone can help me solving my problem.
Thanks in advance,
RemcoRemco Pot2012-10-01T12:22:02Zpost95937: Re: Qt Target Library Location?Dennis Kelllyhttp://community.qnx.com/sf/go/post959372012-10-01T01:14:22Z2012-10-01T01:14:22Z>>>You will need to create a true ramdisk and tell Qt runtime where it is...
>>>export TMPDIR=/ramdisk
The error you just showed is why you have to create a ramdisk on the target!
Run the following commands... since the SD cards is /dev/hd0, the ramdisk should show up as /dev/hd1.
devb-ram ram capacity=8192 &
dinit -hq /dev/hd1t77
mount /dev/hd1t77 /ramdisk
export TMPDIR=/ramdisk
Note you will need executables devb-ram and dinit on your target (plus library fs-qnx4.so)Dennis Kellly2012-10-01T01:14:22Zpost95936: Re: Qt Target Library Location?Eren Basturkhttp://community.qnx.com/sf/go/post959362012-09-30T22:21:43Z2012-09-30T22:21:43ZDennis,
i copied hello world app to /tmp directory but I got a new error when running the application.
You can look youtube link for error
http://www.youtube.com/watch?v=PuGq8U1f-yU
also i saw beagle image but i have a beagleboard rev c4 not xM.
i tried qt target navigator but there are no built-in ethernet port on the BeagleBoard. I used cisco ethernet to usb converter but I learned that qnx only support axis communication ethernet to usb device
thanks for answersEren Basturk2012-09-30T22:21:43Zpost95935: Re: Qt Target Library Location?Dennis Kelllyhttp://community.qnx.com/sf/go/post959352012-09-30T19:06:00Z2012-09-30T19:06:00ZEren-
/dev/hd0t11 is a "raw" device. You have to mount it before you can see your files.
# mount -t dos /dev/hd0t11 /fs/dos
# cp /fs/dos/helloapp /tmp
Have you considered using this demo image for beagle ... rather than a very minimal bsp build?
https://dl.dropbox.com/u/13676760/qnx_bglxm.zip
(document https://dl.dropbox.com/u/13676760/qnx_bglxm.pdf)
When this image boots, it automatically mounts the SD card as "/" - so "ls /" will show your helloapp file. Additionally, this image sets up the network - so you can "paste" your file directly to the target using Mometics "target filesystem navigator".
The demo image is all setup to run Qt apps - in fact, several are installed on that image.
DennisDennis Kellly2012-09-30T19:06:00Zpost95934: Re: Qt Target Library Location?Eren Basturkhttp://community.qnx.com/sf/go/post959342012-09-30T18:27:55Z2012-09-30T18:27:55ZHi Dennis,
I've created static qmake for complie.
I statically compiled qt application. But i can't copy this application /tmp directory.
You can look error for this youtube link
http://www.youtube.com/watch?v=Ly2PL0w-y-8
i'm waiting monday for your answers
ThanksEren Basturk2012-09-30T18:27:55Zpost95931: Re: unable to execute qtdemofei suhttp://community.qnx.com/sf/go/post959312012-09-29T06:36:08Z2012-09-29T06:36:08Z> 1) Launch button/Logout/End Photon session ... will exit photon to text mode.
>
>
> 2) Login. Run "ifconfig" and determine IP address.
>
> 3) Telnet into the IP address from a different host.
>
> 4) From telnet, run '/usr/photon/bin/devi-hid -Pr kbd mouse'
>
> 5) From telnet, run 'qtdemo -qws' ... graphics should appear on console
I follow the steps , but the mouse and keyboard no response.fei su2012-09-29T06:36:08Zpost95930: Re: Qt Target Library Location?Eren Basturkhttp://community.qnx.com/sf/go/post959302012-09-29T01:25:11Z2012-09-29T01:25:11Z"BTW you can create macro's in u-boot - you don't have to enter all that stuff by hand everytime :)"
I could not find macro document on google. Can you send me someone link or document?
Normally i used bootargs command for embedded linux but i could not find like bootargs commands
Thanks for HelpEren Basturk2012-09-29T01:25:11Zpost95924: Re: Qt Target Library Location?Eren Basturkhttp://community.qnx.com/sf/go/post959242012-09-28T18:35:51Z2012-09-28T18:35:51ZI tried this commdans but i'm getting error.
I wanna only qt application run. But i don't mounted qtlib and qt app to /tmp directory.
Is there another way mounted this library?Eren Basturk2012-09-28T18:35:51Zpost95923: Re: Qt Target Library Location?Dennis Kelllyhttp://community.qnx.com/sf/go/post959232012-09-28T18:14:41Z2012-09-28T18:14:41Z"waitfor" is used in boot scripts. If you run the commands from a shell you would omit it.Dennis Kellly2012-09-28T18:14:41Zpost95921: Re: Qt Target Library Location?Eren Basturkhttp://community.qnx.com/sf/go/post959212012-09-28T17:49:12Z2012-09-28T17:49:12ZI get the following error when I try to run waitfor command.
You can look following the link for error
http://www.youtube.com/watch?v=oolyAGFB0FYEren Basturk2012-09-28T17:49:12Zpost95917: Re: Qt Target Library Location?Dennis Kelllyhttp://community.qnx.com/sf/go/post959172012-09-28T17:08:46Z2012-09-28T17:08:46Z/tmp is normally linked to /dev/shmem which (as you see) does not support creation of directories.
One soluitiion is to create a ram drive and mount that it at /tmp
devb-ram ram capacity=8192 &
waitfor /dev/hd1
dinit -hq /dev/hd1t77
mount /dev/hd1t77 /tmp
Note "hd1" may differ but likely "hd0" is mmcsd.Dennis Kellly2012-09-28T17:08:46Zpost95916: Re: Qt Target Library Location?Eren Basturkhttp://community.qnx.com/sf/go/post959162012-09-28T17:01:52Z2012-09-28T17:01:52Zsorry for previus message error
Error: "mkdir: /tmp/qtApp: Function not implemented"Eren Basturk2012-09-28T17:01:52Zpost95915: Re: Qt Target Library Location?Eren Basturkhttp://community.qnx.com/sf/go/post959152012-09-28T16:59:39Z2012-09-28T16:59:39ZHi Dennis,
I get the following error when I try to create a new directory.
Error:"I get the following error when I try to create a new directory."
i'm wanna crate two directory for mount qtlib and qtapp
First Location: /tmp/qtApp for helloworld application
Second Location : /tmp/qtLib for qt libaries
You can look image.png for errorEren Basturk2012-09-28T16:59:39Zpost95904: Re: Qt Target Library Location?Dennis Kelllyhttp://community.qnx.com/sf/go/post959042012-09-27T21:51:23Z2012-09-27T21:51:23ZServeral things...
1) Looks like I forgot "export" in my post you referred to...
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<wherever the libraries are located>
should be
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<wherever the libraries are located>
... just like the other variables!
2) You cannot execute from the SD card because the bsp did not start the driver with the right permissions:
It should look like:
devb-mmcsd-beagle cam quiet blk cache=2m dos exe=all mmcsd noac12
It is the "dos exe=all" that is missing - chmod won't work!
3) If you hadn't mounted your card at /tmp, you could have copied 'helloworld' to /tmp and then done chmod and successfully run it. Probably should mount at /dos or something like that.
BTW you can create macro's in u-boot - you don't have to enter all that stuff by hand everytime :)Dennis Kellly2012-09-27T21:51:23Zpost95902: Re: Qt Target Library Location?Eren Basturkhttp://community.qnx.com/sf/go/post959022012-09-27T21:13:59Z2012-09-27T21:13:59Zi followed your steps,
I have a new problem. I record my all operations. You can look following youtube link
Error: "sh: ./helloworld: cannot execute - Permission denied"
http://www.youtube.com/watch?v=FjL4vptSr6o
ThanksEren Basturk2012-09-27T21:13:59Zpost95891: Re: Qt Target Library Location?Eren Basturkhttp://community.qnx.com/sf/go/post958912012-09-27T15:19:58Z2012-09-27T15:19:58ZThanks for help. Anymore i can look this files.
I used "xvidcap Screen Capture" for record. You can find ubuntu software center this program.
Thanks for helpEren Basturk2012-09-27T15:19:58Zpost95889: Re: Qt Target Library Location?Dennis Kelllyhttp://community.qnx.com/sf/go/post958892012-09-27T15:15:39Z2012-09-27T15:15:39ZBTW, what app did you use to make a video directly from your pc? It produced a good video.Dennis Kellly2012-09-27T15:15:39Zpost95890: Re: Qt Target Library Location?Eren Basturkhttp://community.qnx.com/sf/go/post958902012-09-27T15:14:53Z2012-09-27T15:14:53Zı wrong write after message. ı have some problem mouting process not booting process.Eren Basturk2012-09-27T15:14:53Zpost95888: Re: Qt Target Library Location?Dennis Kelllyhttp://community.qnx.com/sf/go/post958882012-09-27T15:13:48Z2012-09-27T15:13:48Z# mount -tdos /dev/hd0t11 /tmp
# mount ... with no options should show /dev/ht0t11 on /tmp
# ls /tmp ... will not show the fileDennis Kellly2012-09-27T15:13:48Zpost95887: Re: Qt Target Library Location?Eren Basturkhttp://community.qnx.com/sf/go/post958872012-09-27T15:13:29Z2012-09-27T15:13:29ZAlso how can i see mount-text file in the sd card?
thanksEren Basturk2012-09-27T15:13:29Zpost95885: Re: Qt Target Library Location?Eren Basturkhttp://community.qnx.com/sf/go/post958852012-09-27T15:03:27Z2012-09-27T15:03:27Zi have some problem on booting process.
Although i did mounth i didn't see mount-text files. I have record my steps. You can watch my steps.
http://www.youtube.com/watch?v=4r_O0YIssY8&feature=channel&list=ULEren Basturk2012-09-27T15:03:27Zpost95834: Re: Qt Target Library Location?Eren Baştürkhttp://community.qnx.com/sf/go/post958342012-09-26T12:56:01Z2012-09-26T12:56:01ZThanks for answer . I know mounth command . I will try this steps.Eren Baştürk2012-09-26T12:56:01Zpost95831: Re: Qt Target Library Location?Dennis Kelllyhttp://community.qnx.com/sf/go/post958312012-09-26T11:50:00Z2012-09-26T11:50:00Z>>>I carry him where qt target libaries?
Actually, they can be anywhere specified by environment variable LD_LIBRARY_PATH, but the "standard" location would be /usr/lib
>>>Do I carry him sd card or after create a partition image file created by section carry him?
You can only put them on the SD card if you mount it before you try to use the libraries. If you don't know how to mount the SD card, then you must put libraries in the IFS !
The folliowing assumes Qt4...
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<wherever the libraries are located>
export QWS_DISPLAY=qnx
export QWS_KEYBOARD=qnx
export QWS_MOUSE_PROTO=qnx
You will need to create a true ramdisk and tell Qt runtime where it is...
export TMPDIR=/ramdisk
If using QML, you must deploy your content directory to the target and start your app from that directory.
http://dl.dropbox.com/u/13676760/Qt_debugging_rev2.pdf covers this starting around page 5.Dennis Kellly2012-09-26T11:50:00Zpost95829: Re: Qt Target Library Location?Armin Steinhoffhttp://community.qnx.com/sf/go/post958292012-09-26T10:20:12Z2012-09-26T10:20:12ZEren Basturk wrote:
>> Hi, Thanks for reply I'm working beagleboard not playbook but i will
>> try complie over ip for qnx rtos.
OK ... but both hardware systems are ARM based and running more or
less compatible version of QNX6.x ...
--Armin
>
>
>
>
>
>
> _______________________________________________
>
> Qt General
> http://community.qnx.com/sf/go/post95826
> To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com
>Armin Steinhoff2012-09-26T10:20:12Zpost95826: Re: Qt Target Library Location?Eren Basturkhttp://community.qnx.com/sf/go/post958262012-09-26T09:50:20Z2012-09-26T09:50:20Z>
> Hi,
>
> have you tried this: http://qt-project.org/wiki/QNX
>
> Cheers
>
> --Armin
>
> http://www.steinhoff-automation.com
>
>
> Eren Basturk wrote:
> > Hi,
> >
> > I'm working qt to qnx porting process. I've completed operations on the host
> side.
> > I can complie qt application for qnx armv7 version.
> >
> > I need some information on the target side process.
> >
> > I carry him where qt target libaries?
> >
> > Do I carry him sd card or after create a partition image file created by
> section carry him?
> >
> > Thanks for Help
> >
> >
> >
> > _______________________________________________
> >
> > Qt General
> > http://community.qnx.com/sf/go/post95822
> > To cancel your subscription to this discussion, please e-mail general-qt-
> unsubscribe@community.qnx.com
> >
>
Hi,
Thanks for reply
I'm working beagleboard not playbook but i will try complie over ip for qnx rtos.Eren Basturk2012-09-26T09:50:20Zpost95823: Re: Qt Target Library Location?Armin Steinhoffhttp://community.qnx.com/sf/go/post958232012-09-26T09:09:43Z2012-09-26T09:09:43ZHi,
have you tried this: http://qt-project.org/wiki/QNX
Cheers
--Armin
http://www.steinhoff-automation.com
Eren Basturk wrote:
> Hi,
>
> I'm working qt to qnx porting process. I've completed operations on the host side.
> I can complie qt application for qnx armv7 version.
>
> I need some information on the target side process.
>
> I carry him where qt target libaries?
>
> Do I carry him sd card or after create a partition image file created by section carry him?
>
> Thanks for Help
>
>
>
> _______________________________________________
>
> Qt General
> http://community.qnx.com/sf/go/post95822
> To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com
>Armin Steinhoff2012-09-26T09:09:43Zpost95822: Qt Target Library Location?Eren Basturkhttp://community.qnx.com/sf/go/post958222012-09-26T08:52:06Z2012-09-26T08:52:06ZHi,
I'm working qt to qnx porting process. I've completed operations on the host side.
I can complie qt application for qnx armv7 version.
I need some information on the target side process.
I carry him where qt target libaries?
Do I carry him sd card or after create a partition image file created by section carry him?
Thanks for HelpEren Basturk2012-09-26T08:52:06Zpost95776: Re: Qt image for Beagle xMCraig McDermotthttp://community.qnx.com/sf/go/post957762012-09-24T17:09:46Z2012-09-24T17:09:46Zthe sd.bsh file above has all of the SGX lines commented out?Craig McDermott2012-09-24T17:09:46Zpost95775: Re: Qt image for Beagle xMCraig McDermotthttp://community.qnx.com/sf/go/post957752012-09-24T17:08:38Z2012-09-24T17:08:38ZThe SD.bsh file has all of the SGX information commented out?Craig McDermott2012-09-24T17:08:38Zpost95692: Re: Qt Library AddingEren Baştürkhttp://community.qnx.com/sf/go/post956922012-09-19T21:28:41Z2012-09-19T21:28:41ZHi Dennis,
Do you have another idea about this error?
I need to complete the process of port. I'm waiting for help.
ThanksEren Baştürk2012-09-19T21:28:41Zpost95671: Re: Qt image for Beagle xMDennis Kelllyhttp://community.qnx.com/sf/go/post956712012-09-19T01:21:44Z2012-09-19T01:21:44ZNot sure which "version" you mean, but the Qt XM image has "SGX" uncommented...
#######################################################################
## SGX GPU driver
## Note: the Composition_Manager patch should be installed first
#######################################################################
display_msg Starting SGX GPU driver...
GRAPHICS_ROOT=/usr/lib/graphics/omap3730
/usr/lib/graphics/omap3730/pvrsrvdDennis Kellly2012-09-19T01:21:44Zpost95670: Re: Qt image for Beagle xMCraig McDermotthttp://community.qnx.com/sf/go/post956702012-09-19T01:13:59Z2012-09-19T01:13:59ZHow come SGX is commented out in this version?Craig McDermott2012-09-19T01:13:59Zpost95668: Re: Qt Library AddingEren Baştürkhttp://community.qnx.com/sf/go/post956682012-09-18T23:51:26Z2012-09-18T23:51:26Znormal-user-set.txtEren Baştürk2012-09-18T23:51:26Zpost95667: Re: Qt Library AddingEren Baştürkhttp://community.qnx.com/sf/go/post956672012-09-18T23:50:41Z2012-09-18T23:50:41Zthe error is still ongoing but anymore i have one problem.
i running set command on super user shell and normal user shell.
I'm getting the following error: ntoarmv7-g++: error trying to exec 'cc1plus': execvp: No such file or
directory
You can look attachment for output of set commandEren Baştürk2012-09-18T23:50:41Zpost95666: Re: Qt Library AddingDennis Kelllyhttp://community.qnx.com/sf/go/post956662012-09-18T22:08:13Z2012-09-18T22:08:13Z>>>I'm getting this problem when I'm super-user : ntoarmv7-g++: error trying to exec 'cc1plus': execvp: No such file or directory
>>>I'm getting this problem when I'm normal-user : ntoarmv7-g++: error: environment variables QNX_HOST and QNX_TARGET not defined
The envronment changes when you switch user. The PATH should be right when you run as the user that installed Momentics... apparently not 'root'.
You can check environment with
# set
You can fix any missing or wrong variables with...
# export QNX_HOST=....
etc.
Then re-try the build.Dennis Kellly2012-09-18T22:08:13Zpost95661: Re: Qt Library AddingEren Baştürkhttp://community.qnx.com/sf/go/post956612012-09-18T21:57:38Z2012-09-18T21:57:38Zalso i used this config:
./configure -embedded armv7 -xplatform qws/qnx-armv7-g++ -little-endian -fast -nomake examples -nomake demos -no-webkit -no-declarative -no-declarative-debug -no-qt3support -qt-gfx-qnx -qt-mouse-qnx -qt-gfx-vnc -opensource -no-gfx-linuxfb -no-kbd-tty -prefix /usr/local/qt-qnx-armv7 -prefix-install -static
qt-everywhere..4.8.2.tar.gzEren Baştürk2012-09-18T21:57:38Zpost95659: Re: Qt Library AddingEren Baştürkhttp://community.qnx.com/sf/go/post956592012-09-18T21:53:04Z2012-09-18T21:53:04ZHi Dennis,
I changed computer at the office. I wrote the previous message
Let me tell you the problem. I have two different problem.
I'm getting this problem when I'm super-user : ntoarmv7-g++: error trying to exec 'cc1plus': execvp: No such file or directory
I'm getting this problem when I'm normal-user : ntoarmv7-g++: error: environment variables QNX_HOST and QNX_TARGET not defined
What can I do about it?
Thanks for helpEren Baştürk2012-09-18T21:53:04Zpost95643: Re: Qt Library AddingSeyfettin Süngerhttp://community.qnx.com/sf/go/post956432012-09-18T14:44:29Z2012-09-18T14:44:29ZSorry. I wrote the wrong.I used this configuration.
./configure -xplatform qws/qnx-armv7-g++ -embedded armv7 -no-gfx-linuxfb -no-mouse-linuxtp -no-kbd-tty -no-qt3support -qt-gfx-qnx -qt-mouse-qnx -qt-kbd-qnx -no-exceptions -confirm-licenseSeyfettin Sünger2012-09-18T14:44:29Zpost95640: Re: Qt Library AddingDennis Kelllyhttp://community.qnx.com/sf/go/post956402012-09-18T13:51:51Z2012-09-18T13:51:51Z>>>./configure -xplatform qws/qnx-i386-g++ -embedded i386
Why does this say i386?Dennis Kellly2012-09-18T13:51:51Zpost95639: Re: Qt Library AddingEren Baştürkhttp://community.qnx.com/sf/go/post956392012-09-18T13:40:31Z2012-09-18T13:40:31ZThanks for help
I'm follwed this document but i have a new probelem.
"ntoarmv7-g++: error trying to exec 'cc1plus': execvp: No such file or directory"
You can look image.png for information
ı used this configuration.
./configure -xplatform qws/qnx-i386-g++ -embedded i386 -no-gfx-linuxfb -no-mouse-linuxtp -no-kbd-tty -no-qt3support -qt-gfx-qnx -qt-mouse-qnx -qt-kbd-qnx -no-exceptions -confirm-licenseEren Baştürk2012-09-18T13:40:31Zpost95637: Re: Qt Library AddingDennis Kelllyhttp://community.qnx.com/sf/go/post956372012-09-18T12:03:28Z2012-09-18T12:03:28ZEren-
Your .configure. line is wrong for 4.8.x . -xplatform has changed from
-xplatform unsupported/qws/qnx-i386-g++
to
-xplatform qws/qnx-i386-g++
I might help to follow these notes:
http://dl.dropbox.com/u/13676760/QtBuild.pdfDennis Kellly2012-09-18T12:03:28Zpost95632: Re: Qt Library AddingEren Baştürkhttp://community.qnx.com/sf/go/post956322012-09-18T09:12:41Z2012-09-18T09:12:41Zimage3.pngEren Baştürk2012-09-18T09:12:41Zpost95631: Re: Qt Library AddingEren Baştürkhttp://community.qnx.com/sf/go/post956312012-09-18T09:11:57Z2012-09-18T09:11:57Zimage3.pngEren Baştürk2012-09-18T09:11:57Zpost95629: Re: Qt Library AddingEren Baştürkhttp://community.qnx.com/sf/go/post956292012-09-18T09:11:40Z2012-09-18T09:11:40Zimage1.pngEren Baştürk2012-09-18T09:11:40Zpost95630: Re: Qt Library AddingEren Baştürkhttp://community.qnx.com/sf/go/post956302012-09-18T09:11:38Z2012-09-18T09:11:38Zimage2.pngEren Baştürk2012-09-18T09:11:38Zpost95628: Re: Qt Library AddingEren Baştürkhttp://community.qnx.com/sf/go/post956282012-09-18T09:10:45Z2012-09-18T09:10:45ZThanks for help Dennis,
I have new problem make stage.
I am getting the following error in the compilation stage .
"ntoarmv7-g++: error: environment variables QNX_HOST and QNX_TARGET not defined"
if you wanna more information you can look image1.png
if you wanna look the following output of commands
qconfig (image2.png)
qconfig -v (image3.png)
printenv (1.txt)
Thanks for help DennisEren Baştürk2012-09-18T09:10:45Zpost95599: Re: Qt Library AddingDennis Kelllyhttp://community.qnx.com/sf/go/post955992012-09-17T11:44:36Z2012-09-17T11:44:36ZI assume you are building for Qt4...
image5.png says "ARM version 1". It is unclear to me whether you are building for "armle-v7". Only libraries for armle-v7 are available - unless you build them yourself. BUT you should run 'v7' on beagle.
To be sure what libraries need to be included, run this against the program you built.
# ntoarmv7-objdump -x helloworld | grep NEEDED
You should see output indicating which shared libraries it is linked to.Dennis Kellly2012-09-17T11:44:36Zpost95597: Re: Qt Library AddingEren Baştürkhttp://community.qnx.com/sf/go/post955972012-09-17T07:40:42Z2012-09-17T07:40:42Zimage12.pngEren Baştürk2012-09-17T07:40:42Zpost95596: Qt Library AddingEren Baştürkhttp://community.qnx.com/sf/go/post955962012-09-17T07:40:00Z2012-09-17T07:40:00ZHi,
I'm using ubuntu 11.10. I complied qt hello world application for omap3530 beagle board.
I'm using qt_every_where and qnx_qnx.
There is an error in my Target Setup step. I complied qt hellowrold project. You can look image5.png for complie steps also if you wanna look qthelloworld application source you can look image12.png
I wanna add qt library for beagle qnx .ifs image but ı'm only added dependencies libarry. I don't know how the process would be to add.
ı have read this comments.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Qt libraries:
$ARCH/usr/lib/libQt*.so* (libQt*.so.4 on targets with no symlink support) /I could not do the process of adding
$ARCH/usr/lib/qt4/plugins/ /I could not do the process of adding
$ARCH/usr/lib/qt4/imports/ /I could not do the process of adding
Dependencies:
$ARCH/lib/libc.so.3 /i added this library with momentics ide
$ARCH/lib/libcpp.so.4 /i added this library with momentics ide
$ARCH/lib/libgf.so.1 /i added this library with momentics ide
$ARCH/lib/libm.so.2 /i added this library with momentics ide
$ARCH/lib/libsocket.so.2 /i added this library with momentics ide
$ARCH/lib/libsocket.so.3 /i added this library with momentics ide
$ARCH/lib/libstdc++.so.6 /i added this library with momentics ide
$ARCH/usr/lib/libz.so.2 /i added this library with momentics ide
Data files:
usr/share/qt4/translations/ /I could not do the process of adding
usr/photon/font_repository/ /I could not do the process of adding
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
I need to adding qt libraries for . ifs image.
Thanks for HelpsEren Baştürk2012-09-17T07:40:00Zpost95338: Re: Building poppler (pdf) with Qt problem (POSIX)Yar Perminovhttp://community.qnx.com/sf/go/post953382012-09-03T13:10:43Z2012-09-03T13:10:43ZOk, here is the answer. You need to add follow macro definitions to $CFLAGS and $CXXFLAGS:
CXXFLAGS="-D_XOPEN_SOURCE=600 -std=gnu++0x"
CFLAGS="-D_XOPEN_SOURCE=600 -std=gnu99"
Explanation from Suzuki Toshiya (poppler@lists.freedesktop.org):
«Just I've checked that current main trunk of poppler can be built with
Blackberry Playbook NDK (QNX 6.5.0), with following flags to use POSIX
environment in QNX:
CXXFLAGS="-D_XOPEN_SOURCE=600 -std=gnu++0x"
CFLAGS="-D_XOPEN_SOURCE=600 -std=gnu99"
The background of the flags are following:
-D_XOPEN_SOURCE=600
* to enable getpwnam() etc, just -D_POSIX_SOURCE is sufficient.
* to enable strtok_r(), -D_POSIX_C_SOURCE=199506 or newer is sufficient.
* to enable mkstemp(), -D_XOPEN_SOURCE=600 is needed.
-std=gnu++0x and -std=gnu99
* isfinite() is defined in GNU C, C99, and POSIX 2004.
QNX 6.5.0's header file covers POSIX 1998-2001, but not
2004, so "-std=gnu++0x" (for CXXFLAGS) or "-std=gnu99"
are required.
Regards,
mpsuzuki»Yar Perminov2012-09-03T13:10:43Zpost95198: Building poppler (pdf) with Qt problem (POSIX)Yar Perminovhttp://community.qnx.com/sf/go/post951982012-08-28T14:55:20Z2012-08-28T14:55:20ZI need a pdf support with Qt 4.7.1 in my QNX 6.5.0, installed to VMWare Workstation. I try to build poppler ver.0.20.3 (poppler.freedesktop.org) in next few steps (GCC 4.4.2.):
0) Configure, build and install all dependencies of poppler (Fontconfig-2.10.1, Cairo-1.12.2, libjpeg-8d and libpng-1.5.12).
1) Set proper environment variables to build poppler:
#!/bin/sh
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export CFLAGS="-I/usr/local/include/pixman-1 -I/usr/include/qt4 -I/usr/pkg/include"
export LDFLAGS="-L/usr/local/lib -L/x86/usr/lib -L/usr/lib -L/usr/pkg/lib"
export LIBS="-lpixman-1 -lQtGui -lQtCore -lQtNetwork -lopenjpeg"
export CXXFLAGS=${CFLAGS}
export FREETYPE_CFLAGS=-I/usr/local/include/freetype2
export FREETYPE_LIBS="-L/usr/local/lib -lfreetype"
export FONTCONFIG_CFLAGS=-I/usr/local/include/fontconfig
export FONTCONFIG_LIBS="-L/usr/local/lib -lfontconfig"
export CAIRO_CFLAGS=-I/usr/local/include/cairo
export CAIRO_LIBS="-L/usr/local/lib -lcairo"
2) Unpack and configure it (see log file in the attachment):
# ./configure --disable-jpeg
3) When I try to build poppler it fails with error in goo/gfile.cc:
# make
make all-recursive
make[1]: Entering directory `/home/ftp/poppler-0.20.3'
Making all in goo
make[2]: Entering directory `/home/ftp/poppler-0.20.3/goo'
CXX gfile.lo
gfile.cc: In function 'GooString* getHomeDir()':
gfile.cc:99: error: 'getuid' was not declared in this scope
gfile.cc: In function 'GooString* getCurrentDir()':
gfile.cc:121: error: 'getcwd' was not declared in this scope
gfile.cc: In function 'GooString* makePathAbsolute(GooString*)':
gfile.cc:437: error: 'getcwd' was not declared in this scope
gfile.cc: In function 'std::time_t getModTime(char*)':
gfile.cc:455: error: no matching function for call to 'stat::stat(char*&, stat*)'
/usr/qnx650/target/qnx6/usr/include/sys/stat.h:133: note: candidates are: stat::stat()
/usr/qnx650/target/qnx6/usr/include/sys/stat.h:133: note: stat::stat(const stat&)
gfile.cc: In function 'GBool openTempFile(GooString**, std::FILE**, const char*)':
gfile.cc:531: error: 'mkstemp' was not declared in this scope
gfile.cc: In constructor 'GDirEntry::GDirEntry(char*, char*, GBool)':
gfile.cc:715: error: no matching function for call to 'stat::stat(char*, stat*)'
/usr/qnx650/target/qnx6/usr/include/sys/stat.h:133: note: candidates are: stat::stat()
/usr/qnx650/target/qnx6/usr/include/sys/stat.h:133: note: stat::stat(const stat&)
make[2]: *** [gfile.lo] Error 1
make[2]: Leaving directory `/home/ftp/poppler-0.20.3/goo'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ftp/poppler-0.20.3'
make: *** [all] Error 2
-
Functions getuid(), getcwd() and getcwd() are in my <pwd.h> file, but their declarations are covered by macros:
#ifdef __EXT_POSIX1_198808
/* declarations */
#endif
Error with stat::stat(char*&, stat*) because g++ trying to call struct constructor instead of call function stat(char*&, stat*), that declared in <sys/stat.h>.
Declaration of mkstemp() in <stdlib.h> is macro protected too:
#if defined(__EXT_XOPEN_EX)
/* declarations */
#endif
I tried to build poppler in Win7 (msys+MinGW) and everything was ok, it's works. Poppler binaries for pkgsrc from ftp.netbsd.org are without \Splash\ support, but I need this backend.
Define macros manually in $CFLAGS ("... -D__EXT_XOPEN_EX -D__EXT_POSIX1_198808") did not solve my problem.
-
So, my questions:
1) What is the correct way to set POSIX version in headers?
2) Why stat() function can't be called?
3) What I need to do to define __EXT_XOPEN_EX macro?
Thanks.Yar Perminov2012-08-28T14:55:20Zpost95124: Qt 5 for QNXGrant Courvillehttp://community.qnx.com/sf/go/post951242012-08-24T17:00:51Z2012-08-24T17:00:51ZHi,
I wanted to post a quick update regarding the status of Qt on QNX.
Generally speaking, almost all of our Qt efforts are focused on Qt5 for QNX. Although the Qt5 official release date is still a few months away, we have been working closely with KDAB to upstream QNX changes so that when Qt5 is officially released, you see QNX target support right out of the box. In the meantime, check out http://qt-project.org/ for the latest.
Thanks
GrantGrant Courville2012-08-24T17:00:51Zpost94807: Re: Qt image for Beagle xMgao yuanhttp://community.qnx.com/sf/go/post948072012-08-14T12:52:52Z2012-08-14T12:52:52Zthe link for download is currupt.
can you send me by mail?
thanks .
bobdylan@foxmail.com
gaogao yuan2012-08-14T12:52:52Zpost94703: HTML5 System monitor app runs in Qt "chromeless" browserDennis Kelllyhttp://community.qnx.com/sf/go/post947032012-08-08T20:48:46Z2012-08-08T20:48:46ZI have posted a second web application utilizing HTML5's WebSocket. This application is a replacement for the Photon desktop "System Monitor", showing CPU, memory, disk, and net utilization in pseudo-realtime.
The monitor runs in the "webvu" Qt application - as well as in a desktop or tablet browser, making it suitable for headless systems.
The application tutorial and archive are here:
http://dl.dropbox.com/u/13676760/webStats.pdf
A Momentics IDE workspace is here:
http://dl.dropbox.com/u/13676760/machStats_ide.zip
The app ("machStats") is pre-configured into the i.mx53 and Beagle xM demo images.
For i.mx53 QSB with VGA output:
http://dl.dropbox.com/u/13676760/qnx_mx53.zip
http://dl.dropbox.com/u/13676760/qnx_mx53.pdf
For i.mx53 QSB with 4.3" LCD/touch panel:
http://dl.dropbox.com/u/13676760/qnx_mx53_lcd.zip
http://dl.dropbox.com/u/13676760/qnx_mx53_lcd.pdf
For i.mx53 Beagleboard xM with hdmi output:
http://dl.dropbox.com/u/13676760/ qnx_bglxm.zip
http://dl.dropbox.com/u/13676760/ qnx_bglxm.pdfDennis Kellly2012-08-08T20:48:46Zpost94671: Re: src/pagerenderer.h:10:30: error: QtOpenGL/QGLBuffer: No such file or directoryArmin Steinhoffhttp://community.qnx.com/sf/go/post946712012-08-07T13:27:05Z2012-08-07T13:27:05ZDennis,
the solution to get rid of the gf or "next gen" trouble is to port the
X-Org stuff to QNX 6.5 :)
--Armin
Dennis Kellly wrote:
> In the Qt public repository. QNX follows the "embedded Linux" model... and that model has no openGL support.
>
> I built from repository a couple of weeks ago, and no "GL" libraries were built.
>
> This changes with 5.x - I assume - because I have a KDAB Qt5 demo showing openGL running on Playbook.
>
> But note that from 4.8 to 5.x, the QNX graphics model changes and you need a "next gen" graphics subsystem - not publicly available yet.
>
>
>
>
> _______________________________________________
>
> Qt General
> http://community.qnx.com/sf/go/post94669
> To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com
>Armin Steinhoff2012-08-07T13:27:05Zpost94669: Re: src/pagerenderer.h:10:30: error: QtOpenGL/QGLBuffer: No such file or directoryDennis Kelllyhttp://community.qnx.com/sf/go/post946692012-08-07T12:39:34Z2012-08-07T12:39:34ZIn the Qt public repository. QNX follows the "embedded Linux" model... and that model has no openGL support.
I built from repository a couple of weeks ago, and no "GL" libraries were built.
This changes with 5.x - I assume - because I have a KDAB Qt5 demo showing openGL running on Playbook.
But note that from 4.8 to 5.x, the QNX graphics model changes and you need a "next gen" graphics subsystem - not publicly available yet.Dennis Kellly2012-08-07T12:39:34Zpost94649: src/pagerenderer.h:10:30: error: QtOpenGL/QGLBuffer: No such file or directoryUmesh Tallamhttp://community.qnx.com/sf/go/post946492012-08-04T11:45:23Z2012-08-04T11:45:23ZI am in the process of building OpenGL support on QNX6.5.0 VMware target self hosted with QT 4.7.1. I am running in to below compile error.
# qmake
QMAKESPEC has not been set, so configuration cannot be deduced.
Error processing project file: /tmp/openbook_v1_0/openbook/openbook.pro
# make
ntox86-g++ -c -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NE
650/target/qnx6/usr/share/qt4/mkspecs/unsupported/qws/qnx-i386-g++ -I. -I/usr/qnx650/target/
/qnx650/target/qnx6/usr/include/qt4/QtNetwork -I/usr/qnx650/target/qnx6/usr/include/qt4/QtGu
clude/qt4/QtOpenGL -I/usr/qnx650/target/qnx6/usr/include/qt4 -Isrc -Iinneraddengine_src -I.
aengine.cpp
In file included from inneraddengine_src/iaengine.h:14,
from inneraddengine_src/iaengine.cpp:5:
inneraddengine_src/xmle.h:120: warning: type qualifiers ignored on function return type
inneraddengine_src/iaengine.h: In constructor 'IAEngine::IAEngine(QObject*, QString)':
inneraddengine_src/iaengine.h:59: warning: 'IAEngine::m_adCapsules' will be initialized afte
inneraddengine_src/iaengine.h:55: warning: 'QNetworkReply* IAEngine::m_latestRequestReply'
inneraddengine_src/iaengine.cpp:22: warning: when initialized here
inneraddengine_src/iaengine.cpp: In static member function 'static void IAEngine::nodeReadyC
inneraddengine_src/iaengine.cpp:125: warning: deprecated conversion from string constant to
ntox86-g++ -c -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NE
650/target/qnx6/usr/share/qt4/mkspecs/unsupported/qws/qnx-i386-g++ -I. -I/usr/qnx650/target/
/qnx650/target/qnx6/usr/include/qt4/QtNetwork -I/usr/qnx650/target/qnx6/usr/include/qt4/QtGu
clude/qt4/QtOpenGL -I/usr/qnx650/target/qnx6/usr/include/qt4 -Isrc -Iinneraddengine_src -I.
cpp
In file included from inneraddengine_src/xmle.cpp:5:
inneraddengine_src/xmle.h:120: warning: type qualifiers ignored on function return type
inneraddengine_src/xmle.cpp: In member function 'char* TXML::Node::getAttribute(char*)':
inneraddengine_src/xmle.cpp:145: warning: deprecated conversion from string constant to 'cha
inneraddengine_src/xmle.cpp: At global scope:
inneraddengine_src/xmle.cpp:234: warning: type qualifiers ignored on function return type
ntox86-g++ -c -pipe -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_NE
650/target/qnx6/usr/share/qt4/mkspecs/unsupported/qws/qnx-i386-g++ -I. -I/usr/qnx650/target/
/qnx650/target/qnx6/usr/include/qt4/QtNetwork -I/usr/qnx650/target/qnx6/usr/include/qt4/QtGu
clude/qt4/QtOpenGL -I/usr/qnx650/target/qnx6/usr/include/qt4 -Isrc -Iinneraddengine_src -I.
In file included from src/bookpage.h:8,
from src/book.h:11,
from src/book.cpp:5:
src/pagerenderer.h:10:30: error: QtOpenGL/QGLBuffer: No such file or directory
src/pagerenderer.h:11:30: error: QtOpenGL/QGLWidget: No such file or directory
src/pagerenderer.h:12:39: error: QtOpenGL/qglshaderprogram.h: No such file or directory
In file included from src/bookpage.h:8,
from src/book.h:11,
from src/book.cpp:5:
src/pagerenderer.h:29: error: ISO C++ forbids declaration of 'QGLShaderProgram' with no type
src/pagerenderer.h:29: error: 'QGLShaderProgram' declared as an 'inline' field
src/pagerenderer.h:29: error: expected ';' before '&' token
src/pagerenderer.h:30: error: expected ';' before 'inline'
src/pagerenderer.h:30: error: 'GLuint' does not name a type
src/pagerenderer.h:31: error: 'GLuint' does not name a type
src/pagerenderer.h:32: error: 'GLuint' does not name a type
src/pagerenderer.h:33: error: 'GLuint' does not name a type
src/pagerenderer.h:34: error: ISO C++ forbids declaration of 'QGLBuffer' with no type
src/pagerenderer.h:34: error: 'QGLBuffer' declared as an 'inline' field
src/pagerenderer.h:34: error: expected ';' before '*' token
src/pagerenderer.h:35: error: expected ';' before 'inline'
src/pagerenderer.h:42: error: ISO C++ forbids declaration of 'QGLBuffer' with no type
src/pagerenderer.h:42: error: expected ';' before '*' token
src/pagerenderer.h:44: error: 'QGLShaderProgram' does not name a type
src/pagerenderer.h:45: error: 'GLuint' does not name a type
src/pagerenderer.h:46: error: 'GLuint' does not name a type
src/pagerenderer.h:47: error: 'GLuint' does not name a type
src/pagerenderer.h:48: error: 'GLuint' does not name a type
In file included from src/book.h:11,
from src/book.cpp:5:
src/bookpage.h:37: error: 'GLuint' has not been declared
src/bookpage.h:37: error: 'GLuint' has not been declared
src/texturemanager.h:39: error: 'GLuint' does not name a type
In file included from src/book.cpp:5:
src/book.h:22: error: 'QGLWidget' has not been declared
# uname -a
QNX localhost 6.5.0 2010/07/09-14:44:03EDT x86pc x86
The Makefile is attached. Can any one help me to resolve the same. Basically seems to require OpenGl library component.
Attaching the Makefile....
Thanks in advance
-Umesh
Claysol ( www.claysol.com )Umesh Tallam2012-08-04T11:45:23Zpost94629: Re: QT build/link issue for Arm7 build on a Win7 64 PCDennis Kelllyhttp://community.qnx.com/sf/go/post946292012-08-03T14:29:56Z2012-08-03T14:29:56ZThat is correct. You have to manually "fix" them by making copies of the linked file. Certain tools will do that for you - I believe if you use '7-zip' to untar the file, the links will correctly become copies.Dennis Kellly2012-08-03T14:29:56Zpost94628: Re: QT build/link issue for Arm7 build on a Win7 64 PCgary schumacherhttp://community.qnx.com/sf/go/post946282012-08-03T14:02:50Z2012-08-03T14:02:50ZThanks. The TAR file has symbolic links and when they were extracted under windows, the links were lost and zero length files were created.gary schumacher2012-08-03T14:02:50Zpost94621: Re: Notes on building Qt 4.8.0 from the Nokia repositoryArmin Steinhoffhttp://community.qnx.com/sf/go/post946212012-08-03T07:39:50Z2012-08-03T07:39:50ZDennis Kellly wrote:
> Interesting, "/usr/photon/bin/devi-hid -Pr kbd mouse &" did work for me from telnet.
Yes ... it works also for me. I started devi-hid as a "normal deamon"
process and not as a background process :)
--Armin
> (You do have to start the Qt app after you start devi-hid or it won't work...)
>
> For me devi-hid is started in the bootscript - that works too.
>
> Anyway, glad you got everything working!
>
>
>
> _______________________________________________
>
> Qt General
> http://community.qnx.com/sf/go/post94591
> To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com
>Armin Steinhoff2012-08-03T07:39:50Zpost94591: Re: Notes on building Qt 4.8.0 from the Nokia repositoryDennis Kelllyhttp://community.qnx.com/sf/go/post945912012-08-02T12:27:51Z2012-08-02T12:27:51ZInteresting, "/usr/photon/bin/devi-hid -Pr kbd mouse &" did work for me from telnet. (You do have to start the Qt app after you start devi-hid or it won't work...)
For me devi-hid is started in the bootscript - that works too.
Anyway, glad you got everything working!Dennis Kellly2012-08-02T12:27:51Zpost94588: Re: Notes on building Qt 4.8.0 from the Nokia repositoryArmin Steinhoffhttp://community.qnx.com/sf/go/post945882012-08-02T10:39:42Z2012-08-02T10:39:42Z> You have to manually start the following as on p7.
>
> /usr/photon/bin/devi-hid -Pr kbd mouse
Yes ... I did it, but within the telnet session --> but no success.
When I run "/usr/photon/bin/devi-hid -Pr kbd mouse &" locally on the QNX 6.5 machine ALL is working!
That means ALL in demos and examples :)
Thanks
--Armin
>
> When you run "ph" to start photon, devi-hid is started automatically (in a
> different mode). For Qt, you must start it yourself.
>
>
>Armin Steinhoff2012-08-02T10:39:42Zpost94580: Re: Notes on building Qt 4.8.0 from the Nokia repositoryDennis Kelllyhttp://community.qnx.com/sf/go/post945802012-08-01T21:21:13Z2012-08-01T21:21:13ZYou have to manually start the following as on p7.
/usr/photon/bin/devi-hid -Pr kbd mouse
When you run "ph" to start photon, devi-hid is started automatically (in a different mode). For Qt, you must start it yourself.Dennis Kellly2012-08-01T21:21:13Zpost94579: Re: QT build/link issue for Arm7 build on a Win7 64 PCDennis Kelllyhttp://community.qnx.com/sf/go/post945792012-08-01T21:12:46Z2012-08-01T21:12:46ZWell the linker is complaing that you have invalid binaries.
"C:/QNX650/target/qnx6/armle-v7/usr/lib/libQtGui.so: file format not recognized; treating as linker script
My guess is perhaps that is a zero-length file. There are likely three files wit the QtGui name and only one has content. Copy the content to libQtGui.so. Repeat for all libQt*. Then it should build.Dennis Kellly2012-08-01T21:12:46Zpost94578: Re: Notes on building Qt 4.8.0 from the Nokia repositoryArmin Steinhoffhttp://community.qnx.com/sf/go/post945782012-08-01T21:05:47Z2012-08-01T21:05:47ZDennis,
I have tested qtEasy and ran:
#
#export QWS_DISPLAY=qnx
#export QWS_KEYBOARD=qnx
#export QWS_MOUSE_PROTO=qnx
# cEasy -qws
QQnxScreen: Attached to Device, number of displays: 1
QQnxScreen: Attached to Display 0, resolution 1280x1024, refresh 60 Hz
QQnxMouseHandler: connected.
QWSQnxKeyboardHandler: connected.
The graphics is OK ... but mouse and keyboard are not working.
Is this the expected result ?
--Armin
PS: ph works if started from the telnet session ...
Dennis Kellly wrote:
> Thanks Armin for pointing out the error in the 16-Jul-12 version of the document!
>
> I have made corrections and replaced the online version with a 31-Jul-12 version...
>
> http://dl.dropbox.com/u/13676760/QtBuild.pdf
>
>
>
> _______________________________________________
>
> Qt General
> http://community.qnx.com/sf/go/post94548
> To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com
>Armin Steinhoff2012-08-01T21:05:47Zpost94576: QT build/link issue for Arm7 build on a Win7 64 PCgary schumacherhttp://community.qnx.com/sf/go/post945762012-08-01T20:54:12Z2012-08-01T20:54:12ZMy environment is:
The build machine is a: Win 7 64 bit PC
The version of QNX is: 650 SP1
QT tools/libraries are: qt_qnx_2011-02024b.zip
Target is: armV7
I have looked at Qmake_qnx.pdf, the readme for the qt_qnx tools, the speedo example and get the same results:
Everything compiles fine but there seems to be something wrong with the libraries (see the atached file for the full output for the make).
ntoarmv7-g++ -Wl,-O1 -o ./armle-v7/speedo ./armle-v7/main.o ./armle-v7/mainwidge
t.o ./armle-v7/speedData.o ./armle-v7/moc_mainwidget.o ./armle-v7/moc_speedData.
o -Lc:/qnx650/target/qnx6/armle-v7/lib -lQtGui -lQtCore -lQtDeclarative
C:/QNX650/host/win32/x86/usr/bin/ntoarm-ld.exe:C:/QNX650/target/qnx6/armle-v7/us
r/lib/libQtGui.so: file format not recognized; treating as linker script
I have changed the order of the libraries and it always error on the first one used.
Any ideas?
(The attached file has the full make output of the speedo example)gary schumacher2012-08-01T20:54:12Zpost94548: Re: Notes on building Qt 4.8.0 from the Nokia repositoryDennis Kelllyhttp://community.qnx.com/sf/go/post945482012-08-01T01:16:08Z2012-08-01T01:16:08ZThanks Armin for pointing out the error in the 16-Jul-12 version of the document!
I have made corrections and replaced the online version with a 31-Jul-12 version...
http://dl.dropbox.com/u/13676760/QtBuild.pdfDennis Kellly2012-08-01T01:16:08Zpost94534: Re: Notes on building Qt 4.8.0 from the Nokia repositoryArmin Steinhoffhttp://community.qnx.com/sf/go/post945342012-07-31T20:05:39Z2012-07-31T20:05:39ZDennis,
this is working: see the attachment
--Armin
Dennis Kellly wrote:
> I did not build x86 with the "latest", so I did a fresh "git". I got the same error you found. Seems unnecessary to build "x11" for x86 "embedded" but it does...
>
> First I ran
> # apt-get install libx11-dev
>
> which installed /usr/lib/X11/Xlib.h .. and I thought everything would work after that.
>
> However, it is still ignoring this file even though it is installed in the standard location...
>
>
>
> _______________________________________________
>
> Qt General
> http://community.qnx.com/sf/go/post94532
> To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com
>Armin Steinhoff2012-07-31T20:05:39Zpost94532: Re: Notes on building Qt 4.8.0 from the Nokia repositoryDennis Kelllyhttp://community.qnx.com/sf/go/post945322012-07-31T18:46:51Z2012-07-31T18:46:51ZI did not build x86 with the "latest", so I did a fresh "git". I got the same error you found. Seems unnecessary to build "x11" for x86 "embedded" but it does...
First I ran
# apt-get install libx11-dev
which installed /usr/lib/X11/Xlib.h .. and I thought everything would work after that.
However, it is still ignoring this file even though it is installed in the standard location...Dennis Kellly2012-07-31T18:46:51Zpost94526: Re: Notes on building Qt 4.8.0 from the Nokia repositoryArmin Steinhoffhttp://community.qnx.com/sf/go/post945262012-07-31T12:36:08Z2012-07-31T12:36:08ZHi Dennis,
that's the result of my fist trial to recompile Qt 4.8.2 following your build docs:
make[1]: Entering directory `/root/qt1/qt/src/gui'
ntox86-g++ -c -include .pch/release-shared/QtGui -pipe -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_SHARED -DQT_BUILD_GUI_LIB -DQT_NO_USING_NAMESPACE -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_USE_BUNDLED_LIBPNG -DFT2_BUILD_LIBRARY -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DQT_NO_OPENTYPE -DQT_NO_STYLE_MAC -DQT_NO_STYLE_WINDOWSVISTA -DQT_NO_STYLE_WINDOWSXP -DQT_NO_STYLE_WINDOWSCE -DQT_NO_STYLE_WINDOWSMOBILE -DQT_NO_STYLE_S60 -DQ_INTERNAL_QAPP_SRC -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_HAVE_SSE3 -DQT_HAVE_SSSE3 -DQT_HAVE_SSE4_1 -DQT_HAVE_SSE4_2 -DQT_HAVE_AVX -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I../../mkspecs/qws/qnx-i386-g++ -I. -I../../include/QtCore -I../../include -I../../include/QtGui -I.rcc/release-shared -I../3rdparty/xorg -Iimage -I../3rdparty/libpng -I../3rdparty/freetype/builds/unix -I../3rdparty/freetype/src -I../3rdparty/freetype/include -I../3rdparty/harfbuzz/src -Idialogs -I.moc/release-shared -I.uic/release-shared -o .obj/release-shared/qapplication.o kernel/qapplication.cpp
In file included from ../../include/QtGui/private/qt_x11_p.h:1,
from kernel/qapplication.cpp:82:
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:70:22: error: X11/Xlib.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:75:23: error: X11/Xutil.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:76:21: error: X11/Xos.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:91:23: error: X11/Xatom.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:98:36: error: X11/extensions/shape.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:103:37: error: X11/extensions/XInput.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:151:41: error: X11/extensions/Xinerama.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:158:37: error: X11/extensions/Xrandr.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:163:38: error: X11/extensions/Xrender.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:168:35: error: X11/extensions/sync.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:174:26: error: X11/XKBlib.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:218:33: error: X11/Xcursor/Xcursor.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:283:35: error: fontconfig/fontconfig.h: No such file or directory
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:303:35: error: X11/extensions/XShm.h: No such file or directory
In file included from ../../include/QtGui/private/qt_x11_p.h:1,
from kernel/qapplication.cpp:82:
../../include/QtGui/private/../../../src/gui/kernel/qt_x11_p.h:208: error: ISO C++ forbids declaration of 'Bool' with no type
What's wrong ?
--ArminArmin Steinhoff2012-07-31T12:36:08Zpost94493: Re: Notes on building Qt 4.8.0 from the Nokia repositoryArmin Steinhoffhttp://community.qnx.com/sf/go/post944932012-07-29T19:23:53Z2012-07-29T19:23:53ZDennis,
sorry I didn't read your build documenation.
I'm just creatung a Linux installation of Momentics ...
Do you know the price (round about?) of a pre-built version of digia?
--Armin
Dennis Kellly wrote:
> Sorry, are you looking for pre-built?
Is there one ?
>
> To get source, AFAIK you have to use "git".
>
> # git clone git://gitorious.org/qt/qt.git
>
>
>
>
>
> _______________________________________________
>
> Qt General
> http://community.qnx.com/sf/go/post94492
> To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com
>Armin Steinhoff2012-07-29T19:23:53Zpost94492: Re: Notes on building Qt 4.8.0 from the Nokia repositoryDennis Kelllyhttp://community.qnx.com/sf/go/post944922012-07-29T18:59:43Z2012-07-29T18:59:43ZSorry, are you looking for pre-built?
To get source, AFAIK you have to use "git".
# git clone git://gitorious.org/qt/qt.gitDennis Kellly2012-07-29T18:59:43Zpost94491: Re: Notes on building Qt 4.8.0 from the Nokia repositoryArmin Steinhoffhttp://community.qnx.com/sf/go/post944912012-07-29T16:49:50Z2012-07-29T16:49:50ZWhat is the the URL or the svn command to download Qt 4.8.2 for QNX ?
--Armin
> This app note:
>
> http://dl.dropbox.com/u/13676760/QtBuild.pdf
>
> has been updated for Qt repository version 4.8.2, reflecting some changes in
> the build process.Armin Steinhoff2012-07-29T16:49:50Zpost94456: HTML5 WebSocket app using a Qt "chromeless" browserDennis Kelllyhttp://community.qnx.com/sf/go/post944562012-07-27T23:55:41Z2012-07-27T23:55:41ZI have posted a web application - utilizing HTML5's WebSocket - which runs in the "webvu" Qt application presented previously.
WebSocket allows a “persistent connection” between target and browser so there is no polling. Both the host and the target may transmit data on an open socket with little latency - perfect for control appliications.
The app ("webEasy") is pre-configured into the i.mx53 and Beagle xM demo images. SInce it is a web app, it can be viewed both on the target display via webvu, AND via external browsers including:
• desktop versions of Chrome, Safari and Firefox
• Blackberry BB7 (9900) smartphones
• Android smartphones (only very recent software – Ice Cream Sandwich?)
• Playbook (v2.x)
The key part of the solution is a webserver named "websock5" which is written in C. Included with the tutorial is an IDE workspace archive for websock5 which allows you adapt the server to any client Javascript you may write.
The application tutorial and archive are here: http://dl.dropbox.com/u/13676760/qtHtml5.pdf.
http://dl.dropbox.com/u/13676760/websock5_ide.zip
You can try webEasy by downloading the SDcard image which matches your target:
For i.mx53 QSB with VGA output:
http://dl.dropbox.com/u/13676760/qnx_mx53.zip
http://dl.dropbox.com/u/13676760/qnx_mx53.pdf
For i.mx53 QSB with 4.3" LCD/touch panel:
http://dl.dropbox.com/u/13676760/qnx_mx53_lcd.zip
http://dl.dropbox.com/u/13676760/qnx_mx53_lcd.pdf
For i.mx53 Beagleboard xM with hdmi output:
http://dl.dropbox.com/u/13676760/ qnx_bglxm.zip
http://dl.dropbox.com/u/13676760/ qnx_bglxm.pdfDennis Kellly2012-07-27T23:55:41Zpost94262: Re: Notes on building Qt 4.8.0 from the Nokia repositoryDennis Kelllyhttp://community.qnx.com/sf/go/post942622012-07-16T13:36:34Z2012-07-16T13:36:34ZThis app note:
http://dl.dropbox.com/u/13676760/QtBuild.pdf
has been updated for Qt repository version 4.8.2, reflecting some changes in the build process.Dennis Kellly2012-07-16T13:36:34Zpost93774: Debugging Qt apps with Momentics IDE - "Take Two"Dennis Kelllyhttp://community.qnx.com/sf/go/post937742012-06-19T20:38:43Z2012-06-19T20:38:43Zhttps://dl.dropbox.com/u/13676760/Qt_debugging_rev2.pdf
This document is accompanied by an archive containing a "roll-up" of the
examples presented elsewhere in this forum. Each is packaged to be built
specifically under Windows command-line.
Using the provided cEasy command-line source as a starting point, the document
walks through the process of converting cEasy to an IDE project. The finished
project allows building the source for debug, setting up up a target, and
running a source-line debug session.
A second archive contains a completed IDE workspace containing the the same
four projects. Using the ready-to-run i.mx53 or Beagle-xm target images cited
in the docunment, you can immediately build in the IDE and begin source-line
debugging.
Links to the archives are at the end of the pdf.Dennis Kellly2012-06-19T20:38:43Zpost93773: Debugging Qt apps with Momentics IDE - "Take Two"Dennis Kelllyhttp://community.qnx.com/sf/go/post937732012-06-19T20:33:19Z2012-06-19T20:33:19Zhttps://dl.dropbox.com/u/13676760/Qt_debugging_rev2.pdf
This document now is accompanied by an archive containing a "roll-up" of the
examples presented elsewhere in this forum. Each is packaged to be built
specifically under Windows command-line.
Using the provided cEasy command-line source as a starting point, the document
walks through the process of converting cEasy to an IDE project. The finished
project allows building the source for debug, setting up up a target, and
running a source-line debug session.
A second archive contains a completed IDE workspace containing the the same
four projects. Using the ready-to-run i.mx53 or Beagle-xm target images cited
in the docunment, you can immediately build in the IDE and begin source-line
debugging.
Links to the archives are at the end of the pdf.Dennis Kellly2012-06-19T20:33:19Zpost93606: Re: libstdc++ and qt with Qnx 6.5.0 tools (gcc 4.4.2)Rafael Roquettohttp://community.qnx.com/sf/go/post936062012-06-11T13:07:42Z2012-06-11T13:07:42ZThis is a known bug. We are working on a fix, and I would be more than glad to keep you posted on the progress. Stay tuned here, or feel free to join us at #qt-qnx on freenode.
Cheers,
RafaelRafael Roquetto2012-06-11T13:07:42Zpost93476: libstdc++ and qt with Qnx 6.5.0 tools (gcc 4.4.2)Preet Desaihttp://community.qnx.com/sf/go/post934762012-06-03T20:46:58Z2012-06-03T20:46:58ZHiya,
I'm trying to do some dev for the playbook using ndk 2.0.1 that rim released awhile ago. It provides libstdc++ along with gcc 4.4.2 based tools. I'm also using qt for my application. The problem I'm having is that qt and libstdc++ seem to work fine independently, but when I link to both of them in the same application, I get a segmentation fault. Note that I don't need to actually use any Qt code, just linking it in is enough to cause a crash.
Here's a sample application:
#include <iostream>
#include <sstream>
int main(int argc, char *argv[])
{
std::cout << "This doesn't work\n";
return 0; // i think it crashes here when the os tries to do cleanup
}
Here's the stack trace from the crash:
#0 0xb8b5e329 in __gnu_cxx::__exchange_and_add (__mem=0x0, __val=-1)
at atomicity.cc:36
36 atomicity.cc: No such file or directory.
in atomicity.cc
(gdb) backtrace
#0 0xb8b5e329 in __gnu_cxx::__exchange_and_add (__mem=0x0, __val=-1)
at atomicity.cc:36
#1 0xb8b03471 in __exchange_and_add_dispatch (__val=<optimized out>,
__mem=<optimized out>)
at /home/builder/hudson/650-gcc-4.4/svn/linux-x86-o-ntox86/i486-pc-nto-qnx6.5.0/pic/libstdc++-v3/include/ext/atomicity.h:79
#2 _M_remove_reference (this=<optimized out>)
at /home/builder/hudson/650-gcc-4.4/svn/linux-x86-o-ntox86/i486-pc-nto-qnx6.5.0/pic/libstdc++-v3/include/bits/locale_classes.h:505
#3 std::locale::~locale (this=0xb837d5fc, __in_chrg=<optimized out>)
at ../../../../../libstdc++-v3/src/locale.cc:89
#4 0xb8b0faa9 in ~basic_streambuf (this=<optimized out>,
__in_chrg=<optimized out>)
at /home/builder/hudson/650-gcc-4.4/svn/linux-x86-o-ntox86/i486-pc-nto-qnx6.5.0/pic/libstdc++-v3/include/streambuf:193
#5 std::basic_filebuf<char, std::char_traits<char> >::~basic_filebuf (
this=0xb837d5e0, __in_chrg=<optimized out>)
at /home/builder/hudson/650-gcc-4.4/svn/linux-x86-o-ntox86/i486-pc-nto-qnx6.5.0/pic/libstdc++-v3/include/fstream:215
#6 0xb0bbd205 in __cxa_finalize ()
from /home/preet/bbndk-2.0.1/target/qnx6/x86/lib/libc.so.3
#7 0xb832de67 in _btext ()
from /home/preet/bbndk-2.0.1/target/qnx6/x86/lib/libcpp.so.4
#8 0xb836a265 in _fini ()
from /home/preet/bbndk-2.0.1/target/qnx6/x86/lib/libcpp.so.4
#9 0xb0bd46d3 in ?? ()
from /home/preet/bbndk-2.0.1/target/qnx6/x86/lib/libc.so.3
#10 0xb0bd5d38 in ?? ()
from /home/preet/bbndk-2.0.1/target/qnx6/x86/lib/libc.so.3
#11 0xb0bbd052 in _cleanup ()
from /home/preet/bbndk-2.0.1/target/qnx6/x86/lib/libc.so.3
#12 0xb0bbd337 in exit ()
from /home/preet/bbndk-2.0.1/target/qnx6/x86/lib/libc.so.3
#13 0x080487b0 in _start ()
I'd appreciate any feedback or advice.Preet Desai2012-06-03T20:46:58Zpost93289: Re: Calling an event function in a QT thread from a QNX thread.Magnus Lovdahlhttp://community.qnx.com/sf/go/post932892012-05-24T13:39:24Z2012-05-24T13:39:24ZThanks guys,
It is now working using either “Signals and slots” or “Qt MetaObject system” way.
Thanks again for quick and very good support..
/MagnusMagnus Lovdahl2012-05-24T13:39:24Zpost93286: Re: Calling an event function in a QT thread from a QNX thread.Rafael Roquettohttp://community.qnx.com/sf/go/post932862012-05-24T12:57:17Z2012-05-24T12:57:17ZHello Magnus,
> I have an issue that I don’t know how to call event/message functions inside
> the “QT thread” from a QNX thread in my QNX application.
>
> In main I create a thread for receiving can messages. When I have received a
> can message I would like to send an event/message/signal to my “myqtclass”
> event function or another function inside the object. I end up in the function
> myqtcalss::event but I still execute in the “qnx function thread” not the
> “QT thread”. Because of this I receive an error message from QT. I would
> like to send an event/message/signal so the “QT thread” execute it. Do you
> have any suggestion how to do this?
>
This is because QCoreApplication::sendEvent() will call QObject::event()
directly, as if it were a simple function call, and therefore it will run on the
caller's thread context (i.e. the QNX thread in your program). Qt has a rule
that events can obly be sent to objects in the current thread, i.e. sending
events directly accross threads, using QCoreApplication::sendEvent() is
forbidden.
The easiest way to solve your problem is to use QCoreApplication::postEvent()
(or QApplication, in your case). Unlike QCoreApplication::sendEvent(),
QCoreApplication::postEvent() will push the event to the receiver thread's event
equeue, and the event will be processed only when the control returns to the
receiver's thread main loop. This ensures that the event will be processed on
the context of the receiver's thread, which is the behavior you are expecting.
Please note that the event must be allocated on the heap, since the post event
queue will take ownership of the event and delete it once it has been posted.
In practice, your code should look like:
void QNX_thread_function( void *pvParameters )
{
// Code that executes when a can message is received
QEvent *event = new QEvent(static_cast<QEvent::Type>(QEvent::UserType + 1));
QApplication::postEvent(myqtclass, event);
}
However, if all you would like to do is signalizing your Qt class that a CAN
message has arrived, you can instead take advantage of the Qt MetaObject system
instead of reimplementing QObject::event().
class myqtclass : public QObject
{
Q_OBJECT
public:
/* ... */
Q_INVOKABLE void canMessageArrived();
};
and then:
void QNX_thread_function( void *pvParameters )
{
// Code that executs when a can message is received
QMetaObject::invokeMethod(myqtclass, "canMessageArrived", Qt::QueuedConnection);
}
In a nutshell, the Q_INVOKABLE macro tells the Qt MetaObject system that canMessageArrived can be invoked using QMetaObject::invokeMethod - it is a bit more complicated than that under the hood, but let's leave it like this for the sake of simplicity. The caveat then is passing Qt::QueuedConnection to QMetaObject::invokeMethod. This means that, instead of invoking the method directly (akin to QApplication::sendEvent()), the method is invoked when control returns to the event loop of the receiver's thread and is executed in the context of the receiver's thread (akin to QApplication::postEvent()). You can also use Qt::BlockingQueuedConnection - the difference is that, while QMetaObject::invokeMethod() will return immediately with the former, when using the latter it will only return after the method has been executed.
I hope that helps.
Cheers,
Rafael
---
Rafael Roquetto | rafael.roquetto@kdab.com | Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel. Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - Qt Experts - Platform-independent software solutionsRafael Roquetto2012-05-24T12:57:17Zpost93261: Re: Calling an event function in a QT thread from a QNX thread.Dennis Kelllyhttp://community.qnx.com/sf/go/post932612012-05-23T14:56:51Z2012-05-23T14:56:51ZYes, I realize you are not using QML... why, I don't know since that is the current Qt-preferred method.
Still, from what I have read, signals and slots existed prior to QML. So you need to find such an example. Some of the signal/slot packaging of qTstat will likely still apply.Dennis Kellly2012-05-23T14:56:51Zpost93260: Re: Calling an event function in a QT thread from a QNX thread.Magnus Lovdahlhttp://community.qnx.com/sf/go/post932602012-05-23T14:43:06Z2012-05-23T14:43:06ZHello,
I have looked into the example. I don’t have a qml application, instead I have written all QT sw with objects.
In the example the thread calls valuesChanged, which is a signal that I guess is linked into the qml code as onValuesChanged. How do I do if I don’t have qml and want this “onValueChanged” to be a function in the class instead?
/MagnusMagnus Lovdahl2012-05-23T14:43:06Zpost93255: Re: Calling an event function in a QT thread from a QNX thread.Dennis Kelllyhttp://community.qnx.com/sf/go/post932552012-05-23T11:59:12Z2012-05-23T11:59:12ZMagnus-
This example has a thread which "signals" back to the UI...
http://community.qnx.com/sf/discussion/do/listPosts/projects.qt/discussion.general.topc20365
Note that the thread is created as a Qt object (not pthread_create) but thread execution is the same. Here the thread is waiting to be notified by pps, but it could be waiting for a CAN message.
If you don't want your CAN logic in a Qt thread, you could wait for a pulse in the Qt thread, and send the pulse from a standard (non-Qt) C program with CAN knowledge. This way, you can easier debug the more complex non-Qt portion, and your UI remains simple.Dennis Kellly2012-05-23T11:59:12Zpost93254: Calling an event function in a QT thread from a QNX thread.Magnus Lovdahlhttp://community.qnx.com/sf/go/post932542012-05-23T11:43:12Z2012-05-23T11:43:12ZHello,
I have a 'AM335x EVM board' and have downloaded the BSP “Texas Instruments AM335x EVM” project. I use QNX 6.5.0 and
Momentics 4.7.0.
I have an issue that I don’t know how to call event/message functions inside the “QT thread” from a QNX thread in my QNX application.
In main I create a thread for receiving can messages. When I have received a can message I would like to send an event/message/signal to my “myqtclass” event function or another function inside the object. I end up in the function myqtcalss::event but I still execute in the “qnx function thread” not the “QT thread”. Because of this I receive an error message from QT. I would like to send an event/message/signal so the “QT thread” execute it. Do you have any suggestion how to do this?
Example code:
*********************
main.c
MyQTClass *myqtcalss;
int main(int argc, char **argv)
{
// Creating QNX can receive function thread
…
QApplication app(argc, argv);
// QT code
…
myqtcalss = new MyQTClass;
…
return app.exec();
}
*********************
myclass.cpp
bool myqtcalss::event(QEvent *event)
{
// Here I would like to end up in the “QT thread”
}
*********************
qnx.c
void QNX_thread_function( void *pvParameters )
{
// Code that executes when a can message is received
QEvent event((QEvent::Type)1001);
QApplication::sendEvent(myqtclass, &event);
}
*********************Magnus Lovdahl2012-05-23T11:43:12Zpost93204: Re: Qt "chromeless" browser for html/Javascript applicationsDennis Kelllyhttp://community.qnx.com/sf/go/post932042012-05-18T16:54:25Z2012-05-18T16:54:25ZSDcard boot image for i.mx53 VGA has also been updated to include webvu browser.
image: http://dl.dropbox.com/u/13676760/qnx_mx53.zip
documentation: http://dl.dropbox.com/u/13676760/qnx_mx53.pdf
SDcard boot image for Beagle xM now also includes webvu.
image: http://dl.dropbox.com/u/13676760/qnx_bglxm.zip
documentation: http://dl.dropbox.com/u/13676760/qnx_bglxm.pdfDennis Kellly2012-05-18T16:54:25Zpost93196: Re: 回复: RE: RE: Re: 回复: Re: qmake-qnxqin zhouhttp://community.qnx.com/sf/go/post931962012-05-18T14:50:20Z2012-05-18T14:50:20Zthank you ,i can do that successfully ,the problem has bothered me for a whole week,you give me a lot of help.
and i still have a question,i know that qt can be intergrated with eclipse which makes the developer convenient,however, can it be intergrated into the momentics (run and debug in the momentics environment)?
for me ,the development process seems that ,first i create and debugmy project in the qt sdk for windows , to make it run correctly ,next,i make it a qnx program by qmake_qnx?qin zhou2012-05-18T14:50:20Zpost93199: RE: RE: Re: 回复: Re: qmake-qnxqin zhouhttp://community.qnx.com/sf/go/post931992012-05-18T14:42:48Z2012-05-18T14:42:48Zthank you ,i can do that successfully ,the problem has bothered me for a whole week,you give me a lot of help.And i still have a question,i know that qt can be intergrated with eclipse which makes the developer convenient,however, can it be intergrated into the momentics (run and debug in the momentics environment)?
for me ,the development process seems that ,first i create and debug my project in the qt sdk for windows , to make it run correctly ,next,i make it a qnx program by qmake_qnx......is it right?
2012-05-18
qhzbitqin zhou2012-05-18T14:42:48Zpost93198: Re: 回复: RE: RE: Re: 回复: Re: qmake-qnxDennis Kelllyhttp://community.qnx.com/sf/go/post931982012-05-18T14:40:28Z2012-05-18T14:40:28ZThere is only partial integration with momentics.
See this...
http://dl.dropbox.com/u/13676760/Qt_debugging.pdfDennis Kellly2012-05-18T14:40:28Zpost93197: Re: 回复: RE: RE: Re: 回复: Re: qmake-qnxqin zhouhttp://community.qnx.com/sf/go/post931972012-05-18T14:36:18Z2012-05-18T14:36:18Zthank you ,the problem has bothered me for a whole week,and you really give me a lot help,i have done that successfully.and i have another question
i know that qt can be intergrated with eclipse which makes the developer convenient,however, can it
be intergrated into the momentics (run and debug in the momentics environment)?
for me ,the developement process seem that ,firstly,i create and debug my project in qt sdk for windows,to make it run correctly ,secondly ,i transfer it to be a qnx program by qmake_qnx.......
is that right?qin zhou2012-05-18T14:36:18Zpost93189: RE: RE: Re: 回复: Re: qmake-qnxDennis Kelllyhttp://community.qnx.com/sf/go/post931892012-05-18T13:50:59Z2012-05-18T13:50:59ZYes, now I see where that line is coming from :) I assume you cut_and_paste qmake_qnx.bat from the pdf and maybe this is causing the problem.
File qmake_qnx.bat in this archive. Extract it and use it instead of the one you have now.
http://dl.dropbox.com/u/13676760/webvu.zip
(The project in this zip should build if you extract and cd to "webvu" - just "qmake_qnx i386" then "make".)Dennis Kellly2012-05-18T13:50:59Zpost93193: 回复: RE: RE: Re: 回复: Re: qmake-qnxqin zhouhttp://community.qnx.com/sf/go/post931932012-05-18T13:49:44Z2012-05-18T13:49:44Zthank your prompt reply ,but now i cannot connect the website ,can you send it to me by email? many thanks!!!!
2012-05-18
qhzbit
发件人:Dennis Kelly
发送时间:2012-05-18 21:42
主题:RE: RE: Re: 回复: Re: qmake-qnx
收件人:"general-qt@community.qnx.com"<general-qt@community.qnx.com>
抄送:
Yes, now I see where that line is coming from :) I assume you cut_and_paste qmake_qnx.bat from the pdf and maybe this is causing the problem.
File qmake_qnx.bat in this archive. Extract it and use it instead of the one you have now.
http://dl.dropbox.com/u/13676760/webvu.zip
(The project in this zip should build if you extract and cd to "webvu" - just "qmake_qnx i386" then "make".)
_______________________________________________
Qt General
http://community.qnx.com/sf/go/post93189
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.comqin zhou2012-05-18T13:49:44Zpost93190: Re: RE: RE: Re: 回复: Re: qmake-qnxqin zhouhttp://community.qnx.com/sf/go/post931902012-05-18T13:44:18Z2012-05-18T13:44:18Zi'm sorry ,i can not connect the website ,can you send it to me by email?many thanksqin zhou2012-05-18T13:44:18Zpost93186: 回复: RE: Re: 回复: Re: qmake-qnxqin zhouhttp://community.qnx.com/sf/go/post931862012-05-18T13:20:19Z2012-05-18T13:20:19Zthis the qmake_qnx i got
@if "%1"=="" goto help
@call pwd >temp.bat
@set /p PROJ_DIR= <temp.bat
@del temp.bat
::@echo %PROJ_DIR%
@FOR %%i IN (%PROJ_DIR%) DO @SET PROJ_NAME=%%~nxi
::@echo project name: %PROJ_NAME%
::echo %1
@if "%1"=="arm" set ARCH_DIR="armle"
@if "%1"=="armv7" set ARCH_DIR="armle-v7"
@if "%1"=="i386" set ARCH_DIR="x86"
::@echo %ARCH_DIR%
qmake -project
@echo QT += core gui script declarative %QT_MODULES% >>%PROJ_NAME%.pro
@echo OBJECTS_DIR += %ARCH_DIR% >>%PROJ_NAME%.pro
@echo TARGET = %ARCH_DIR%/%PROJ_NAME% >>%PROJ_NAME%.pro
@echo QMAKE_CXXFLAGS += %QT_CXXFLAGS% >>%PROJ_NAME%.pro
qmake -spec unsupported/qws/qnx-%1-g++ %PROJ_NAME%.pro
@goto exit
:help
@echo .
@echo %0 runs both "qmake -project" and "qmake" resulting in a Makefile
@echo .
@echo First parameter must be desired architecture - i386 or arm or armv7
@echo .
@echo .
:exit
in the .bat,is the sentence in red the reason?
i have installed qt-creator-win-opensource-2.4.1.exe and qt-win-opensource-4.8.1-mingw.exe, need i uninstall them all for the first?!
2012-05-18
qhzbit
发件人:Dennis Kelly
发送时间:2012-05-18 20:59
主题:RE: Re: 回复: Re: qmake-qnx
收件人:"general-qt@community.qnx.com"<general-qt@community.qnx.com>
抄送:
According to the picture, you are still running...
qmake_qnx i386
then
qmake -project
Don't run "qmake -project" - run "make" after "qmake_qnx i386" as in the .pdf.
-----Original Message-----
From: qhzbit [mailto:community-noreply@qnx.com]
Sent: Friday, May 18, 2012 8:51 AM
To: general-qt
Subject: 回复: Re: 回复: Re: qmake-qnx
thank you for your quick reply ,this is the best answer i have got.the "make" is really the first step ,but i encounter the new problem
2012-05-18
qhzbit
发件人:Dennis Kellly
发送时间:2012-05-18 20:34
主题:Re: 回复: Re: qmake-qnx
收件人:"general-qt"<general-qt@community.qnx.com>
抄送:
Have you installed QNX Momentics? This "make" has to be first in your path.
C:\QNX650\host\win32\x86>usr\bin\make -v GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This program built for Windows32
C:\QNX650\host\win32\x86>
_______________________________________________
Qt General
http://community.qnx.com/sf/go/post93182
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com
_______________________________________________
Qt General
http://community.qnx.com/sf/go/post93183
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com
_______________________________________________
Qt General
http://community.qnx.com/sf/go/post93185
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.comqin zhou2012-05-18T13:20:19Zpost93185: RE: Re: 回复: Re: qmake-qnxDennis Kelllyhttp://community.qnx.com/sf/go/post931852012-05-18T12:58:58Z2012-05-18T12:58:58ZAccording to the picture, you are still running...
qmake_qnx i386
then
qmake -project
Don't run "qmake -project" - run "make" after "qmake_qnx i386" as in the .pdf.
-----Original Message-----
From: qhzbit [mailto:community-noreply@qnx.com]
Sent: Friday, May 18, 2012 8:51 AM
To: general-qt
Subject: 回复: Re: 回复: Re: qmake-qnx
thank you for your quick reply ,this is the best answer i have got.the "make" is really the first step ,but i encounter the new problem
2012-05-18
qhzbit
发件人:Dennis Kellly
发送时间:2012-05-18 20:34
主题:Re: 回复: Re: qmake-qnx
收件人:"general-qt"<general-qt@community.qnx.com>
抄送:
Have you installed QNX Momentics? This "make" has to be first in your path.
C:\QNX650\host\win32\x86>usr\bin\make -v GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This program built for Windows32
C:\QNX650\host\win32\x86>
_______________________________________________
Qt General
http://community.qnx.com/sf/go/post93182
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com
_______________________________________________
Qt General
http://community.qnx.com/sf/go/post93183
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.comDennis Kellly2012-05-18T12:58:58Zpost93183: 回复: Re: 回复: Re: qmake-qnxqin zhouhttp://community.qnx.com/sf/go/post931832012-05-18T12:57:17Z2012-05-18T12:57:17Zthank you for your quick reply ,this is the best answer i have got.the "make" is really the first step ,but i encounter the new problem
2012-05-18
qhzbit
发件人:Dennis Kellly
发送时间:2012-05-18 20:34
主题:Re: 回复: Re: qmake-qnx
收件人:"general-qt"<general-qt@community.qnx.com>
抄送:
Have you installed QNX Momentics? This "make" has to be first in your path.
C:\QNX650\host\win32\x86>usr\bin\make -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for Windows32
C:\QNX650\host\win32\x86>
_______________________________________________
Qt General
http://community.qnx.com/sf/go/post93182
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.comqin zhou2012-05-18T12:57:17Zpost93182: Re: 回复: Re: qmake-qnxDennis Kelllyhttp://community.qnx.com/sf/go/post931822012-05-18T12:36:45Z2012-05-18T12:36:45ZHave you installed QNX Momentics? This "make" has to be first in your path.
C:\QNX650\host\win32\x86>usr\bin\make -v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for Windows32
C:\QNX650\host\win32\x86>Dennis Kellly2012-05-18T12:36:45Zpost93180: 回复: Re: qmake-qnxqin zhouhttp://community.qnx.com/sf/go/post931802012-05-18T12:13:32Z2012-05-18T12:13:32Zi have installed qt-creator-win-opensource-2.4.1.exe and qt-win-opensource-4.8.1-mingw.exe in my winxp .when i enter cmd ,run qmake_qnx it shows
i run make
need i unistall the qt programs ,or what should i install.
i explain my situation through this link
http://community.qnx.com/sf/discussion/do/listPosts/projects.qt/discussion.general.topc21910?pageSize=-1#post_post93170
2012-05-18
qhzbit
发件人:Dennis Kellly
发送时间:2012-05-18 18:39
主题:Re: qmake-qnx
收件人:"general-qt"<general-qt@community.qnx.com>
抄送:
According to tthe attachment, you did not run "make" after the qmake_qnx command. The doc says these are the steps to build:
C:\Qt\cEasy> qmake_qnx i386
C:\Qt\cEasy> make
_______________________________________________
Qt General
http://community.qnx.com/sf/go/post93178
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.comqin zhou2012-05-18T12:13:32Zpost93178: Re: qmake-qnxDennis Kelllyhttp://community.qnx.com/sf/go/post931782012-05-18T10:46:44Z2012-05-18T10:46:44ZAccording to tthe attachment, you did not run "make" after the qmake_qnx command. The doc says these are the steps to build:
C:\Qt\cEasy> qmake_qnx i386
C:\Qt\cEasy> makeDennis Kellly2012-05-18T10:46:44Zpost93170: how to run my own qt appqin zhouhttp://community.qnx.com/sf/go/post931702012-05-18T01:54:34Z2012-05-18T01:54:34Zhello ,i'm new to qt/qnx,now i encounter a question ,that is how i run my own qt app on the target based on qnx (my host is winxp,and target is vmware).i don't really know how it works, i guess:
1)the first step : i make a project by qt-creator and run ,debug to make sure it will run well.
2)the second step : i make the resource that is needed to run on qnx again .
According to this thought,i did the following things:
1)first i create a project "hello world" in the qt-creator ,and it works well
2) as the "read me"says,i enter C:\Qt\hello,and create a makefile including
"LIST=OS CPU VARIANT
MAKEFILE=GNUmakefile
include recurse.mk
##eof"
3)Inside the same directory, create subdirectories called nto-x86-o,including "GNUmakefile"
ifndef QCONFIG
QCONFIG=qconfig.mk
endif
include $(QCONFIG)
include $(MKFILES_ROOT)/qmake-qt.mk
##eof
4)from cmd prompt,i enter the C:\Qt\hello,and run "make" ,but it shows mingw32-make is Not internal or external command, also not be operation of the procedure or a batch file.
5)so i enter"ksh",run "make",it shows errors as the attachment shows ,but it produce a .project and a hello file.so i transfer the hello file to the vmware ,the app absolutely failes to run .
another question ,i know that qt can be intergrated with eclipse which makes the developer convenient,however, can it be intergrated into the momentics (run and debug in the momentics environment)?
thank you ,and I look forward to your replyqin zhou2012-05-18T01:54:34Zpost93173: qmake-qnxqin zhouhttp://community.qnx.com/sf/go/post931732012-05-18T01:47:17Z2012-05-18T01:47:17Zi read a pdf called qmake-qnx,i do the next steps
1) copy the bat file to
C:\qnx650\host\win32\x86\usr\bin\qmake_qnx.bat
2)run qmake_qnx i386,it shows as the attachment
3)i ignore the error,and copy it to the target ,./cEasy -qws ,fail.qin zhou2012-05-18T01:47:17Zpost93172: Re: Open GLxiaolong zhanghttp://community.qnx.com/sf/go/post931722012-05-18T01:36:23Z2012-05-18T01:36:23Zwe are using imx53, does it can be support ?
Otherwise,does the QT5 support GLES module and GPU acceleration?
thanks!xiaolong zhang2012-05-18T01:36:23Zpost93171: how to run my own qt appqin zhouhttp://community.qnx.com/sf/go/post931712012-05-18T01:33:28Z2012-05-18T01:33:28Zhello ,i'm new to qt/qnx,now i encounter a question ,that is how i run my own qt app on the target based on qnx (my host is
winxp,and target is vmware).i don't really know how it works, i guess:
1)the first step : i make a project by qt-creator and run ,debug to make sure it will run well.
2)the second step : i make the resource that is needed to run on qnx again .
According to this thought,i did the following things:
1)first i create a project "hello world" in the qt-creator ,and it works well
2) as the "read me"says,i enter C:\Qt\hello,and create a makefile including
"LIST=OS CPU VARIANT
MAKEFILE=GNUmakefile
include recurse.mk
##eof"
3)Inside the same directory, create subdirectories called nto-x86-o,including "GNUmakefile"
ifndef QCONFIG
QCONFIG=qconfig.mk
endif
include $(QCONFIG)
include $(MKFILES_ROOT)/qmake-qt.mk
##eof
4)from cmd prompt,i enter the C:\Qt\hello,and run "make" ,but it shows mingw32-make is Not internal or external command,
also not be operation of the procedure or a batch file.
5)so i enter"ksh",run "make",it shows errors as the attachment shows ,but it produce a .project and a hello file.so i
transfer the hello file to the vmware ,the app absolutely failes to run .
another question ,i know that qt can be intergrated with eclipse which makes the developer convenient,however, can it be
intergrated into the momentics (run and debug in the momentics environment)?
thank you ,and I look forward to your reply
2012-05-18
qhzbit
发件人:Dennis Kellly
发送时间:2012-05-15 23:40
主题:Re: 回复: Re: unable to execute qtdemo
收件人:"general-qt"<general-qt@community.qnx.com>
抄送:
>>>from the terminal ,it shows
>>>QQnxScreen: Attached to Device, number of displays: 1
>>>QQnxScreen: Attached to Display 0, resolution 1024x768, refresh 60 Hz
These are "normal" messages... not errors.
But you should see two more lines like
QQnxMouseHandler: connected.
QWSQnxKeyboardHandler: connect
Have you set the environment variables?
QWS_DISPLAY=qnx
QWS_KEYBOARD=qnx
QWS_MOUSE_PROTO=qnx
_______________________________________________
Qt General
http://community.qnx.com/sf/go/post93098
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.comqin zhou2012-05-18T01:33:28Zpost93151: Re: Open GLGrant Courvillehttp://community.qnx.com/sf/go/post931512012-05-17T02:56:27Z2012-05-17T02:56:27ZQt5 support under QNX requires our new composition manager. Experimental versions of the composition manager (aka QNX Screen) will start to be posted in mid/late June for select hardware platforms.
Platforms of note include Freescale i.MX6x, TI Panda, TI Beagleboard and others.
Which hardware platform are you using?
> Dear Dennis!
> I am interested in the QTOpenGL+QNX accelerated with QT5,I want to konw
> which CPU does the BB playbook.Otherwise,which graphics framework does it use
> to support accelerated openGL? I know the qnx6.5 only have the gf framework
> currently,thanks.Grant Courville2012-05-17T02:56:27Zpost93148: About the qnx+qt5xiaolong zhanghttp://community.qnx.com/sf/go/post931482012-05-17T01:55:44Z2012-05-17T01:55:44ZHello all!
Now I am using the imx53 CPU ,I want to test the dash-cluster use the qt5+Opengl model in QNX, In order to improve the rendering frame rate, I want to use the GPU accelerate, but I don't know how to config the GPU.Please give me some advices,thanks very much .xiaolong zhang2012-05-17T01:55:44Zpost93149: Re: Open GLxiaolong zhanghttp://community.qnx.com/sf/go/post931492012-05-17T01:52:30Z2012-05-17T01:52:30ZDear Dennis!
I am interested in the QTOpenGL+QNX accelerated with QT5,I want to konw which CPU does the BB playbook.Otherwise,which graphics framework does it use to support accelerated openGL? I know the qnx6.5 only have the gf framework currently,thanks.xiaolong zhang2012-05-17T01:52:30Zpost93135: RE: getting started with Qt 4.8.1Dennis Kelllyhttp://community.qnx.com/sf/go/post931352012-05-16T16:58:36Z2012-05-16T16:58:36Z>>> how can I now work with the generated libraries under Windows? It seems a QNX-specific "qmake" is needed.
Not true.
Qmake.exe is generic with regard to binaries it can produce. The actual qnx-specific info is provided to qmake.exe on the command-line by qmake_qnx.bat. I use the qmake.exe from qt_qnx_host_win32_x86.tar.gz contained in qt_qnx_2011-02-24b.zip. Works for 4.7 or 4.8 in my experience.
>>> I primarily need what's in "lib", to deploy on my QNX target.
Actually usr/lib/libQt* to corresponding location on windows Momentics host.
-----Original Message-----
From: Malte Mundt [mailto:community-noreply@qnx.com]
Sent: Wednesday, May 16, 2012 11:56 AM
To: general-qt
Subject: getting started with Qt 4.8.1
I downloaded the src (qt-everywhere-opensource-src-4.8.1.tar.gz). Unpacking this, or the .zip, on Windows leads to problems, probably because of symlinks. So I installed a Linux and unpacked it. Then I did:
./configure -xplatform qws/qnx-arm-g++ -embedded arm -no-gfx-linuxfb -no-mouse-linuxtp -no-kbd-tty -no-qt3support -qt-gfx-qnx -qt-mouse-qnx -qt-kbd-qnx -no-exceptions
make
make install
and it worked pretty well. Under /usr/local/Trolltech/QtEmbedded-4.8.1-arm now is a lot of stuff. I assume I primarily need what's in "lib", to deploy on my QNX target.
However, how can I now work with the generated libraries under Windows? It seems a QNX-specific "qmake" is needed. On my Linux machine, it seems to exist under "bin" - but for Linux ofcourse, not Windows. Am I stuck with Linux now?
- Malte
_______________________________________________
Qt General
http://community.qnx.com/sf/go/post93130
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.comDennis Kellly2012-05-16T16:58:36Zpost93130: getting started with Qt 4.8.1Malte Mundthttp://community.qnx.com/sf/go/post931302012-05-16T15:55:43Z2012-05-16T15:55:43ZI downloaded the src (qt-everywhere-opensource-src-4.8.1.tar.gz). Unpacking this, or the .zip, on Windows leads to problems, probably because of symlinks. So I installed a Linux and unpacked it. Then I did:
./configure -xplatform qws/qnx-arm-g++ -embedded arm -no-gfx-linuxfb -no-mouse-linuxtp -no-kbd-tty -no-qt3support -qt-gfx-qnx -qt-mouse-qnx -qt-kbd-qnx -no-exceptions
make
make install
and it worked pretty well. Under /usr/local/Trolltech/QtEmbedded-4.8.1-arm now is a lot of stuff. I assume I primarily need what's in "lib", to deploy on my QNX target.
However, how can I now work with the generated libraries under Windows? It seems a QNX-specific "qmake" is needed. On my Linux machine, it seems to exist under "bin" - but for Linux ofcourse, not Windows. Am I stuck with Linux now?
- MalteMalte Mundt2012-05-16T15:55:43Zpost93121: 回复: Re: 回复: Re: unable to execute qtdemoqin zhouhttp://community.qnx.com/sf/go/post931212012-05-16T02:48:53Z2012-05-16T02:48:53Zfollowing the last email ,i try as a pdf called qmake_qnx.pdf
1)i copy the bat file to
C:\qnx650\host\win32\x86\usr\bin\qmake_qnx.bat
2)run qmake_qnx i386
3)i ignore the error,and copy it to the target ,./cEasy -qws ,it shows
2012-05-16
qhzbit
发件人:Dennis Kellly
发送时间:2012-05-15 23:40
主题:Re: 回复: Re: unable to execute qtdemo
收件人:"general-qt"<general-qt@community.qnx.com>
抄送:
>>>from the terminal ,it shows
>>>QQnxScreen: Attached to Device, number of displays: 1
>>>QQnxScreen: Attached to Display 0, resolution 1024x768, refresh 60 Hz
These are "normal" messages... not errors.
But you should see two more lines like
QQnxMouseHandler: connected.
QWSQnxKeyboardHandler: connect
Have you set the environment variables?
QWS_DISPLAY=qnx
QWS_KEYBOARD=qnx
QWS_MOUSE_PROTO=qnx
_______________________________________________
Qt General
http://community.qnx.com/sf/go/post93098
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.comqin zhou2012-05-16T02:48:53Zpost93120: 回复: Re: 回复: Re: unable to execute qtdemoqin zhouhttp://community.qnx.com/sf/go/post931202012-05-16T02:15:51Z2012-05-16T02:15:51Zthank you ,i make it ,before /usr/photon/bin/devi-hid -Pr kbd mouse,i add # export QWS_DISPLAY=qnx
# export QWS_MOUSE_PROTO=qnx
# export QWS_KEYBOARD=qnx, and i make it ,thank you !
i have another question ,now i want to make my own app .my host is winxp ,my target is vmware on this xp .i have read readme.txt(which is included in the attachment),i do as the following steps:
1)enter C:\Qt\hello,and create a makefile including "LIST=OS CPU VARIANT
MAKEFILE=GNUmakefile
include recurse.mk
##eof"
2)Inside the same directory, create subdirectories called nto-x86-o,including "GNUmakefile"
ifndef QCONFIG
QCONFIG=qconfig.mk
endif
include $(QCONFIG)
include $(MKFILES_ROOT)/qmake-qt.mk
##eof
3)from cmd prompt,i enter the C:\Qt\hello,and run make ,but it shows
4)so i enter the ksh ,and run make
2012-05-16
qhzbit
发件人:Dennis Kellly
发送时间:2012-05-15 23:40
主题:Re: 回复: Re: unable to execute qtdemo
收件人:"general-qt"<general-qt@community.qnx.com>
抄送:
>>>from the terminal ,it shows
>>>QQnxScreen: Attached to Device, number of displays: 1
>>>QQnxScreen: Attached to Display 0, resolution 1024x768, refresh 60 Hz
These are "normal" messages... not errors.
But you should see two more lines like
QQnxMouseHandler: connected.
QWSQnxKeyboardHandler: connect
Have you set the environment variables?
QWS_DISPLAY=qnx
QWS_KEYBOARD=qnx
QWS_MOUSE_PROTO=qnx
_______________________________________________
Qt General
http://community.qnx.com/sf/go/post93098
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.comqin zhou2012-05-16T02:15:51Zpost93096: 回复: Re: unable to execute qtdemoqin zhouhttp://community.qnx.com/sf/go/post930962012-05-15T15:57:43Z2012-05-15T15:57:43Zthis is the screenshot,as you see,i cannot change the color mode ,i will show you what i have done for now to make qt run on the qnx/based on vmware
1)i copy from C:\QNX650\target\qnx6\x86\usr to 192.168.149.131:\usr
2)in the process ,there is two warnings that appears,but i ignore ,they are
3) From telnet, run '/usr/photon/bin/devi-hid -Pr kbd mouse'
4)qtdemo -qws
fail,i don't know the output from the QQnxScreen means
2012-05-15
qhzbit
发件人:Dennis Kellly
发送时间:2012-05-15 21:41
主题:Re: unable to execute qtdemo
收件人:"general-qt"<general-qt@community.qnx.com>
抄送:
Did you use this image for VMware? It includes the VMware video driver.
http://www.qnx.com/download/feature.html?programid=21189
You can check the driver and mode being used by launching Photon, then Configure/Display.
Apparently, 32K colors (15-bits + 1-bit alpha) does not work w/Qt as reported here: http://community.qnx.com/sf/discussion/do/listPosts/projects.qt/discussion.general.topc20436?pageSize=-1#post_post89523
_______________________________________________
Qt General
http://community.qnx.com/sf/go/post93086
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.com
2012-05-15
qhzbit
发件人:Dennis Kellly
发送时间:2012-05-15 21:41
主题:Re: unable to execute qtdemo
收件人:"general-qt"<general-qt@community.qnx.com>
抄送:
Did you use this image for VMware? It includes the VMware video driver.
http://www.qnx.com/download/feature.html?programid=21189
You can check the driver and mode being used by launching Photon, then Configure/Display.
Apparently, 32K colors (15-bits + 1-bit alpha) does not work w/Qt as reported here: http://community.qnx.com/sf/discussion/do/listPosts/projects.qt/discussion.general.topc20436?pageSize=-1#post_post89523
_______________________________________________
Qt General
http://community.qnx.com/sf/go/post93086
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.comqin zhou2012-05-15T15:57:43Zpost93098: Re: 回复: Re: unable to execute qtdemoDennis Kelllyhttp://community.qnx.com/sf/go/post930982012-05-15T15:48:27Z2012-05-15T15:48:27Z>>>from the terminal ,it shows
>>>QQnxScreen: Attached to Device, number of displays: 1
>>>QQnxScreen: Attached to Display 0, resolution 1024x768, refresh 60 Hz
These are "normal" messages... not errors.
But you should see two more lines like
QQnxMouseHandler: connected.
QWSQnxKeyboardHandler: connect
Have you set the environment variables?
QWS_DISPLAY=qnx
QWS_KEYBOARD=qnx
QWS_MOUSE_PROTO=qnxDennis Kellly2012-05-15T15:48:27Zpost93093: 回复: Re: unable to execute qtdemoqin zhouhttp://community.qnx.com/sf/go/post930932012-05-15T14:58:27Z2012-05-15T14:58:27Zthis is the screenshot,as you see,i cannot change the color mode ,i will show you what i have done for now to make qt run on the qnx/based on vmware
1)i copy from C:\QNX650\target\qnx6\x86\usr to 192.168.149.131:\usr
2)in the process ,there is two warnings that appears,but i ignore ,they are
3) From telnet, run '/usr/photon/bin/devi-hid -Pr kbd mouse'
4) mouse/keyboard still no response
i doubt if there is something wrong with io-hid,i refer the document
(devi-hid title )
,so i run io-hid first. i do the following:
1)io-hid -dusb -dps2ser ps2mouse:mousedev:msoft:uart,1:kbd:kbddev &, it shows
2)/usr/photon/bin/devi-hid -Pr kbd mouse
3)qtdemo -qws
fail
2012-05-15
qhzbit
发件人:Dennis Kellly
发送时间:2012-05-15 21:41
主题:Re: unable to execute qtdemo
收件人:"general-qt"<general-qt@community.qnx.com>
抄送:
Did you use this image for VMware? It includes the VMware video driver.
http://www.qnx.com/download/feature.html?programid=21189
You can check the driver and mode being used by launching Photon, then Configure/Display.
Apparently, 32K colors (15-bits + 1-bit alpha) does not work w/Qt as reported here: http://community.qnx.com/sf/discussion/do/listPosts/projects.qt/discussion.general.topc20436?pageSize=-1#post_post89523
_______________________________________________
Qt General
http://community.qnx.com/sf/go/post93086
To cancel your subscription to this discussion, please e-mail general-qt-unsubscribe@community.qnx.comqin zhou2012-05-15T14:58:27Zpost93086: Re: unable to execute qtdemoDennis Kelllyhttp://community.qnx.com/sf/go/post930862012-05-15T13:48:00Z2012-05-15T13:48:00ZDid you use this image for VMware? It includes the VMware video driver.
http://www.qnx.com/download/feature.html?programid=21189
You can check the driver and mode being used by launching Photon, then Configure/Display.
Apparently, 32K colors (15-bits + 1-bit alpha) does not work w/Qt as reported here: http://community.qnx.com/sf/discussion/do/listPosts/projects.qt/discussion.general.topc20436?pageSize=-1#post_post89523Dennis Kellly2012-05-15T13:48:00Zpost93076: Re: unable to execute qtdemoqin zhouhttp://community.qnx.com/sf/go/post930762012-05-15T05:58:49Z2012-05-15T05:58:49Zhow can you get success?i follow the steps ,but fail,can you explain it to me ,thank youqin zhou2012-05-15T05:58:49Zpost93078: Re: Qt unable to run qtdemoqin zhouhttp://community.qnx.com/sf/go/post930782012-05-15T05:47:28Z2012-05-15T05:47:28Zhow you set the Color mode?qin zhou2012-05-15T05:47:28Zpost93077: unable to execute qtdemoqin zhouhttp://community.qnx.com/sf/go/post930772012-05-15T05:39:39Z2012-05-15T05:39:39Zhello ,i'm new to qt/qnx.i encounter a problem when i run qtdemo .the host is momentics on the winxp,and the target is neutrino on vmware .
i do that following the steps showing below:
1) Launch button/Logout/End Photon session ... will exit photon to text mode.
2) Login. Run "ifconfig" and determine IP address.
3) Telnet into the IP address from a different host.
4) From telnet, run '/usr/photon/bin/devi-hid -Pr kbd mouse'
5) From telnet, run 'qtdemo -qws' ... graphics should appear on console
from the terminal ,it shows
QQnxScreen: Attached to Device, number of displays: 1
QQnxScreen: Attached to Display 0, resolution 1024x768, refresh 60 Hz
but from the vmware ,mouse and keyboard are still no response
the relevant topic http://community.qnx.com/sf/go/projects.qt/discussion.general.topc19765,but i fail,please help meqin zhou2012-05-15T05:39:39Zpost92991: Re: Qt "chromeless" browser for html/Javascript applicationsDennis Kelllyhttp://community.qnx.com/sf/go/post929912012-05-10T02:29:03Z2012-05-10T02:29:03ZAn SDcard image for i.mx53 QSB (w/4.3" LCD/touchscreen) is available as:
http://dl.dropbox.com/u/13676760/qnx_mx53_lcd.zip
with documention: http://dl.dropbox.com/u/13676760/qnx_mx53_lcd.pdf
This image is preconfigured with the html application described in this thread.Dennis Kellly2012-05-10T02:29:03Zpost92990: Qt "chromeless" browser for html/Javascript applicationsDennis Kelllyhttp://community.qnx.com/sf/go/post929902012-05-10T02:17:19Z2012-05-10T02:17:19ZSource for a Qt "chromeless" browser using QtWebView (based on webkit) is available is this archive: http://dl.dropbox.com/u/13676760/webvu.zip
A complete html-based example application utilizing the above is available as:
http://dl.dropbox.com/u/13676760/wandw_armv7.tar
Documentation for this entire project is: http://dl.dropbox.com/u/13676760/wandw.pdfDennis Kellly2012-05-10T02:17:19Zpost92921: Re: Open GLDennis Kelllyhttp://community.qnx.com/sf/go/post929212012-05-04T17:20:15Z2012-05-04T17:20:15Z>>>Will it be available to rest of us?
Yes. A new graphics framework - which supports Qt 5 - should be available later this year for general embedded applications. (Of course, Qt 5 is already available in the repository.)Dennis Kellly2012-05-04T17:20:15Zpost92920: Re: Open GLKostadin Vardinhttp://community.qnx.com/sf/go/post929202012-05-04T16:53:07Z2012-05-04T16:53:07ZWill it be available to rest of us?Kostadin Vardin2012-05-04T16:53:07Zpost92705: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?Grant Courvillehttp://community.qnx.com/sf/go/post927052012-04-23T17:03:05Z2012-04-23T17:03:05ZI know you guys know this already but Qt 4.81 is released and has a QNX port.
Qt 5.x (pre-release) is also available and has QNX integration with the new graphics framework that will be made available in late June / July.
We are not posting either of these here as we want everyone to get them from the master qt repository.Grant Courville2012-04-23T17:03:05Zpost92703: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?David Yanghttp://community.qnx.com/sf/go/post927032012-04-23T16:43:18Z2012-04-23T16:43:18ZAt the beginning, I didn't noticed Trolltech.conf file. Now both 4.7 and 4.8 can decode JPG pictures. The mistake I made before is that I didn't replace image plugin 4.8 with 4.7 when I run 4.7, causing the jpeg failed in 4.7.
In addition, the new libqmlwebkitplugin.so you gave me might be the 4.7 edition, 'cause I noticed in my Trolltech.conf that QtWebKit\libqmlwebkitplugin.so=40701, 0, armv6 qws/qnx g++-4 full-config, 2011-02-25.........
So, when I run web function, it shows an error concerning the build key. I wonder if you could send me a new one.
BTW, do you know something about International character support for Qt applications say Chinese or Japanese characters?
I am really gratitude for your help.
Many thanksDavid Yang2012-04-23T16:43:18Zpost92695: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?Dennis Kelllyhttp://community.qnx.com/sf/go/post926952012-04-23T11:36:58Z2012-04-23T11:36:58Z>>>That's interesting. Because when I use 4.8 component, the JPEG picture is loaded correctly.
>>>The .jpg file in my apps can't be rendered either.
Huh?
>>>Could you give me your 4.7 components?
qt_qnx_2011-02-24b.zip from http://community.qnx.com/sf/frs/do/viewRelease/projects.qt/frs.binpkg.targets
One thing, to run jpegs, the file "Trolltech.conf" must be correct. This file is created on app startup if it does not exist. This file is created in $HOME/Settings. If on your target, that location is not writeable, I am guessing plugin's won't work. For an embedded system $HOME may be '/'. Is that writable on your target? Try deleting it and see if it is recreated.
Of course, plugin libraries must be present in /usr/lib/qt4/plugins/imageformats as well.
Remember that .PNG images are handled without a plugin, so this can cause confusion.Dennis Kellly2012-04-23T11:36:58Zpost92691: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?David Yanghttp://community.qnx.com/sf/go/post926912012-04-23T06:48:13Z2012-04-23T06:48:13ZThe .jpg file in my apps can't be rendered either.David Yang2012-04-23T06:48:13Zpost92690: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?David Yanghttp://community.qnx.com/sf/go/post926902012-04-23T04:43:46Z2012-04-23T04:43:46ZThat's interesting. Because when I use 4.8 component, which you give in http://community.qnx.com/sf/discussion/do/listPosts/projects.qt/discussion.general.topc21389, the JPEG picture is loaded correctly. Could you give me your 4.7 components? I could try them on my target to see the results.David Yang2012-04-23T04:43:46Zpost92689: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?Dennis Kelllyhttp://community.qnx.com/sf/go/post926892012-04-22T13:15:01Z2012-04-22T13:15:01ZI assume since your dns is not working, you are using a static IP address... otherwise dhcp would have provided the gateway and dns server.
To setup dns for static ip...
Be sure to specify netmask on your ifconfig line as...
ifconfig fec0 10.0.2.201/24
Set gateway...
route add default 10.0.2.1
Setup dns (client) edit/create /etc/resolv.conf to contain
domain foobar
nameserver 8.8.8.8
Test by ping'ing by name. Once that works, the webkit plugin will resolve names.
Note 8.8.8.8 is a free google dns server - easy to remember!
I have succeeded in getting jpeg's from web to decode using the 4.7 components for x86 and armle-v7. (So far, I have not gotten them to work using 4.8 components.)Dennis Kellly2012-04-22T13:15:01Zpost92687: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?David Yanghttp://community.qnx.com/sf/go/post926872012-04-22T10:00:57Z2012-04-22T10:00:57ZIn fact, I can ping and load www.google.com by its IP address, say 74.125.71.99. But when I ping www.google.com or type http://www.google.com in the URL input box, the page can't be loaded. It seems the domain name resolution has a problem. I can't make sure the source of the problem lies in io-pkt v4 or elsewhere.
Do you have any idea?
BTW, the JPG picture still can't be loaded properly in 4.7 runtime components even if I have exported Qt_Plugin ENVIRONMENT VAR.
There are also lot of square boxes instead of characters, do I have to add more font in the font directory?David Yang2012-04-22T10:00:57Zpost92686: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?Dennis Kelllyhttp://community.qnx.com/sf/go/post926862012-04-21T12:08:38Z2012-04-21T12:08:38Z>>> I can ping www.google.com in my target, which might means that my Internet connection is rightly configured.
That should be sufficient for a browser to connect outward.
>>>What kind of net-related service should I start before starting the
Browser? -
Just io-pkt-c4. (inetd services are for others to connect inbound... not relevant to your browser.)Dennis Kellly2012-04-21T12:08:38Zpost92684: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?David Yanghttp://community.qnx.com/sf/go/post926842012-04-21T08:32:31Z2012-04-21T08:32:31ZFor a QML version, you should copy the QtWebKit/libqmlwebkitplugin.so and QtWebKit/qmldir to your application directory, and the Qtwebkit module uninstalled line can be passed.
For my QML version browser, I can load a local webpage. But when I load an Http webpage, for example http://www.google.com, it failed.But, I can ping www.google.com in my target, which might means that my Internet connection is rightly configured.
You have mentioned that you can load a URL page. What kind of net-related service should I start before starting the Browser?David Yang2012-04-21T08:32:31Zpost92672: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?Dennis Kelllyhttp://community.qnx.com/sf/go/post926722012-04-20T14:23:08Z2012-04-20T14:23:08Z>>>I have no source file and I can't solve this problem.
The same source is available to anyone. See
http://community.qnx.com/sf/discussion/do/listPosts/projects.qt/discussion.general.topc21351
I have been struggling with the webkit plugin as well. If I build a non-QML UI with a webView, I can display a page (local or via socket) - BUT the image plugins (.jpg etc) just don't work. (This is on a system where jpeg's are properly displayed QML scripts.)
If I build a QML version, I can't get past the line "import QtWebKit 1.0" - get "module "QtWebKit" is not installed".Dennis Kellly2012-04-20T14:23:08Zpost92655: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?David Yanghttp://community.qnx.com/sf/go/post926552012-04-20T03:01:01Z2012-04-20T03:01:01ZI have tried the new .so, the problem still exists. When I revert to the 4.7 .so, the browser seems to work, but the UI runs very slowly and jpg decoding doesn't work. I really hope to use the 4.8 shared object.
I wonder if the libqmlwebkitplugin.so is built with the right build key since the error message is:
The plugin '/fs/MMI/QtWebKit
/libqmlwebkitplugin.so' uses incompatible Qt library. Expected build key "arm qws/qnx g++-4 no-pkg-config", got "armv6 qws/qnx g++-4 full-config"
I wonder if the libqmlwebkitplugin.so is built by you from source. I have no source file and I can't solve this problem. I have downloaded QtWebKit 2.2 source from its Website. But I have no idea how to compile the webkit plugin as a QNX .so file, I have no tool.David Yang2012-04-20T03:01:01Zpost92653: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?Dennis Kelllyhttp://community.qnx.com/sf/go/post926532012-04-19T21:55:12Z2012-04-19T21:55:12Z>>>would it be possible that I get a 4.8 lib?
I have packaged the armv7 version ofs libQtWebKit.so.4.9.0 and libqmlwebkitplugin.so in the following archive:
http://dl.dropbox.com/u/13676760/armv7-runtime2-4.8.0.zip
Note that libQtWebKit.so that is built from the repository identifies itself as "4.9.0" rather than "4.8.0" as the rest of the libraries. You can try to rename it as libQtWebKit.so.4 if necessary.
Hope this helps.Dennis Kellly2012-04-19T21:55:12Zpost92633: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?David Yanghttp://community.qnx.com/sf/go/post926332012-04-19T09:07:09Z2012-04-19T09:07:09ZThe file libqmlwebkitplugin.so is from the qt_qnx_2011-02-24b.zip package. It is a Qt4.7 patch, on the other hand, the Qtlib I used in my target is from armv7-runtime-4.8.0.zip Is this the reason that causes Qtlib incompatible issue? I have to revert to 4.7lib or would it be possible that I get a 4.8 lib?David Yang2012-04-19T09:07:09Zpost92630: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?David Yanghttp://community.qnx.com/sf/go/post926302012-04-19T08:40:00Z2012-04-19T08:40:00ZHi, Dennis
I am debugging a Qt application and I have met with a problem which might concerns the compile process of my application.
The error message is like the following:
file:///fs/MMI/qml/Browser/BrowserView.qml:37:1: plugin cannot be loaded for module "QtWebK it": The plugin '/fs/MMI/QtWebKit/libqmlwebkitplugin.so' uses incompatible Qt library. Expected build key "arm qws/qnx g++-4 no-pkg-config", got "armv6 qws/qnx g++-4 full-config"
What kind of change should I make to make the build key as expected?
ThanksDavid Yang2012-04-19T08:40:00Zpost92560: Re: Open GLDennis Kelllyhttp://community.qnx.com/sf/go/post925602012-04-16T12:24:19Z2012-04-16T12:24:19Z>>>As far as I know, QNX doesn't support Open GL,
6.5 supports openGL "ES" (http://en.wikipedia.org/wiki/OpenGL_ES)
It is acclerated on some platforms:
http://www.youtube.com/watch?v=WAN9fC2cqks
QTOpenGL module is not supported on QNX 6.5... Qt4.7 or 4.8.
I have a demo of QTOpenGL accelerated on the BB Playbook with QT5. It is extremely fast - but it uses a different graphics framework (from the one in 6.5) to support accelerated openGL.Dennis Kellly2012-04-16T12:24:19Zpost92556: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?Dennis Kelllyhttp://community.qnx.com/sf/go/post925562012-04-16T11:26:30Z2012-04-16T11:26:30Z>>>my photon directory has been shifted to my SD card.
Hint - mount the SDcard at "/". Then directories will appear at normal locations.Dennis Kellly2012-04-16T11:26:30Zpost92555: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?Dennis Kelllyhttp://community.qnx.com/sf/go/post925552012-04-16T11:21:48Z2012-04-16T11:21:48Z>>>file:///fs/NewQt/qml/NewQt/main.qml:2:1: module "QtQuick" version 1.1 is not installed
>>>import QtQuick 1.1
You must change this to "QtQuick 1.0" to resolve the error.Dennis Kellly2012-04-16T11:21:48Zpost92554: Open GLSeyfettin Süngerhttp://community.qnx.com/sf/go/post925542012-04-16T09:03:31Z2012-04-16T09:03:31ZHi All,
As far as I know, QNX doesn't support Open GL, but I am not sure if Open GL applications can run via QT on QNX?
Do you have any comment about this? In QT project, Is QTOpenGL module ported on QNX?
Looking forward to your comments.
Best regards,Seyfettin Sünger2012-04-16T09:03:31Zpost92552: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?David Yanghttp://community.qnx.com/sf/go/post925522012-04-16T06:18:34Z2012-04-16T06:18:34ZThis problem has already been solved by myself by creating a symbolic link.
The Qt4.8 .so runs well.
Thank you all the same, Dennis.David Yang2012-04-16T06:18:34Zpost92551: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?David Yanghttp://community.qnx.com/sf/go/post925512012-04-15T16:35:43Z2012-04-15T16:35:43ZOne more question:
I have created a Hello World app in Qt QuickUI and compiled it. When I run it, I found that it requires the directory QFontDatabase: /usr/photon/font_repository.
Can I redirect it to other path by setting ENVIRONMENT VAR? Because my photon directory has been shifted to my SD card. Including them in image will lead to a very large image.
BTW it shows a message like following:
file:///fs/NewQt/qml/NewQt/main.qml:2:1: module "QtQuick" version 1.1 is not installed
import QtQuick 1.1
^
I opened your armv7-runtime-4.8.0 package, and I saw a Trolltech directory which contains a lot of font, how to use them?David Yang2012-04-15T16:35:43Zpost92550: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?David Yanghttp://community.qnx.com/sf/go/post925502012-04-15T15:30:46Z2012-04-15T15:30:46ZHi, Dennis:
Do you have any idea about egalax touch controller?
I can't make it work properly. I start the device by the following command:
io-hid -d egalax
devi-hid -Pr touch
With the QNX system driver devh-egalax, the X-Y axis are reversed and the touch point is not precise. Configuring calib file seems useless, or I don't know how to configure calib file properly.
The driver shipped with the touchscreen is a RS232 serial driver which may not work for a USB touch controller interface.
On the other hand, the QNX car application runs very well on this touchscreen, I wonder is there any way to let egalax touch controller works properly?David Yang2012-04-15T15:30:46Zpost92549: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?Dennis Kelllyhttp://community.qnx.com/sf/go/post925492012-04-13T16:05:00Z2012-04-13T16:05:00ZTouchscreen is fully supported for Qt on the i.mx53 qsb w/lcd image posted on this forum.
You must have a driver loaded to use touch. For example for an hid-compliant usb touchscreen...
io-hid -d usb
devi-hid -Pr touch
For Qt, you would change the QWS_MOUSE_PROTO line to something like...
export QWS_MOUSE_PROTO=qnx:/dev/devi/touch0Dennis Kellly2012-04-13T16:05:00Zpost92548: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?David Yanghttp://community.qnx.com/sf/go/post925482012-04-13T15:31:26Z2012-04-13T15:31:26ZHi,Dennis
Very happy that the application is running on Beagle board. I have connected mouse and keyboard and it works well. BTW, I wonder if touchscreen control is possible for the Qt application?David Yang2012-04-13T15:31:26Zpost92545: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?Dennis Kelllyhttp://community.qnx.com/sf/go/post925452012-04-13T13:15:56Z2012-04-13T13:15:56Z>>> # /fs/speedo/speedo -qws
export QWS_DISPLAY=qnx
export QWS_KEYBOARD=qnx
export QWS_MOUSE_PROTO=qnx
cd /fs/speedo
./speedo -qws
You must have started the following to attach to keyboard or mouse:
devi-hid -Pr kbd mouseDennis Kellly2012-04-13T13:15:56Zpost92544: Qt and PlaybookDennis Kelllyhttp://community.qnx.com/sf/go/post925442012-04-13T12:58:17Z2012-04-13T12:58:17ZThe following public link may be of interest as Qt for the Playbook has come up in the past:
http://qt-project.org/wiki/Building_Qt_5_for_the_PlaybookDennis Kellly2012-04-13T12:58:17Zpost92539: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?David Yanghttp://community.qnx.com/sf/go/post925392012-04-13T02:52:50Z2012-04-13T02:52:50ZHi,Dennis:
Thank you for your support. The Qt UI runs partly. It shows the following message:
# /fs/speedo/speedo -qws
Debug: QQnxScreen: Attached to Device, number of displays: 1
Debug: QQnxScreen: Attached to Display 0, resolution 720x400, refresh 60 Hz
Critical: QQnxMouseHandler: Unable to open mouse device (No such file or directory)
Critical: QWSQnxKeyboardHandler: Unable to open device (No such file or directory)
Warning: file:content/speedo.qml: File not found
Debug: program starting
I have already put the content file in the sd card, but it can't recognize it. Do I have to set other environment variables?
Thank you very much.David Yang2012-04-13T02:52:50Zpost92532: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?Dennis Kelllyhttp://community.qnx.com/sf/go/post925322012-04-12T10:13:47Z2012-04-12T10:13:47ZSounds like it wants a network to be started. I guess I never built a runtime without a network present. Try starting io-pkt-v4. On 3530 beagle, no interface is present, but maybe it will allow Qt to start.Dennis Kellly2012-04-12T10:13:47Zpost92531: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?Dennis Kelllyhttp://community.qnx.com/sf/go/post925312012-04-12T10:10:12Z2012-04-12T10:10:12Z#######################################################################
## create /ramdisk for qtembedded-0
#######################################################################
display_msg Starting filesystems...
# create 4M ramdisk /dev/hd1t77 for /qtembedded-0
# must 'dinit -h' and mount
devb-ram ram capacity=8192 &
waitfor /dev/hd1
dinit -hq /dev/hd1t77
mount /dev/hd1t77 /ramdisk
#######################################################################
## set Qt environment vars
#######################################################################
# Qt must make qtembbedded-0 in $TMPDIR
TMPDIR=/ramdisk
QWS_DISPLAY=qnx
QWS_KEYBOARD=qnx
QWS_MOUSE_PROTO=qnxDennis Kellly2012-04-12T10:10:12Zpost92529: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?David Yanghttp://community.qnx.com/sf/go/post925292012-04-12T08:11:24Z2012-04-12T08:11:24ZI have mounted a ramdisk and added TMPDIR variable, unfortunately the following message appeared :
# /tmp/speedo -qws
QWSServerSocket::init: Address family not supported by protocol family
Warning: QWSServerSocket: unable to create socket.
QWSServerPrivate::initServer: server socket not listening: No such process
Fatal: Failed to bind to /fs/ram/qtembedded-0/QtEmbedded-0
Always a lot of difficulties. I wonder if it is possible to embed Qt apps on TI Beagle board OMAP 3530.David Yang2012-04-12T08:11:24Zpost92528: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?David Yanghttp://community.qnx.com/sf/go/post925282012-04-12T06:51:59Z2012-04-12T06:51:59ZHi, Dennis,
You mean I have to create another QNX4 file system on my SD card? I have already built a FAT32 system on my SD card by the following command in buildfile:
devb-mmcsd-beagle dos exe=all lfn=show sfn=windows &
waitfor /dev/hd0 5 &
mount -t dos /dev/hd0t12 /fs
I can't create a qnx4 filesystem by using fdisk since the SD card is already occupied by FAT32 filesystem.
How can I mount a qnx4 filesystem on the SD card? In RAM?David Yang2012-04-12T06:51:59Zpost92521: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?Dennis Kelllyhttp://community.qnx.com/sf/go/post925212012-04-11T11:03:46Z2012-04-11T11:03:46ZThe solution is in this post:
http://community.qnx.com/sf/discussion/do/listPosts/projects.qt/discussion.general.topc20245
Basically you need to create a qnx4fs ramdisk mounted at /fs/ram and
export TMPDIR=/fs/ramDennis Kellly2012-04-11T11:03:46Zpost92519: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?David Yanghttp://community.qnx.com/sf/go/post925192012-04-11T08:52:49Z2012-04-11T08:52:49ZHi,Dennis
I have another problem. When I want to run the UI on my target, I found the following message:
# /fs/speedo -qws
Fatal: Cannot create Qt for Embedded Linux data directory: /qtembedded-0
Abort
What's the problem?David Yang2012-04-11T08:52:49Zpost92337: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?Dennis Kelllyhttp://community.qnx.com/sf/go/post923372012-03-29T03:01:02Z2012-03-29T03:01:02ZAbsolutely! That is in the documentation for the examples.Dennis Kellly2012-03-29T03:01:02Zpost92322: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?David Yanghttp://community.qnx.com/sf/go/post923222012-03-28T14:18:21Z2012-03-28T14:18:21Z>>>The content folder is used at RUNTIME
Does it mean I have to copy both the binary and content folder to my target when I want to run an application on the target?David Yang2012-03-28T14:18:21Zpost92313: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?Dennis Kelllyhttp://community.qnx.com/sf/go/post923132012-03-28T11:08:52Z2012-03-28T11:08:52Z>>> (2.01a) (Qt 4.8.0)
The second version number is the version of the .so liibraries it expects to link to at runtime.Dennis Kellly2012-03-28T11:08:52Zpost92312: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?Dennis Kelllyhttp://community.qnx.com/sf/go/post923122012-03-28T11:06:38Z2012-03-28T11:06:38ZThe binary is indeed the same. The QML seems not to be processed in anyway during the build. In fact, "content" (the arbitrary subdir location for this example) does not appear in the .pro file!
But it IS specified in the C++ sources...
File mainwidget.h:
const QString contentPath = "content/";
File mainwidget.cpp:
QString filename(contentPath + "easyQML.qml");
The content folder is used at RUNTIME since the "MainWidget" is subclassed to a QtDeclarativeView. This view (also referred to as "Qt Quick") starts a runtime object which reads and displays the QML content/easyQML.qml - almost like a browser starts index.html.
Since the QML specifies "Connections", a runtime linkage is established with the target instance "easyData" (in C++). This linkage allows easyData to "emit" a signal recognized by QML and for QML to call a "slot" in easyData.
Note, if no "Connection" is specified, the QML willl still load and function - i.e. you can make a QML-only Qt program! (However, for device control this is not very useful.)Dennis Kellly2012-03-28T11:06:38Zpost92310: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?David Yanghttp://community.qnx.com/sf/go/post923102012-03-28T05:24:04Z2012-03-28T05:24:04ZBy the way,I opened some makefile in your demo and found "Generated by qmake (2.01a) (Qt 4.8.0)", while in my makefile it is "Generated by qmake (2.01a) (Qt 4.7.1)", is there any difference? Do I have to update my qmake tool?David Yang2012-03-28T05:24:04Zpost92308: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?David Yanghttp://community.qnx.com/sf/go/post923082012-03-28T03:47:40Z2012-03-28T03:47:40ZHi,Dennis
Thank you for your quick reply. I have another question.
>>>This will give you a dummy QML file - where you put your script, and >>>you can add additional C++ files for your "data"
>>>handler (signals and slots). It will not have the "exact" structure of >>>cEasy but should be a valid starting point for a new app.
I removed the folder "content" from my project folder, this folder contains .qml file and some images. The build is still successful, the binary is the same. So, what's the function of qml if I can make the project without it?David Yang2012-03-28T03:47:40Zpost92285: Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?Dennis Kelllyhttp://community.qnx.com/sf/go/post922852012-03-27T10:55:46Z2012-03-27T10:55:46Z>>> What kind of project should I create in QtCreator?
With the latest Qt Creator, I would start with QtQuick Project/QtQuick Application... "contains both QML and C++ code and includes a QtDeclarative view."
This will give you a dummy QML file - where you put your script, and you can add additional C++ files for your "data" handler (signals and slots). It will not have the "exact" structure of cEasy but should be a valid starting point for a new app.
>>>r? By the way if I want to migrate a web browser from Qt
platform to QNX, is it possible by your method?
This would NOT likely be a Qt Quick project. But QNX qmake should still handle it.
Sorry, I have not tested qmqke_qnx.bat with anything but Qi Quick examples.
>>>I copied all the .h .cpp and.pro to a folder and the make failed.
Don't copy .pro - it needs to be built for qnx via qmake.Dennis Kellly2012-03-27T10:55:46Z