msys2 / MINGW-packages

Package scripts for MinGW-w64 targets to build under MSYS2.
https://packages.msys2.org
BSD 3-Clause "New" or "Revised" License
2.28k stars 1.22k forks source link

freeimage patch question #6514

Open sonoro1234 opened 4 years ago

sonoro1234 commented 4 years ago

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

Alexpux commented 4 years ago

@sonoro1234 probably you have old toolchain where uuidof not yet provided

sonoro1234 commented 4 years ago

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

Alexpux commented 4 years ago

@sonoro1234 this is not MSYS2 toolchains so I can’t tell you

sonoro1234 commented 4 years ago

Thanks I am asking now in https://sourceforge.net/p/mingw-w64/support-requests/158/

manisandro commented 2 years ago

FWIW, this is caused by jxrlib shipping a guiddef.h which conflicts with the one shipped my mingw-headers.

Biswa96 commented 2 years ago

There is no guiddef.h in jxrlib package. See file list here https://packages.msys2.org/package/mingw-w64-x86_64-jxrlib?repo=mingw64