MINGW-packages
MINGW-packages copied to clipboard
freeimage patch question
Compiling original FreeImage with mingw-w64 i686-7.2.0-release-posix-dwarf-rt_v5-rev1 and without MSYS2 says
[ 0%] Building CXX object CMakeFiles/FreeImage.dir/Source/FreeImage/FreeImage.cpp.obj
In file included from C:/mingws/i686-7.2.0-release-posix-dwarf-rt_v5-rev1/mingw32/i686-w64-mingw32/include/windows.h:9:0
,
from C:\LuaGL\gitsources\FreeImageORIG\Source\FreeImage\FreeImage.cpp:28:
C:/mingws/i686-7.2.0-release-posix-dwarf-rt_v5-rev1/mingw32/i686-w64-mingw32/include/unknwnbase.h: In member function 'H
RESULT IUnknown::QueryInterface(Q**)':
C:/mingws/i686-7.2.0-release-posix-dwarf-rt_v5-rev1/mingw32/i686-w64-mingw32/include/unknwnbase.h:74:29: error: '__mingw
_uuidof' was not declared in this scope
return QueryInterface(__uuidof(Q), (void **)pp);
Reading the patches you have for FreeImage I cant understand which part is relevant for previous described error. '__mingw_uuidof' was not declared in this scope
Thanks for you attention victor bombi
@sonoro1234 probably you have old toolchain where uuidof not yet provided
i686-7.2.0-release-posix-dwarf-rt_v5-rev1
is an old toolchain?
same happens with
i686-8.1.0-release-posix-dwarf-rt_v6-rev0
@sonoro1234 this is not MSYS2 toolchains so I can’t tell you
Thanks I am asking now in https://sourceforge.net/p/mingw-w64/support-requests/158/
FWIW, this is caused by jxrlib shipping a guiddef.h which conflicts with the one shipped my mingw-headers.
There is no guiddef.h in jxrlib package. See file list here https://packages.msys2.org/package/mingw-w64-x86_64-jxrlib?repo=mingw64