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

Box2D dependency issue on build #709

Open
aborthonormal opened this issue Oct 3, 2016 · 2 comments
Open

Box2D dependency issue on build #709

aborthonormal opened this issue Oct 3, 2016 · 2 comments

Comments

@aborthonormal
Copy link

I am running into an issue when attempting to compile Polycode from source. Specifically, the script for downloading and installing the Box2D dependency seems to use an invalid URL.

Here is a portion of the build output:


Scanning dependencies of target box2d
[ 9%] Creating directories for 'box2d'
[ 10%] Performing download step (download, verify and extract) for 'box2d'
-- downloading...
src='http://box2d.googlecode.com/files/Box2D_v2.1.2.zip'
dst='/home/andrew/Downloads/Polycode-master/Dependencies/Downloads/Box2D_v2.1.2.zip'
timeout='none'
CMake Error at box2d-stamp/download-box2d.cmake:9 (file):
file DOWNLOAD HASH mismatch

for file: [/home/andrew/Downloads/Polycode-master/Dependencies/Downloads/Box2D_v2.1.2.zip]
  expected hash: [59d142cd8d4d73e8832c7b67591f590c]
    actual hash: [d41d8cd98f00b204e9800998ecf8427e]

make[2]: *** [box2d/src/box2d-stamp/box2d-download] Error 1
make[1]: *** [CMakeFiles/box2d.dir/all] Error 2
make: *** [all] Error 2


I am running 64-bit Ubuntu:
4.2.0-27-generic #32~14.04.1-Ubuntu SMP Fri Jan 22 15:32:27 UTC 2016 i686 i686 i686 GNU/Linux

I've attached the full output of the build script "BuildLinux.sh" to this post. I also attempted building the dependencies separately using cmake, as described in the README.md file. I ran into the same issue. Perhaps I just need to update the URL and MD5 hash for Box2D 2.1.2 in the build script? I'm also curious to see if anyone else has had this issue recently.
build_log.txt

@aborthonormal
Copy link
Author

aborthonormal commented Oct 4, 2016

Fixed! (sort of)

I found a valid URL for the 2.1.2 version of Box2D: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/box2d/Box2D_v2.1.2.zip

Since the BuildLinux.sh script failed at the Box2D download verification, I just had to copy the zip file to the "Dependencies/Downloads" folder. I confirmed the MD5 hash is the same.

A better fix would be for the files in "Dependencies/Build/Debug/box2d/src/box2d-stamp" be updated to use the valid URL. I'm a novice at Git, so I don't want to mess anything up by pushing a change to the Polycode repo. Perhaps someone with more experience could make this update?

@Whitecl4ws
Copy link

You have to open the Dependencies/Build/Debug/src/box2d-stamp/download-box2d.cmake
and replace every http://box2d.googlecode.com/files/Box2D_v2.1.2.zip by https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/box2d/Box2D_v2.1.2.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants