Forum Topic - How to build a UI project in QtCreator like the demo Speedo or cEasy?: Page 2 of 2 (39 Items)
   
Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?  
>>>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.
Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?  
I 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. 
Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?  
>>>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".

Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?  
For 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? 
Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?  
>>> 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.)
Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?  
In 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?

Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?  
I 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.)
Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?  
That'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.
Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?  
The .jpg file in my apps can't be rendered either.
Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?  
>>>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.
Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?  
At 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 thanks 
Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?  
I 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.
Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?  
I'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,

Remco
Re: How to build a UI project in QtCreator like the demo Speedo or cEasy?  
'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.