-
Notifications
You must be signed in to change notification settings - Fork 626
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
MINGW : WidenFilename() not declared #1446
Comments
cary-ilm
added a commit
to cary-ilm/openexr
that referenced
this issue
Jun 15, 2023
Fixes AcademySoftwareFoundation#1446 Signed-off-by: Cary Phillips <cary@ilm.com>
Thanks for the catch and the patch, can you confirm that #1454 fixes it? |
Hi Cary,
It seems to fix that issue, but the branch now fails to build for a
different reason:
```
git clone -b WidenFilename-fix https://github.com/cary-ilm/openexr.git
# ...
cd openexr
export CPPFLAGS="-D__USE_MINGW_ANSI_STDIO=1"
export LDFLAGS="-static-libgcc -static-libstdc++ -Wl,-Bstatic -lpthread
-Wl,-Bdynamic"
mkdir -p build
cd build
cmake -DBUILD_SHARED_LIBS=OFF
-DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-mingw.cmake \
-DCMAKE_INSTALL_PREFIX=$HOME/win/posix/x86_64
-DCMAKE_CXX_FLAGS=-I$HOME/win/posix/x86_64/include \
-DZLIB_INCLUDE_DIR=$HOME/win/posix/x86_64/include
-DZLIB_LIBRARY=$HOME/win/posix/x86_64/lib/libz.a ..
# ...
make -k
# ...
make -k
[ 2%] Built target Iex
[ 5%] Built target IlmThread
[ 5%] Building C object
src/lib/OpenEXRCore/CMakeFiles/OpenEXRCore.dir/compression.c.obj
/home/claude/exr/openexr/src/lib/OpenEXRCore/compression.c:11:10: fatal
error: libdeflate.h: No such file or directory
11 | #include <libdeflate.h>
| ^~~~~~~~~~~~~~
compilation terminated.
make[2]: ***
[src/lib/OpenEXRCore/CMakeFiles/OpenEXRCore.dir/build.make:467:
src/lib/OpenEXRCore/CMakeFiles/OpenEXRCore.dir/compression.c.obj] Error 1
make[2]: Target 'src/lib/OpenEXRCore/CMakeFiles/OpenEXRCore.dir/build'
not remade because of errors.
make[1]: *** [CMakeFiles/Makefile2:1376:
src/lib/OpenEXRCore/CMakeFiles/OpenEXRCore.dir/all] Error 2
[ 7%] Built target IexTest
make[1]: Target 'all' not remade because of errors.
make: *** [Makefile:146: all] Error 2
make: Target 'default_target' not remade because of errors.
```
I see that ef4b710 switched from zlib
to libdeflate.
I'll report back once I've tried again with libdeflate installed.
cmake warned that my ZLIB defines were ignored, but did not mention
libdeflate.
My system is Debian Bookworm, cross-compiling for Windows.
Claude
…On 15/06/2023 02:15, Cary Phillips wrote:
Thanks for the catch and the patch, can you confirm that #1454
<#1454> fixes it?
—
Reply to this email directly, view it on GitHub
<#1446 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACR3ILYJZIFPWRGCZE3IHNLXLJOZXANCNFSM6AAAAAAY5W5A6I>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Having installed libdeflate, the only errors with `make -k` are now
related to `__cpuid`, which see:
#1445
|
cary-ilm
added a commit
that referenced
this issue
Jun 18, 2023
Fixes #1446 Signed-off-by: Cary Phillips <cary@ilm.com>
cary-ilm
added a commit
that referenced
this issue
Jun 23, 2023
Fixes #1446 Signed-off-by: Cary Phillips <cary@ilm.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When cross-compiling for Windows the release tarball of OpenEXR-3.1.8 with
x86_64-w64-mingw32-g++ (GCC) 12-posix
from Debian Bookworm, the build fails because a declaration ofWidenFilename()
is not available. This small patch seems to fix it:The text was updated successfully, but these errors were encountered: