slideshow-1.1.pet: SDL based slideshow app

Paint programs, vector editors, 3d modelers, animation editors, etc.
Message
Author
muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

slideshow-1.1.pet: SDL based slideshow app

#1 Post 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.
Attachments
slideshow-1.1.tar.bz2
(28.69 KiB) Downloaded 1407 times
Last edited by muggins on Mon 27 Oct 2008, 09:56, edited 1 time in total.

fargo
Posts: 8
Joined: Thu 10 Jan 2008, 10:37

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

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#3 Post 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

Yogi
Posts: 207
Joined: Fri 19 Aug 2005, 18:50

#4 Post 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.

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#5 Post 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.

fargo
Posts: 8
Joined: Thu 10 Jan 2008, 10:37

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

Yogi
Posts: 207
Joined: Fri 19 Aug 2005, 18:50

#7 Post by Yogi »

Yes, thank you Muggins. That was it.

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#8 Post 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.

fargo
Posts: 8
Joined: Thu 10 Jan 2008, 10:37

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

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#10 Post 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
Last edited by Lobster on Fri 24 Oct 2008, 22:28, edited 1 time in total.
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#11 Post 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

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#12 Post 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.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#13 Post 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?
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#14 Post 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

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

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

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#16 Post 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?
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#17 Post 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!

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#18 Post 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 . . .
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#19 Post 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

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#20 Post 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
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

Post Reply