MINGW-packages icon indicating copy to clipboard operation
MINGW-packages copied to clipboard

freeimage patch question

Open sonoro1234 opened this issue 4 years ago • 6 comments

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 avatar May 23 '20 14:05 sonoro1234

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

Alexpux avatar Jun 01 '20 05:06 Alexpux

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 avatar Jun 01 '20 07:06 sonoro1234

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

Alexpux avatar Jun 01 '20 07:06 Alexpux

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

sonoro1234 avatar Jun 01 '20 11:06 sonoro1234

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

manisandro avatar Aug 05 '22 21:08 manisandro

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

Biswa96 avatar Aug 06 '22 02:08 Biswa96