Author Topic: Build Ogre 1.9  (Read 498 times)

Suryavarman

  • Administrator
  • Newbie
  • *****
  • Posts: 6
    • Gdeps
Build Ogre 1.9
« on: August 25, 2017, 09:50:08 AM »
[IN PROGRESS]

Unresolved trouble with Mingw:

Mingw - uuidof
Code: [Select]
WIN32/OgreMinGWSupport.h:48:29:
    error:
        'IID_totype' was not declared in this scope
#ifndef __uuidof(Object)
#   define __uuidof(Object) IID_##Object
#endif

Mingw 32bits building:

TDM : http://tdm-gcc.tdragon.net/
TDM 4.8: CMake cannot generate the project because libcloob-isl-3.dll is missing. ( I have try to reinstall the compiler doesn't work)
TDM 5.1 (The last version) : 'IID_totype' was not declared

Official: http://mingw.org/
Mingw 5.3 'IID_totype' was not declared
Mingw 6.3.0.1 CMake cannot generate the project because libmingwex-0.dll is missing.

Mingw w64 : http://mingw-w64.org:
version(gcc?):7.1.0 architecture: x86_x64 thread:win32: … mingw installation failed cannot download the components.

nuwen: https://nuwen.net/mingw.html (The most recent version of mingw.)
version(mingw?) 15.1 : gcc 7.2.0 architecture: x86_x64 :
cc1plus.exe: error: CPU you selected does not support x86-64 instruction set
https://stackoverflow.com/questions/12951385/cpu-you-selected-does-not-support-x86-64-instruction-set


Notes:

mingw_nuwen\x86_64-w64-mingw32\include\_mingw.h
 
Code: [Select]
/* Macros for __uuidof template-based emulation */
#if defined(__cplusplus) && (USE___UUIDOF == 0)

#define __CRT_UUID_DECL(type,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8)           \
    extern "C++" {                                                      \
    template<> inline const GUID &__mingw_uuidof<type>() {              \
        static const IID __uuid_inst = {l,w1,w2, {b1,b2,b3,b4,b5,b6,b7,b8}}; \
        return __uuid_inst;                                             \
    }                                                                   \
    template<> inline const GUID &__mingw_uuidof<type*>() {             \
        return __mingw_uuidof<type>();                                  \
    }                                                                   \
    }

#define __uuidof(type) __mingw_uuidof<__typeof(type)>()

#else

#define __CRT_UUID_DECL(type,l,w1,w2,b1,b2,b3,b4,b5,b6,b7,b8)

#endif

I have the same problem with freeimage and wingw_nuwen:
Code: [Select]
x:\mingw_nuwen\x86_64-w64-mingw32\include\windows.h:9:0,
                 from [...]freeimage-cmake\freeimage\Source\DeprecationManager\DeprecationMgr.cpp:27:
x:\mingw_nuwen\x86_64-w64-mingw32\include\unknwnbase.h: In member function 'HRESULT IUnknown::QueryInterface(Q**)':
x:\mingw_nuwen\x86_64-w64-mingw32\include\unknwnbase.h:74:29: error: '__mingw_uuidof' was not declared in this scope
       return QueryInterface(__uuidof(Q), (void **)pp);



« Last Edit: September 07, 2017, 02:44:17 PM by Suryavarman »