Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chipmunk compile is required on x64(linux) #21

Closed
viblo opened this issue Oct 4, 2013 · 8 comments
Closed

chipmunk compile is required on x64(linux) #21

viblo opened this issue Oct 4, 2013 · 8 comments

Comments

@viblo
Copy link
Owner

viblo commented Oct 4, 2013

From henri.tu...@gmail.com on June 23, 2009 17:47:23

What steps will reproduce the problem? 1. Have a 64bit linux system.
2. easy_install pymunk

Instead of installing the library, easy_install fails.

I solved the problem locally by downloading pymunk-0.8.2 sources, then
compiled chipmunk manually and replaced libchipmunk.so with compiled
version. This was approximately a 40 second step.

Doing this isn't a trouble for a decent programmer, though perhaps should
be documented into README?

Another possibility would be to put in the 64bit .so there as well. Sure,
if you get it working. Notice that you should somehow detect in which mode
the python is running.

Original issue: http://code.google.com/p/pymunk/issues/detail?id=22

@viblo
Copy link
Owner Author

viblo commented Oct 4, 2013

From vb%viblo...@gtempaccount.com on June 27, 2009 06:10:24

Thanks for the report! I wonder what the best way is to handle this.. the big problem
is that I currently don't have access to a 64bit linux machine, so it has been hard
for me to test (actually a 64bit so file was included once, but as I couldnt create
it myself it became to troublesome to keep it up to date). Anyway, I think I might
have better luck soon because I recently bought a new server. And I am ofc open to
any other suggestions/code/info on how to best deal with it.

Status: Accepted
Owner: v...@viblo.se

@viblo
Copy link
Owner Author

viblo commented Oct 4, 2013

From txprog on September 07, 2009 04:53:35

I can provide a 64bits package for linux. It work very well here :)

@viblo
Copy link
Owner Author

viblo commented Oct 4, 2013

From vb%viblo...@gtempaccount.com on September 13, 2009 13:40:59

Good to hear that it works good for you! Ive been abroad for a couple of months and
therefor haven't been able to set up my own env yet, but will do so soon. If I don't
get it to work, Ill ask you for a 64bit package in time for the next relase if I need
one.

However, its still the question about how to easiest handle it. Bundle both 32 and
64bit files with pymunk and let it decide on startup which one to load? Or maybe just
add a check that if the user is on 64 bit, tell him/her to recompile chipmunk...

@viblo
Copy link
Owner Author

viblo commented Oct 4, 2013

From theh...@gmail.com on September 13, 2009 20:24:56

Can someone please explain in detail the procedure to manually compile this? I am on
64bit linux and I can't get this working. I'm very new to this so I'm having a lot
of trouble figuring it out.

@viblo
Copy link
Owner Author

viblo commented Oct 4, 2013

From vb%viblo...@gtempaccount.com on September 14, 2009 13:28:00

  1. download the source release of pymunk :)
  2. unpack and go do its directory.
    2.5 You might need to manually remove libchipmunk.so before the next step. (as it
    needs to be replaced by the 64 bit version) However, I don't know for sure as I
    havent tried myself. The file is located in the pymunk subdirectory.
  3. run

    python setup.py build_chipmunk
    this command will compile chipmunk for you.

  4. run

    python setup.py install
    to install pymunk. (If you don't want to install it you can just as easily place the
    pymunk directory where your other code is)

  5. done!

Please let me know if this helped you and I'll add this answer to the FAQ/readme.

@viblo
Copy link
Owner Author

viblo commented Oct 4, 2013

From theh...@gmail.com on September 15, 2009 18:14:06

This worked perfect, thank you.

@viblo
Copy link
Owner Author

viblo commented Oct 4, 2013

From vb%viblo...@gtempaccount.com on January 06, 2010 16:57:50

I have added a 64bit chipmunk lib file to the latest trunk, and also some code to
detect if python is running in 32 or 64bit (and if 64 then load ligchipmunk64.so
instead). Hopefully it will run as easy on 64bit linux as on 32bit now :)

Status: Fixed

@viblo
Copy link
Owner Author

viblo commented Oct 4, 2013

From henri.tu...@gmail.com on January 07, 2010 01:15:36

The 64bit chipmunk lib in the latest trunk seem to be working correctly on a 64bit
linux now. Nice!

@viblo viblo closed this as completed Oct 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant