Page 1 of 2

slideshow-1.1.pet: SDL based slideshow app

Posted: Sat 27 Oct 2007, 14:28
by muggins
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.

Posted: Thu 10 Jan 2008, 10:41
by fargo
EXCELLENT :)

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?

Posted: Thu 10 Jan 2008, 11:02
by MU
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

Posted: Thu 10 Jan 2008, 21:52
by Yogi
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.

Posted: Thu 10 Jan 2008, 23:26
by muggins
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.

Posted: Fri 11 Jan 2008, 00:35
by fargo
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?

Posted: Fri 11 Jan 2008, 01:10
by Yogi
Yes, thank you Muggins. That was it.

Posted: Fri 18 Jan 2008, 11:56
by muggins
Yogi,

glad you got it working.



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.

Posted: Fri 18 Jan 2008, 21:46
by fargo
Thank you muggins :)

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?

Posted: Fri 18 Jan 2008, 23:01
by Lobster
Tried both SDL libraries and this command line:

Code: Select all

slideshow -window -name 1c.jpg -advance 3 -random -tran random
did not seem to work - nothing
am using xorg and Puppy 2.17

Posted: Fri 18 Jan 2008, 23:14
by MU
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

Posted: Sat 19 Jan 2008, 03:09
by muggins
Hi Lobster,

you had me sweating there for a few secs, as I couldn't get the thing to work either!
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.

Posted: Sat 19 Jan 2008, 09:03
by Lobster
thanks guys :)

Code: Select all

# 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?

Posted: Sat 19 Jan 2008, 09:23
by MU
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

Posted: Sat 19 Jan 2008, 10:08
by muggins
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 ?

Posted: Sat 19 Jan 2008, 11:34
by Lobster

Code: Select all

# ldd /usr/lib/libSDL_image-1.2.so.0 
ldd: /usr/lib/libSDL_image-1.2.so.0: No such file or directory
# 
I did try the doom pup as well . . .
will try that again if you think worthwhile?

Posted: Sat 19 Jan 2008, 11:52
by muggins
Lobster,

Well, only you can judge if it's worth your while. But if you install Mark's http://dotpups.de/dotpups/Games/LibSDL1.2-forDoom.pup , then the program does work. And if you run it on a directory full of yantras, with fade between images, you'll be up there with the Ascended Masters in the Grand Teton...woops...I think I might have got the wrong Ascended Masters & the wrong mountain range!

Posted: Sat 19 Jan 2008, 13:35
by Lobster
:shock:

I want to ascend with yantras
but I could not get it to work

Code: Select all

The following options apply only when picture_path is a directory:
-recurse   : Recurse into subdirectories
-sort S    : Sort file list, where S is one of the following:
             n+  : Name ascending (a-z)
             n-  : Name descending (z-a)
             cd+ : Create date ascending (oldest first)
             cd- : Create date descending (newest first)
             md+ : Mofify date ascending (oldest first)
             md- : Mofify date descending (newest first)

# slideshow -window -name 1c.jpg -advance 3 -random -tran random
The program is there
Marks doompup is there
I have rebooted and tried various combinations and changed Windows manager from JWM to Icewm

No Yantra :?

It is like the program runs - but does nothing . . .
I am using Nvidia card - should not be relevant . . .

Posted: Sat 19 Jan 2008, 15:12
by MU
slideshow -name -advance 3 -random -tran random /usr/share/backgrounds/

slideshow -name -window -width 300 -height 200 -advance 3 -random -tran random /usr/share/backgrounds/


Mark

Posted: Sat 19 Jan 2008, 16:07
by Lobster
:oops: As usual all it takes is someone with a bit of sense . . .

Thanks Mark

NOW Working - now to make use of it
Many thanks to you and Muggins

At the moment I am using Qiv for Tmxxine Vision
Shrine Builder . . . but I think I prefer this new Slideshow
http://tmxxine.com/wik/wikka.php?wakka= ... xineVision

:)
thanks again