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

Compilation fails without platform-supplied aligned malloc #642

Closed
smuehlst opened this issue Oct 20, 2015 · 4 comments
Closed

Compilation fails without platform-supplied aligned malloc #642

smuehlst opened this issue Oct 20, 2015 · 4 comments
Labels
Milestone

Comments

@smuehlst
Copy link
Contributor

When none of none of posix_memalign(), memalign() and _aligned_malloc() is available, compilation of the current HEAD revision 5799672 fails.

Discussion is on the mailing list: Building OpenJPEG without a platform-supplied aligned memory allocation function.

@mayeut mayeut added the bug label Oct 20, 2015
@mayeut mayeut added this to the OPJ v2.1.1 milestone Oct 20, 2015
mayeut added a commit that referenced this issue Oct 20, 2015
@mayeut
Copy link
Collaborator

mayeut commented Oct 20, 2015

@smuehlst, I pushed a version that shall be ok. Tested on my side by forcing this definitions to be used.
Please close the issue if everything works on your side.

@smuehlst
Copy link
Contributor Author

@mayeut: Thanks for the comments and for the update to my implementation. It works fine for me. The only issue is that there's a compiler warning about pointer arithmetic with void * pointers.

I created pull request #644 with a fix for the warning.

@mayeut
Copy link
Collaborator

mayeut commented Oct 21, 2015

@smuehlst, I just merged your PR. Should be ok without warnings now.

@smuehlst
Copy link
Contributor Author

@mayeut: Thanks, all is good now, closing this issue.

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

No branches or pull requests

2 participants