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

Compile fail with MinGW-w64 on Windows #95

Closed
ghost opened this issue Apr 19, 2014 · 0 comments
Closed

Compile fail with MinGW-w64 on Windows #95

ghost opened this issue Apr 19, 2014 · 0 comments
Labels
Build A problem with building or installing the library.

Comments

@ghost
Copy link

ghost commented Apr 19, 2014

I got this error:

IlmImf/ImfSystemSpecific.h: In function 'void* Imf_2_1::EXRAllocAligned(size_t,
size_t)':
IlmImf/ImfSystemSpecific.h:64:41: error: 'posix_memalign' was not declared in th
is scope
     posix_memalign(&ptr, alignment, size);
                                         ^

There's #ifdef __GNUC__ in code which enables that part, it should be #if defined(__GNUC__) && !defined(__MINGW32__)

@ghost ghost changed the title Compile fail using MinGW-w64 on Windows Compile fail with MinGW-w64 on Windows Apr 19, 2014
@ehanway-ilm ehanway-ilm modified the milestone: v2.2.1 May 2, 2016
@cary-ilm cary-ilm modified the milestones: v2.2.1, Needs Discussion Jun 28, 2019
kdt3rd added a commit to kdt3rd/openexr that referenced this issue Jul 17, 2019
The tree now compiles using mingw to compile, tested by cross compiling
for windows from linux

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
@kdt3rd kdt3rd closed this as completed in 2cf0560 Jul 17, 2019
DominicJacksonBFX pushed a commit to boris-fx/mocha-openexr that referenced this issue Jun 22, 2022
The tree now compiles using mingw to compile, tested by cross compiling
for windows from linux

Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build A problem with building or installing the library.
Projects
None yet
Development

No branches or pull requests

3 participants