[Solved] Building MyGui 3.2 2errors


12-07-2013 13:17:56

Hi there,

I'm trying to build MyGUI for Ogre (cause I keep getting headaches to build cegui).

And I got 2 errors while building.

First of all, my config :
I'm building under Windows 7 32bits,
With MinGW.

CMake tells me in black :

-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
+ Doxygen: Tool for building API documentation <http://doxygen.org>;

Unknown svn revision. It won't be included into build.
Configuring done
Generating done

Then, when I run my compiler I got this :

[ 34%] Building CXX object Common/CMakeFiles/Common.dir/Input/Win32/InputManager
C:\LibsCod\MyGUI_3.2.0\Common\Input\Win32\InputManager.cpp: In static member fun
ction 'static LRESULT input::InputManager::windowProc(HWND, UINT, WPARAM, LPARAM
C:\LibsCod\MyGUI_3.2.0\Common\Input\Win32\InputManager.cpp:184:92: erreur: '_cou
ntof' was not declared in this scope
Common\CMakeFiles\Common.dir\build.make:77: recipe for target 'Common/CMakeFiles
/Common.dir/Input/Win32/InputManager.cpp.obj' failed
mingw32-make[2]: *** [Common/CMakeFiles/Common.dir/Input/Win32/InputManager.cpp.
obj] Error 1
CMakeFiles\Makefile2:190: recipe for target 'Common/CMakeFiles/Common.dir/all' f
mingw32-make[1]: *** [Common/CMakeFiles/Common.dir/all] Error 2
Makefile:112: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

Is there anyway to fix it ?


12-07-2013 14:27:22

It was fixed, but currently available only in sources from subversion.
You should replace _countof(wstr) with sizeof(wstr)/sizeof(wstr[0]).


12-07-2013 14:51:31

Thank you, I gonna finally put a word on my screen :mrgreen: Greatest satisfaction ever.