I build wxWidgets and/or my application using:
Yesterday I fetched the wxWidgets repository master branch and I faced a build error when compiling the wxWidgets static library :
In file included from ..\..\src\jpeg/jpeglib.h:25, from ../../src/tiff/libtiff/tif_jpeg.c:84: ..\..\src\jpeg/jconfig.h:9:10: fatal error: wx/setup.h: No such file or directory 9 | #include "wx/setup.h" | ^~~~~~~~~~~~ compilation terminated.
Of course I follow the required procedure, i.e. i clean library first using make, then i create the setup.h file and run the library compilation after.
It seems like the problem appeared due to the recent commit f1df26641a1d3621639ff25df5f787854a4e6628 where the macro _WIN32 was replaced by _MSC_VER and therefore wx/setup.h was included in tif_jpeg.c file. But it didn't work because the wx/setup.h file path is not included in the WXTIFF_CFLAGS variable in the makefile.gcc file.
WXTIFF_CFLAGS = -I..\..\src\zlib -I..\..\src\jpeg -I..\..\src\tiff\libtiff \ $(__DEBUGINFO) $(__OPTIMIZEFLAG) $(__THREADSFLAG) -DNDEBUG $(CPPFLAGS) \ $(CFLAGS)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Thanks for reporting. I wrongly updated the libjpeg submodule. There was a discrepancy between _WIN32 at the opening #if and a _MSC_VER comment at the closing #endif of jconfig.h, so I naively thought both could be _MSC_VER. I'll prepare a fix.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@MaartenBent Can I push jpeg submodule to 88cf215 (Restore _WIN32 check in jconfig.h, 2026-02-17) to fix this?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
I created #26199 for this, but it needs the zlib PR to be merged first.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()