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

MINGW : WidenFilename() not declared #1446

Closed
claudeha opened this issue Jun 7, 2023 · 3 comments · Fixed by #1454
Closed

MINGW : WidenFilename() not declared #1446

claudeha opened this issue Jun 7, 2023 · 3 comments · Fixed by #1454

Comments

@claudeha
Copy link

claudeha commented Jun 7, 2023

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 of WidenFilename() is not available. This small patch seems to fix it:

diff --git a/openexr-3.1.8.old/src/test/OpenEXRTest/TestUtilFStream.h b/openexr-3.1.8.new/src/test/OpenEXRTest/TestUtilFStream.h
index 430bc2e..4d11977 100644
--- a/openexr-3.1.8.old/src/test/OpenEXRTest/TestUtilFStream.h
+++ b/openexr-3.1.8.new/src/test/OpenEXRTest/TestUtilFStream.h
@@ -104,7 +104,7 @@ OpenStreamWithUTF8Name (
     StreamType& is, const char* filename, std::ios_base::openmode mode)
 {
 #ifdef _WIN32
-    std::wstring wfn = WidenFilename (filename);
+    std::wstring wfn = OPENEXR_IMF_INTERNAL_NAMESPACE::WidenFilename (filename);
 # ifdef USE_WIDEN_FILEBUF
     using CharT   = typename StreamType::char_type;
     using TraitsT = typename StreamType::traits_type;
cary-ilm added a commit to cary-ilm/openexr that referenced this issue Jun 15, 2023
@cary-ilm
Copy link
Member

Thanks for the catch and the patch, can you confirm that #1454 fixes it?

@claudeha
Copy link
Author

claudeha commented Jun 17, 2023 via email

@claudeha
Copy link
Author

claudeha commented Jun 17, 2023 via email

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
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants