Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 26 Nov 2014, 06:21
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
slideshow-1.1.pet: SDL based slideshow app
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Author Message
muggins

Joined: 20 Jan 2006
Posts: 6690
Location: lisbon

PostPosted: Sat 27 Oct 2007, 10:28    Post_subject:  slideshow-1.1.pet: SDL based slideshow app  

people have often asked for a suitable slideshow presentation application for puppy. i quite like the simplicity, and smallness, of this SDL based one.

http://www.xmission.com/~jstanley/slideshow.html

it needs SDL library files to run. extract the attached file to /, then type slideshow --help to see options.
slideshow-1.1.tar.bz2
Description 
bz2

 Download 
Filename  slideshow-1.1.tar.bz2 
Filesize  28.69 KB 
Downloaded  1062 Time(s) 

Edited_time_total
Back to top
View user's profile Send_private_message 
fargo

Joined: 10 Jan 2008
Posts: 8

PostPosted: Thu 10 Jan 2008, 06:41    Post_subject:  

EXCELLENT Smile

I'm trying to run this on Puppy 2.x but it complains about the file /usr/lib/libSDL-1.2.so.0 being too short!!

Any idea how to solve this?

BTW, your progy doesn't need X server, right?
Back to top
View user's profile Send_private_message 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Thu 10 Jan 2008, 07:02    Post_subject:  

re-install sdl with petget, or use this dotpup:
http://dotpups.de/dotpups/Games/LibSDL1.2-forDoom.pup

Try petget first, as both versions are slightly different.
Mark
Back to top
View user's profile Send_private_message Visit_website 
Yogi

Joined: 19 Aug 2005
Posts: 177

PostPosted: Thu 10 Jan 2008, 17:52    Post_subject:  

sh-3.00# slideshow
sh: slideshow: command not found
sh-3.00# slideshow -help
sh: slideshow: command not found
sh-3.00#


Installed to /, but for some reason it doesn't see it. I'm running Pizza Pup 3.01.
Back to top
View user's profile Send_private_message 
muggins

Joined: 20 Jan 2006
Posts: 6690
Location: lisbon

PostPosted: Thu 10 Jan 2008, 19:26    Post_subject:  

Hi Yogi,

how did you extract the archive to / ? I suspect that the executable, slideshow, has been extracted & ended up somewhere else in your file system, rather than /usr/bin. You can try & locate where it's been extracted to by entering:

find / -name slideshow

and, if you find it, move it to /usr/bin.
Back to top
View user's profile Send_private_message 
fargo

Joined: 10 Jan 2008
Posts: 8

PostPosted: Thu 10 Jan 2008, 20:35    Post_subject:    

Thank you MU. The SDL lib is working well now.

slideshow seems to need X server to run, because when I exit X and try to run it, it complains about no display device was found.

I'm wondering about how difficult it is to write a slideshow outside X11?
Back to top
View user's profile Send_private_message 
Yogi

Joined: 19 Aug 2005
Posts: 177

PostPosted: Thu 10 Jan 2008, 21:10    Post_subject:  

Yes, thank you Muggins. That was it.
Back to top
View user's profile Send_private_message 
muggins

Joined: 20 Jan 2006
Posts: 6690
Location: lisbon

PostPosted: Fri 18 Jan 2008, 07:56    Post_subject:  

Yogi,

glad you got it working.




Quote:

I'm wondering about how difficult it is to write a slideshow outside X11?


fargo,

yes SDL needs X11 AFAIK. There are commandline graphic viewers, which might have slideshow capability, but they would probably be Svga or framebuffer based. So you would need to either use an Svga based distro, (2 floppy based blueflops springs to mind), or one that supports framebuffer mode, like maybe dsl. previous pupversions used to have packages for framebuffer & svga, but it could be problematical tracking that stuff down.
Back to top
View user's profile Send_private_message 
fargo

Joined: 10 Jan 2008
Posts: 8

PostPosted: Fri 18 Jan 2008, 17:46    Post_subject:  

Thank you muggins Smile

Actually I came from the GP2X world where we have SDL games without X11 (framebuffer only).

Ok, how about stripping down X11 to the components needed by your program only and configure it to start up once the computer powers on?
Back to top
View user's profile Send_private_message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Fri 18 Jan 2008, 19:01    Post_subject:  

Tried both SDL libraries and this command line:

Code:
slideshow -window -name 1c.jpg -advance 3 -random -tran random


did not seem to work - nothing
am using xorg and Puppy 2.17

_________________
Puppy WIKI

Edited_time_total
Back to top
View user's profile Send_private_message Visit_website 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Fri 18 Jan 2008, 19:14    Post_subject:  

Lob, you get any errors?
Maybe you need a different color-depth for your display.
Some games using SDL work only with 16 or with 24 bit.
Mark
Back to top
View user's profile Send_private_message Visit_website 
muggins

Joined: 20 Jan 2006
Posts: 6690
Location: lisbon

PostPosted: Fri 18 Jan 2008, 23:09    Post_subject:  

Hi Lobster,

you had me sweating there for a few secs, as I couldn't get the thing to work either!

Quote:

slideshow -window -name 1c.jpg -advance 3 -random -tran random


-window option is probably redundant, as slideshow will use default window size of 800x600, unless you specify a different height & width.

-name should be entered by itself, to have the filename displayed on the pic. If not entered, pic will be unnamed.

-advance 3 -random -tran random This is all OK.

The last bit you should enter is just the path to the directory where the pics are, so on my computer, this works:

slideshow -name -advance 3 -random -tran random /x2

You can also have the last entry pointing to a text-file, with a list of jpegs to display, one per line. Hope this works for you.
Back to top
View user's profile Send_private_message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Sat 19 Jan 2008, 05:03    Post_subject:  

thanks guys Smile

Code:
# slideshow -name -advance 3 -random -tran random /x2
slideshow: error while loading shared libraries: libSDL_image-1.2.so.0: cannot open shared object file: No such file or directory
# slideshow -name 1c.jpg -advance 3 -random -tran random /x2
slideshow: error while loading shared libraries: libSDL_image-1.2.so.0: cannot open shared object file: No such file or directory


Don't sweat - it is me being incompetent and 'CLI fear'
(A penguin condition)

Finally got an error message (did not even get that before)

this is the file I have in at the moment
libsdl-1.2-9
it is wrong - where do I get the one mentioned?

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
MU


Joined: 24 Aug 2005
Posts: 13644
Location: Karlsruhe, Germany

PostPosted: Sat 19 Jan 2008, 05:23    Post_subject:  

it definately is in:
http://dotpups.de/dotpups/Games/LibSDL1.2-forDoom.pup

But maybe that depends on another one?

Please post the result of this command:
ldd /usr/lib/libSDL_image-1.2.so.0

Mark
Back to top
View user's profile Send_private_message Visit_website 
muggins

Joined: 20 Jan 2006
Posts: 6690
Location: lisbon

PostPosted: Sat 19 Jan 2008, 06:08    Post_subject:  

Hi mark & lobster,

I think Mark's http://dotpups.de/dotpups/Games/LibSDL1.2-forDoom.pup is the only thing you need to install. Maybe the libSDL-1.2.9 doesn't have libSDL_image.so ?
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0753s ][ Queries: 13 (0.0077s) ][ GZIP on ]