PDA

View Full Version : Install The Powder Toy



jimmij
11th July 2012, 02:11 AM
I recently changed from Ubuntu to Fedora 17; On the Ubuntu OS I had no problem simply running The Powder Toy with the Autorun promot. But now that I have switched to Fedora i cannot seem to get it to run or to find any real information on how to do so. I found this link in the forum -forums.fedoraforum.org/archive/index.php/t-246900.html- but the information there does not seem to work and is not really informative.
I have also gone through the process with the Wiki page, again no help. -the-powder-toy.wikispaces.com/Building+in+Linux-

I have downloaded the copy from "facialturd" at the repository center (FacialTurd-The-Powder-Toy-build183-0-gfc3bc43.zip), but my system cannot find "build-essential" (but I believe that is debian), libbz2-dev, or libsdl1.2-dev.
i did try installing the zfstream form the other thread, but no-go.
Any help, please? Powder Toy is my late night fix.

jimm

george_toolan
11th July 2012, 11:40 AM
FacialTurd-The-Powder-Toy-build185-0-g9e07825.zip compiles with Fedora 16 if you just install a few packages.


yum install SDL-devel fftw fftw-devel lua-devel

Now you just have to edit the Makefile and add -DLUA_R_INCL after -DLUACONSOLE and change the name of the lua library to -llua-5.1 instead of -llua5.1

Now it should compile with just some alignment warnings:


/usr/bin/ld: Warning: alignment 8 of symbol `gravmap' in build/obj/gravity.powder.o is smaller than 16 in build/obj/powder.powder.o
/usr/bin/ld: Warning: alignment 8 of symbol `gravmap' in build/obj/gravity.powder.o is smaller than 16 in build/obj/luaconsole.powder.o
/usr/bin/ld: Warning: alignment 8 of symbol `gravmap' in build/obj/gravity.powder.o is smaller than 16 in build/obj/elements/gbmb.powder.o

If you need more files just ask yum:


yum provides "*filename.h"

jimmij
11th July 2012, 09:57 PM
Okay, I followed your directions and I received similar errors to what you detailed. But when it says that the alignment is off how do I fix it? Do I use the ' yum provides ' and enter in: powder.powder.o, luaconsole.powder.o, etc.? ( I gave it a shot anyways, I didn't think it would work and I was right [unless I did that wrong]). And, if I have to edit the object code, how do I do that? I tried to open with gedit and cat; no-go.

/usr/bin/ld: Warning: alignment 8 of symbol `gravmap' in build/obj/gravity.powder.o is smaller than 16 in build/obj/powder.powder.o
/usr/bin/ld: Warning: alignment 8 of symbol `gravmap' in build/obj/gravity.powder.o is smaller than 16 in build/obj/luaconsole.powder.o
/usr/bin/ld: Warning: alignment 8 of symbol `gravmap' in build/obj/gravity.powder.o is smaller than 16 in build/obj/elements/gbmb.powder.o
/usr/bin/ld: Warning: alignment 8 of symbol `gravmap' in build/obj/gravity.powder.o is smaller than 16 in build/obj/elements/gpmp.powder.o
/usr/bin/ld: Warning: alignment 8 of symbol `gravmap' in build/obj/gravity.powder.o is smaller than 16 in build/obj/elements/nwhl.powder.o
/usr/bin/ld: Warning: alignment 8 of symbol `gravmap' in build/obj/gravity.powder.o is smaller than 16 in build/obj/elements/nbhl.powder.o


I really appreciate your help, thanks!
sin jimm

george_toolan
11th July 2012, 10:06 PM
That's just a linker warning like I said.

You can find the powder binary in the build directory ;-)

jimmij
11th July 2012, 11:49 PM
I just recovered from a Brain-Cloud. I forgot to post that I am running Fedora 17 64bit with Gnome 3, but as I understand from my other readings, the fix for Fedora 16 should work as well. (I have also tried running the 64bit download from ThePowderToy.uk, that did not work either). I re-did all the commands and ensured that the whole Powder file has all the permissions to run. Do you think that I need to track down all the associated libraries and change their permissions?

sin jimm

george_toolan
12th July 2012, 04:28 AM
What exactly is the problem? If you have the binary you can just run it ;-)


make
strip build/powder
sudo mv build/powder /usr/local/bin
powder &

Apparently this program likes to create a configuration file powder.pref in the current working directory.

You would need these libraries and there's no need to change any permissions.


$ ldd `which powder`
linux-vdso.so.1 => (0x00007fffbe357000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003dd3e00000)
libSDL-1.2.so.0 => /usr/lib64/libSDL-1.2.so.0 (0x0000003de4a00000)
libfftw3f.so.3 => /usr/lib64/libfftw3f.so.3 (0x0000003108e00000)
libm.so.6 => /lib64/libm.so.6 (0x0000003dd4a00000)
libbz2.so.1 => /lib64/libbz2.so.1 (0x0000003de3e00000)
libX11.so.6 => /usr/lib64/libX11.so.6 (0x0000003dd7600000)
liblua-5.1.so => /usr/lib64/liblua-5.1.so (0x0000003de8e00000)
librt.so.1 => /lib64/librt.so.1 (0x0000003dd4600000)
libc.so.6 => /lib64/libc.so.6 (0x0000003dd3a00000)
/lib64/ld-linux-x86-64.so.2 (0x0000003dd3600000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000003dd4200000)
libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x0000003dd7a00000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003dd5200000)
libXau.so.6 => /usr/lib64/libXau.so.6 (0x0000003dd8200000)

jimmij
12th July 2012, 05:41 AM
The last few commands are what did it- it is functioning now. I was unaware of a 'strip' command (existing or being neccessary [ I am still learning]), or that powder had to be posted into the bin directory. I hope it was not too much of a hassle for you. Most the time when I run into these problems I just don't know what I don't know.

It works now, thank you very much! I will try and tweak it a little later to get it to access the update repositories and make a link to the desktop, but I am happy now.

sin jimm