Trolltech Home | Qt-embedded-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-embedded-interest Archive, March 2007
.png image display problem on ARM


Message 1 in thread

Hi all,

I have created a GUI application for OMAP5912 on Linux.It is working 
fine,besides one problem. The problem is that a " .png image is not 
disalaying on the screen". I have checked the code, but found nothing 
wrong.The .png image is also in the directory. When i am running the 
application on Virtual frame buffer, the image is displaying 
perfectly,but not on the OMAP5912 hardware. Any help or suggestion will 
be appriciated.
Thank you.


regards,
Sandeep

To unsubscribe - send "unsubscribe" in the subject to qt-embedded-interest-request@xxxxxxxxxxxxx


Message 2 in thread

Hi Sandeep,

you can use "strace" to figure out if your application tries to load the correct file.

E.g. if you usually start your application with
# ./my_app -qws
then try
# strace ./my_app -qws

You'll get really a lot of output, including a line 
   open("<path-to-the-png>", O_RDONLY) = <handler-number>
if it is found else you'll get
   open("<path-to-the-png>", O_RDONLY) = -1 ENOENT (No such file or directory)

I hope this helps you to figure out if at least your application tries to open the correct file.

Best regards,
Paul

-----Ursprüngliche Nachricht-----
Von: sandeep bihal [mailto:sandeepbihal@xxxxxxxxx] 
Gesendet: Freitag, 23. März 2007 08:45
An: qt forum qt/embedded
Betreff: .png image display problem on ARM


Hi all,

I have created a GUI application for OMAP5912 on Linux.It is working 
fine,besides one problem. The problem is that a " .png image is not 
disalaying on the screen". I have checked the code, but found nothing 
wrong.The .png image is also in the directory. When i am running the 
application on Virtual frame buffer, the image is displaying 
perfectly,but not on the OMAP5912 hardware. Any help or suggestion will 
be appriciated.
Thank you.


regards,
Sandeep

To unsubscribe - send "unsubscribe" in the subject to qt-embedded-interest-request@xxxxxxxxxxxxx

To unsubscribe - send "unsubscribe" in the subject to qt-embedded-interest-request@xxxxxxxxxxxxx


Message 3 in thread

You also may want to try testing with other .png image files, if your strace shows the file to have been found.  I am not an image expert, but I do know that on my Zaurus, I occasionally get image files where the image viewer gives the message: "Could not load image", even though the file is there and of a recognized filetype (i.e., gif or tif) which my imageviewers can normally load and display just fine (i.e., can display other images of that particular filetype).

I do not run strace but I know it finds the image because the imageviewer tells me the specific pixels of the image it cannot load.

My guess is that sometimes the software that creates these files uses a slightly nonstandard format or has bugs that are not detected by one image viewer but are detected by another.   Image viewers are picky.

Do you have an image viewer on the OMAP5912 hardware that you could try to view the image with first for testing purposes?

sdjf 

Sandeep Bihal wrote:
> Hi all,
> I have created a GUI application for
> OMAP5912 on Linux.It is working
> fine,besides one problem. The problem
> is that a " .png image is not
> disalaying on the screen". I have
> checked the code, but found nothing
> wrong.The .png image is also in the
> directory. When i am running the
> application on Virtual frame buffer,
> the image is displaying perfectly,but
> not on the OMAP5912 hardware. Any
> help or suggestion will
> be appriciated.
> Thank you.
> regards,
> Sandeep

To unsubscribe - send "unsubscribe" in the subject to qt-embedded-interest-request@xxxxxxxxxxxxx