Getting freeimage and wx to build together
BlitzMax Forums/Brucey's Modules/Getting freeimage and wx to build together
| ||
Has anyone managed to to get wxwidgets and freeimage to compile successfully with the latest github versions, and if so how? :) I have wx compiling with bmx-ng and TDM 5.1 64, which I believe I'm limited to using due to the fact the static libraries of wx were built with that. Unfortunately freeimage fails to compile with a whole stream of errors, eg: I did get freeimage to compile with either 4.7.1/4.8.1, (maybe even 5.1 32 I can't remember now), but then of course wx fails to compile. I could try recompiling the static libs of wx I guess but it sounds fiddly... Any help much appreciated :) |
| ||
I get the same with freeimage using NG and OS Bmx and tdm 5.1.0 64. Here's an extract.Compiling:FreeImage.cpp In file included from C:/TDM-GCC-64/x86_64-w64-mingw32/include/windows.h:9:0, from C:/blitzmax-os/mod/bah.mod/freeimage.mod/src/FreeImage/FreeImage.cpp:26: C:/TDM-GCC-64/x86_64-w64-mingw32/include/unknwnbase.h: In member function 'HRESULT IUnknown::QueryInterface(Q**)': C:/TDM-GCC-64/x86_64-w64-mingw32/include/unknwnbase.h:74:29: error: '__mingw_uuidof' was not declared in this scope return QueryInterface(__uuidof(Q), (void **)pp); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/unknwnbase.h:74:29: error: expected primary-expression before '__typeof' return QueryInterface(__uuidof(Q), (void **)pp); ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/unknwnbase.h: At global scope: C:/TDM-GCC-64/x86_64-w64-mingw32/include/unknwnbase.h:79:1: error: expected initializer before '<' token __CRT_UUID_DECL(IUnknown, 0x00000000, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46) ^ C:/TDM-GCC-64/x86_64-w64-mingw32/include/unknwnbase.h:79:1: error: expected initializer before '<' token __CRT_UUID_DECL(IUnknown, 0x00000000, 0x0000, 0x0000, 0xc0,0x00, 0x00,0x00,0x00,0x00,0x00,0x46) |
| ||
I've updated bah.freeimage. It should build now. (tested NG x86 and x64 with gcc 5.1) |
| ||
Thanks Brucey! I'll give this a go this a go and let you know how I get on. |