64 bit Linux (Is STILL a problem!)

  • DucTape
    3rd Jul 2011 Member 0 Permalink
    Trying to run powder toy on MULTIPLE 64 bit distros requires massive command line modification or self compiling to run. The former of which is pretty difficult, and the latter still unreasonable for most people (impossible if your distro doesn't have lua dev packages for some stupid reason). Can we please just get official 64bit binaries back?
  • DucTape
    3rd Jul 2011 Member 0 Permalink
    I love how the devs have responded to this, and fixed the problem. Or at least gave a reason why they won't/can't release for 64bit Linux. Despite the fact there totally were 64bit Linux releases in the past.

    Oh wait. They haven't.

    EDIT: BTW, I have spent a couple hours in the Sabayon IRC trying to get this to work. It won't. I have to compile my own binaries, with LUA disabled (Due to lack or certain lua packages in the repo). I would be fine with compiling, if not for the LUA issues. I have tried using wine, and it's pretty buggy.

    If someone has another workaround, suggest it. I have spent hours trying to fix this, and I'm tired of it.
    Edited by DucTape, 2011-07-04 19:02:09
  • jacksonmj
    3rd Jul 2011 Developer 0 Permalink
    sudo ln -s /lib32/libbz2.so.1.0.6 /lib32/libbz2.so.1.0
    Tested on a 64 bit Sabayon live CD.

    To compile with Lua enabled on Sabayon (and on some other distros), you need to edit the Makefile.
    Add -DLUA_R_INCL to CFLAGS
    and change -llua5.1 to -llua in LFLAGS.
    Then make powder-64-sse3
    Edited by jacksonmj, 2011-07-05 14:23:41
  • DucTape
    3rd Jul 2011 Member 0 Permalink
    Thanks man, gonna go try that out. Will edit with results.
    EDIT: Works great! Thanks!
    Edited by DucTape, 2011-07-04 21:01:12
  • gbl08ma
    3rd Jul 2011 Member 0 Permalink
    I know the problem has probably been solved for the original poster, but anyways, I reply with the hope that this can be useful for someone.

    Recently it was offered me a brand new laptop. 8GB RAM, 1GB graphic card, and a i7 Intel Core. It has four cores with two hyperthreads each. Conclusion: to take full advantage of it, I would to use a 64 bit OS (as 32 bit would only recognize 3GB of RAM). I installed Ubuntu 11.04, then was going to install TPT... wait, no 64 bit builds?

    Turns out I would need to build from source to have TPT working on 64 bit Linux. Having compiled other software before, the major hassle I came along was cloning the GIT repo (I'm used to SVN and this thing of keys and authentication in GIT confused me at start).

    The second major hassle: the Linux compiling instructions on the wiki are focused for 32 bit, and there's no such thing of "lib64bz2-dev" for 64 bit systems - these use lib64-dev just like all the others. Plus, it didn't list one required package (for 64 bit at least): fftw3-dev
    Without this package, it wouldn't build without errors all the 64 bit targets specified in the makefile.

    After getting all the required packages, I ran

    ~/thepowdertoy$ make powder-64-sse3

    and then

    ~/thepowdertoy$ cd build

    and finally

    ~/thepowdertoy/build$ ./powder-64-sse3

    ...on the terminal. The Powder Toy should now start on your 64 bit Linux system!

    God! How TPT is fast on my shiny new laptop when compared to my 2GhZ CPU/2GB RAM desktop! It's like seeing all the saves in fast forward :) And the best of all, it doesn't use the first CPU core to 100% like what happened with the desktop (perhaps, not because of the CPU being a i7, but because of the graphics card being nvidia).

    Conclusion: it takes some time to build for 64 bit and it would be neater if there were official builds of it. Lacking these builds, and in order to help people with 64 bit systems, I'm posting the binary resulting of my build for download. IT COMES WITHOUT WARRANTY NOR SUPPORT and is licenced under the same terms as The Powder Toy. All credit goes to TPT team.
    This is the GIT revision I forked to my GitHub account... it's not a stable release.
    File hosted at one of my servers; direct download link:
    http://4.l.to/dl/tpt/powder-64-sse3

    NOTE: I will be updating the build on that URL as I have time, when I build an updated version of TPT I will upload the resulting file there.

    Gabriel
  • pilojo
    3rd Jul 2011 Member 0 Permalink
    This post has been removed by Xenocide: Irrelevant
Locked by antb: Solved