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 Thu 23 Oct 2014, 14:11
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 [25 Posts]   Goto page: 1, 2 Next
Author Message
muggins

Joined: 20 Jan 2006
Posts: 6688
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  1054 Time(s) 

Last edited by muggins on Mon 27 Oct 2008, 05:56; edited 1 time in 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: 13642
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 poster's 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: 6688
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: 6688
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

Last edited by Lobster on Fri 24 Oct 2008, 18:28; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
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 poster's website 
muggins

Joined: 20 Jan 2006
Posts: 6688
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 poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
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 poster's website 
muggins

Joined: 20 Jan 2006
Posts: 6688
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 from previous:   Sort by:   
Page 1 of 2 [25 Posts]   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:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


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