LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-24-2006, 01:53 PM   #1
victorsk
LQ Newbie
 
Registered: Jan 2006
Posts: 27

Rep: Reputation: 0
Accessing image files in Mandriva


Hello,

I am having difficulty accessing images in my images directory from the game I wrote. My game's images are stored in the 'images' directory and my .c file is trying to access them to render on the screen. But I don't see any images. I tried to re-install Mandriva and specify Standard security. Didn't work. I also tried to type:

'chmod +r images' to change read permissions but that doesn't work too. I also tried 'msec 0' to set the security level. Didn't work. What am I doing wrong? How can I fix it. Please help.

Also, my 'images' directory has the correct name in my game's code so the images ARE there and pointing to the right location, it's just I can't see them on the screen and the program throws an error telling me that it can't acess the images (but my sound files work perfectly)

Thank you,
Victor.
 
Old 04-24-2006, 04:54 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
And if you run your application with strace? Does that supply any useful error messages?
 
Old 04-24-2006, 05:53 PM   #3
victorsk
LQ Newbie
 
Registered: Jan 2006
Posts: 27

Original Poster
Rep: Reputation: 0
Hi,

Thank you for replying. Well, the image library I am using (imlib) posts its own error message stating:

"This program is calling the Imlib call:
imlib_render_image_on_drawable();
With the parameter:
image
being NULL. Please fix your program"

I also run the strace but it basically re-states what that message said:

stat64("./images/explode0.png", {st_mode=S_IFREG|0644, st_size=3173, ...}) = 0

No idea what to do next.

Victor.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Image Viewer Can't View Image Files. klownska Linux - Software 1 02-27-2006 02:26 AM
Problems accessing restored Mandriva partition image Jongi Mandriva 2 01-13-2006 04:53 AM
Mandriva Default Boot Image Maurice Arthur Mandriva 2 06-22-2005 09:39 PM
Changing boot image of Mandriva 2005 LE KDE mcescher Mandriva 1 06-07-2005 12:06 AM
Best image viewer for very large image files? andvaranaut Linux - Software 1 02-21-2004 10:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration