You are not logged in.

#1 2008-04-11 04:45:27

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,396
Website

Building FretsOnFire from source - python problem

I am trying to build FretsOnFire from source so that I can get a native x86_64 version working.

So far I have working builds of amanith and pyamanith in AUR.  I know these are working because I can run FretsOnFire directly from python.

To run FretsOnFire using just python, download both the src and the binary package.  Copy the contents of the data folder from the binary package to the src package.  Then run "python FretsOnFire.py" from the src directory of the source package.  (This works on my i686 machine but I can't remember testing it on my x86_64 one).

Now I want to make the binary... To do that we need to edit Makefile.unix in the source package. Changes needed are:
1) CXFREEZE=/usr/share/cx-freeze/FreezePython
2) PYTHON_LIBS=/usr/lib/python2.5
3) /usr/local/lib/amanath -> /usr/lib/amanath
4) remove the following lines (quick hack that needs fixed later...):
           /usr/lib/liblapack.so.3 \
           /usr/lib/libg2c.so.0 \
           /usr/lib/atlas/libblas.so.3 \
5) cx_freeze and epydoc are needed so intstall them.
6) copy FretsOnFire (shell script) from the binary package to data/launcher.sh in the source package
7) make -f Makefile.unix

Everything builds nicely!  But running FretsOnFire from the newly created dist directory gives:

ImportError: No module named glx

What do I need to fix this?

Offline

#2 2008-04-11 15:52:33

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,396
Website

Re: Building FretsOnFire from source - python problem

So looking at the cx_freeze output:

Missing modules:
<snip>
? OpenGL.platform.GL imported from OpenGL.GL.exceptional, OpenGL.GLU.projection
? OpenGL.platform.GLU imported from OpenGL.GL.exceptional, OpenGL.GLU.quadrics, OpenGL.GLU.tess
? OpenGL.platform.PLATFORM imported from OpenGL.GLU.glunurbs, OpenGL.GLU.quadrics, OpenGL.GLU.tess
? OpenGL.platform.createBaseFunction imported from OpenGL.GL.exceptional, OpenGL.GLU.quadrics, OpenGL.GLU.tess
<snip>

Could that be related.  I know nothing about python...

Offline

#3 2008-04-11 16:40:41

arooaroo
Member
From: London, UK
Registered: 2005-01-13
Posts: 1,268
Website

Re: Building FretsOnFire from source - python problem

I've never tried running/building this, but...

Evidently there are some OpenGL libs that Python wants but doesn't know where to find them. It'll build fine because Python doesn't evaluate until runtime. Either they are bundled with your source (in which case you need to tell Python about the additional libs) or they are a dependency, in which case you need download and install them.

Offline

#4 2008-04-16 18:31:31

Beini
Member
From: Finland
Registered: 2007-06-06
Posts: 78

Re: Building FretsOnFire from source - python problem

I posted my PKGBUILDs for compiling from source to this thread some time ago:

http://bbs.archlinux.org/viewtopic.php? … 74#p271774

You probably won't need the pyamanith and amanith PKGBUILDs.

I don't think it's for the current version of Frets on Fire, but it should be easy to update.

EDIT: Sorry, that host didn't work anymore.

Here's a working link to the PKGBUILD:

http://shelli.fi/~bane/fretsonfire.tar.gz

Last edited by Beini (2008-04-16 18:37:16)


archlinux x86_64 user || My PKGBUILDs

Offline

#5 2008-04-16 23:06:04

Demind
Member
Registered: 2007-07-10
Posts: 111

Re: Building FretsOnFire from source - python problem

I've builded a fretsonfire package for x86_64 using the bin32.
If you can wait max a couple of day i can finish the PKGBUILD and then submit it to the AUR so you can easily install it on your box.
Let me know if you're interested.
The game starts correctly, i've not played it so i can't tell you if everything is fine but it seems ok.

EDIT: I've finished the PKGBUILD in a couple of minutes so you can find the package in the AUR even now.
Search for bin32-fretsonfire.
Feedback are wellcome

Last edited by Demind (2008-04-16 23:47:18)

Offline

#6 2008-04-17 00:14:58

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,396
Website

Re: Building FretsOnFire from source - python problem

@Beini:  Thanks for the PKGBUILD.  It appears to do almost exactly what I described above so I think maybe I had a problem with the newer version.  I will test it out later.

@Demind:  As I said above, I wanted a native x86_64 build.  I have a hatred for lib32.  big_smile

Offline

#7 2008-04-17 11:34:02

Demind
Member
Registered: 2007-07-10
Posts: 111

Re: Building FretsOnFire from source - python problem

Allan wrote:

@Beini:  Thanks for the PKGBUILD.  It appears to do almost exactly what I described above so I think maybe I had a problem with the newer version.  I will test it out later.

The problem is amanith, you can't build it from source nowadays.
If i'm wrong please link me where i can find the source code of amanith...

@Demind:  As I said above, I wanted a native x86_64 build.  I have a hatred for lib32.  big_smile

The problem is that amanith source code is not downloadable anymore.
I would be very happy to help you building a native x86_64 fretsonfire package but without that source code is impossible.
I don't know if in the past amanith was easily downloadable but now it doesn't seem to be so.

That's the real problem in my opinion and that's why i've used lib32.
However using lib32 is not so bad come on big_smile

Offline

#8 2008-04-17 12:57:28

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,396
Website

Re: Building FretsOnFire from source - python problem

@Demind:  As I said above, I wanted a native x86_64 build.  I have a hatred for lib32.  big_smile

The problem is that amanith source code is not downloadable anymore.
I would be very happy to help you building a native x86_64 fretsonfire package but without that source code is impossible.
I don't know if in the past amanith was easily downloadable but now it doesn't seem to be so.

That's the real problem in my opinion and that's why i've used lib32.
However using lib32 is not so bad come on big_smile

Hmmm...  I downloaded it only a couple of weeks ago.  I even put working PKGBUILDs for amanith and pyamanith into AUR.  But I see the company making it has gone all commercial on us. mad

Also, lib32 is evil! big_smile  I don't use it out of principle.  I was going to forgive FretsOnFire for the non-free songs but not to the extent of having to lib32ify my pure64(TM) system!

Offline

#9 2008-04-17 13:44:18

Beini
Member
From: Finland
Registered: 2007-06-06
Posts: 78

Re: Building FretsOnFire from source - python problem

The 0.3 source is available at least in places like:

http://ftp.riken.go.jp/pub/FreeBSD/dist … _03.tar.gz

Just did a google search for amanith_03.tar.gz smile

I also uploaded the PKGBUILDs i was using for amanith and pyamanith if you want to check them. At least they worked for me smile

http://shelli.fi/~bane/amanith.tar.gz

http://shelli.fi/~bane/pyamanith.tar.gz


archlinux x86_64 user || My PKGBUILDs

Offline

#10 2008-04-17 14:04:17

Demind
Member
Registered: 2007-07-10
Posts: 111

Re: Building FretsOnFire from source - python problem

Beini wrote:

The 0.3 source is available at least in places like:

http://ftp.riken.go.jp/pub/FreeBSD/dist … _03.tar.gz

Just did a google search for amanith_03.tar.gz smile

I can't understand why my google-search didn't find anything.So weird!Thanks a lot

I also uploaded the PKGBUILDs i was using for amanith and pyamanith if you want to check them. At least they worked for me smile

http://shelli.fi/~bane/amanith.tar.gz

http://shelli.fi/~bane/pyamanith.tar.gz

ok, i'll give it a try and help Allan to keep having is pure64(TM) system big_smile
Obviously is better having a native x86_64 package

Offline

Board footer

Powered by FluxBB