alaingalvan/CrossWindow

fails to build on mac os

mgood7123 opened this issue · 2 comments

Matthews-MacBook-Pro:example smallville7123$ rm -rf build/
Matthews-MacBook-Pro:example smallville7123$ cmake -B build
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The C compiler identification is AppleClang 12.0.0.12000032
-- The CXX compiler identification is AppleClang 12.0.0.12000032
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building CrossWindow for Cocoa
Creating CrossWindow executable:
CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.21)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
-- Generating done
-- Build files have been written to: /Users/smallville7123/git/CrossWindow/example/build
Matthews-MacBook-Pro:example smallville7123$ cmake --build build
[ 11%] Building CXX object CrossWindow/CMakeFiles/CrossWindow.dir/src/CrossWindow/Cocoa/CocoaEventQueue.mm.o
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Cocoa/CocoaEventQueue.mm:17:63: error:
      use of undeclared identifier 'window'
  ...xwin::Event curEvent = xwin::Event(xwin::EventType::None, window);
                                                               ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Cocoa/CocoaEventQueue.mm:76:37: error:
      use of undeclared identifier 'modifiers'
                xwin::ModifierState(modifiers & MK_CONTROL, modifiers & MK_ALT,
                                    ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Cocoa/CocoaEventQueue.mm:76:49: error:
      use of undeclared identifier 'MK_CONTROL'
                xwin::ModifierState(modifiers & MK_CONTROL, modifiers & MK_ALT,
                                                ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Cocoa/CocoaEventQueue.mm:76:61: error:
      use of undeclared identifier 'modifiers'
                xwin::ModifierState(modifiers & MK_CONTROL, modifiers & MK_ALT,
                                                            ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Cocoa/CocoaEventQueue.mm:76:73: error:
      use of undeclared identifier 'MK_ALT'
                xwin::ModifierState(modifiers & MK_CONTROL, modifiers & MK_ALT,
                                                                        ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Cocoa/CocoaEventQueue.mm:77:37: error:
      use of undeclared identifier 'modifiers'
                                    modifiers & MK_SHIFT, modifiers & 0)),
                                    ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Cocoa/CocoaEventQueue.mm:77:49: error:
      use of undeclared identifier 'MK_SHIFT'
                                    modifiers & MK_SHIFT, modifiers & 0)),
                                                ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Cocoa/CocoaEventQueue.mm:77:59: error:
      use of undeclared identifier 'modifiers'
                                    modifiers & MK_SHIFT, modifiers & 0)),
                                                          ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Cocoa/CocoaEventQueue.mm:78:13: error:
      use of undeclared identifier 'window'
            window);
            ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Cocoa/CocoaEventQueue.mm:84:37: error:
      use of undeclared identifier 'modifiers'
                xwin::ModifierState(modifiers & MK_CONTROL, modifiers & MK_ALT,
                                    ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Cocoa/CocoaEventQueue.mm:84:49: error:
      use of undeclared identifier 'MK_CONTROL'
                xwin::ModifierState(modifiers & MK_CONTROL, modifiers & MK_ALT,
                                                ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Cocoa/CocoaEventQueue.mm:84:61: error:
      use of undeclared identifier 'modifiers'
                xwin::ModifierState(modifiers & MK_CONTROL, modifiers & MK_ALT,
                                                            ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Cocoa/CocoaEventQueue.mm:84:73: error:
      use of undeclared identifier 'MK_ALT'
                xwin::ModifierState(modifiers & MK_CONTROL, modifiers & MK_ALT,
                                                                        ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Cocoa/CocoaEventQueue.mm:85:37: error:
      use of undeclared identifier 'modifiers'
                                    modifiers & MK_SHIFT, modifiers & 0)),
                                    ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Cocoa/CocoaEventQueue.mm:85:49: error:
      use of undeclared identifier 'MK_SHIFT'
                                    modifiers & MK_SHIFT, modifiers & 0)),
                                                ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Cocoa/CocoaEventQueue.mm:85:59: error:
      use of undeclared identifier 'modifiers'
                                    modifiers & MK_SHIFT, modifiers & 0)),
                                                          ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Cocoa/CocoaEventQueue.mm:86:13: error:
      use of undeclared identifier 'window'
            window);
            ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Cocoa/CocoaEventQueue.mm:92:37: error:
      use of undeclared identifier 'modifiers'
                xwin::ModifierState(modifiers & MK_CONTROL, modifiers & MK_ALT,
                                    ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Cocoa/CocoaEventQueue.mm:92:49: error:
      use of undeclared identifier 'MK_CONTROL'
                xwin::ModifierState(modifiers & MK_CONTROL, modifiers & MK_ALT,
                                                ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [CrossWindow/CMakeFiles/CrossWindow.dir/src/CrossWindow/Cocoa/CocoaEventQueue.mm.o] Error 1
make[1]: *** [CrossWindow/CMakeFiles/CrossWindow.dir/all] Error 2
make: *** [all] Error 2
Matthews-MacBook-Pro:example smallville7123$

Thanks for letting me know, this should be fixed in b72426a .

unfortunately not :(

Matthews-MacBook-Pro:example smallville7123$ cmake --build build
[ 11%] Building CXX object CrossWindow/CMakeFiles/CrossWindow.dir/src/CrossWindow/Cocoa/CocoaEventQueue.mm.o
[ 22%] Building CXX object CrossWindow/CMakeFiles/CrossWindow.dir/src/CrossWindow/Cocoa/CocoaWindow.mm.o
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Cocoa/CocoaWindow.mm:189:13: warning:
      'CAOpenGLLayer' is deprecated: first deprecated in macOS 10.14 - OpenGL is
      deprecated [-Wdeprecated-declarations]
                layer = [[CAOpenGLLayer alloc] init];
                          ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAOpenGLLayer.h:17:12: note:
      'CAOpenGLLayer' has been explicitly marked deprecated here
@interface CAOpenGLLayer : CALayer
           ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Cocoa/CocoaWindow.mm:190:30: warning:
      'CAOpenGLLayer' is deprecated: first deprecated in macOS 10.14 - OpenGL is
      deprecated [-Wdeprecated-declarations]
                [(XWinView*)view setLayer:(CAOpenGLLayer*)layer];
                                           ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAOpenGLLayer.h:17:12: note:
      'CAOpenGLLayer' has been explicitly marked deprecated here
@interface CAOpenGLLayer : CALayer
           ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Cocoa/CocoaWindow.mm:191:3: warning:
      'CAOpenGLLayer' is deprecated: first deprecated in macOS 10.14 - OpenGL is
      deprecated [-Wdeprecated-declarations]
                CAOpenGLLayer* l = ((CAOpenGLLayer*)layer);
                ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAOpenGLLayer.h:17:12: note:
      'CAOpenGLLayer' has been explicitly marked deprecated here
@interface CAOpenGLLayer : CALayer
           ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Cocoa/CocoaWindow.mm:191:24: warning:
      'CAOpenGLLayer' is deprecated: first deprecated in macOS 10.14 - OpenGL is
      deprecated [-Wdeprecated-declarations]
                CAOpenGLLayer* l = ((CAOpenGLLayer*)layer);
                                     ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CAOpenGLLayer.h:17:12: note:
      'CAOpenGLLayer' has been explicitly marked deprecated here
@interface CAOpenGLLayer : CALayer
           ^
4 warnings generated.
[ 33%] Building CXX object CrossWindow/CMakeFiles/CrossWindow.dir/src/CrossWindow/Common/Dialogs.cpp.o
[ 44%] Building CXX object CrossWindow/CMakeFiles/CrossWindow.dir/src/CrossWindow/Common/Event.cpp.o
[ 55%] Building CXX object CrossWindow/CMakeFiles/CrossWindow.dir/src/CrossWindow/Common/Init.cpp.o
[ 66%] Linking CXX static library libCrossWindow.a
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libCrossWindow.a(Dialogs.cpp.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libCrossWindow.a(Dialogs.cpp.o) has no symbols
[ 66%] Built target CrossWindow
[ 77%] Building CXX object CMakeFiles/app.dir/Users/smallville7123/git/CrossWindow/src/CrossWindow/Main/CocoaMain.o
[ 88%] Building CXX object CMakeFiles/app.dir/main.o
In file included from /Users/smallville7123/git/CrossWindow/example/main.cpp:1:
In file included from /Users/smallville7123/git/CrossWindow/src/CrossWindow/CrossWindow.h:9:
In file included from /Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Window.h:8:
In file included from /Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/CocoaWindow.h:3:
In file included from /Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/EventQueue.h:5:
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:15:6: warning:
      scoped enumerations are a C++11 extension [-Wc++11-extensions]
enum class EventType : size_t
     ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:78:35: warning:
      use of enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
    static const EventType type = EventType::Focus;
                                  ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:97:35: warning:
      use of enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
    static const EventType type = EventType::Resize;
                                  ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:109:35: warning:
      use of enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
    static const EventType type = EventType::DPI;
                                  ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:147:6: warning:
      scoped enumerations are a C++11 extension [-Wc++11-extensions]
enum class Key : size_t
     ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:261:56: warning:
      use of enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
typedef const charElm KeyToCharMap[static_cast<size_t>(Key::KeysMax)];
                                                       ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:262:46: warning:
      use of enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
typedef Key CharToKeyMap[static_cast<size_t>(Key::KeysMax)];
                                             ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:283:35: warning:
      use of enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
    static const EventType type = EventType::Keyboard;
                                  ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:293:35: warning:
      use of enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
    static const EventType type = EventType::MouseRaw;
                                  ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:321:35: warning:
      use of enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
    static const EventType type = EventType::MouseMove;
                                  ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:345:35: warning:
      use of enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
    static const EventType type = EventType::MouseInput;
                                  ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:358:35: warning:
      use of enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
    static const EventType type = EventType::MouseWheel;
                                  ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:396:35: warning:
      use of enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
    static const EventType type = EventType::Touch;
                                  ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:402:6: warning:
      scoped enumerations are a C++11 extension [-Wc++11-extensions]
enum class GamepadButton : size_t
     ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:424:6: warning:
      scoped enumerations are a C++11 extension [-Wc++11-extensions]
enum class AnalogInput : size_t
     ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:443:43: warning:
      use of enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
    AnalogToStringMap[static_cast<size_t>(AnalogInput::AnalogInputsMax)];
                                          ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:476:35: warning:
      use of enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
    static const EventType type = EventType::Gamepad;
                                  ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:484:15: error:
      union member 'focus' has a non-trivial default constructor
    FocusData focus;
              ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:71:8: note:
      because type 'xwin::FocusData' has no default constructor
struct FocusData
       ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:76:5: note:
      implicit default constructor suppressed by user-declared constructor
    FocusData(bool focused);
    ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:485:16: error:
      union member 'resize' has a non-trivial default constructor
    ResizeData resize;
               ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:84:8: note:
      because type 'xwin::ResizeData' has no default constructor
struct ResizeData
       ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:95:5: note:
      implicit default constructor suppressed by user-declared constructor
    ResizeData(unsigned width, unsigned height, bool resizing);
    ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:486:13: error:
      union member 'dpi' has a non-trivial default constructor
    DPIData dpi;
            ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:103:8: note:
      because type 'xwin::DPIData' has no default constructor
struct DPIData
       ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:107:5: note:
      implicit default constructor suppressed by user-declared constructor
    DPIData(float scale);
    ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:487:18: error:
      union member 'keyboard' has a non-trivial default constructor
    KeyboardData keyboard;
                 ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:277:8: note:
      because type 'xwin::KeyboardData' has no default constructor
struct KeyboardData
       ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:285:5: note:
      implicit default constructor suppressed by user-declared constructor
    KeyboardData(Key key, ButtonState state, ModifierState modifiers);
    ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:488:19: error:
      union member 'mouseMove' has a non-trivial default constructor
    MouseMoveData mouseMove;
                  ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:301:8: note:
      because type 'xwin::MouseMoveData' has no default constructor
struct MouseMoveData
       ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:323:5: note:
      implicit default constructor suppressed by user-declared constructor
    MouseMoveData(unsigned x, unsigned y, unsigned screenx, unsigned screeny,
    ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:489:20: error:
      union member 'mouseInput' has a non-trivial default constructor
    MouseInputData mouseInput;
                   ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:340:8: note:
      because type 'xwin::MouseInputData' has no default constructor
struct MouseInputData
       ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:347:5: note:
      implicit default constructor suppressed by user-declared constructor
    MouseInputData(MouseInput button, ButtonState state,
    ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:490:20: error:
      union member 'mouseWheel' has a non-trivial default constructor
    MouseWheelData mouseWheel;
                   ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:354:8: note:
      because type 'xwin::MouseWheelData' has no default constructor
struct MouseWheelData
       ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:360:5: note:
      implicit default constructor suppressed by user-declared constructor
    MouseWheelData(double delta, ModifierState modifiers);
    ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:493:18: error:
      union member 'mouseRaw' has a non-trivial default constructor
    MouseRawData mouseRaw;
                 ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:288:8: note:
      because type 'xwin::MouseRawData' has no default constructor
struct MouseRawData
       ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:295:5: note:
      implicit default constructor suppressed by user-declared constructor
    MouseRawData(int deltax, int deltay);
    ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Event.h:512:28: warning:
      use of enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
    Event(EventType type = EventType::None, Window* window = nullptr);
                           ^
In file included from /Users/smallville7123/git/CrossWindow/example/main.cpp:1:
In file included from /Users/smallville7123/git/CrossWindow/src/CrossWindow/CrossWindow.h:9:
In file included from /Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Window.h:8:
In file included from /Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/CocoaWindow.h:5:
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:15:12: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
    long x = 0;
           ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:17:12: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
    long y = 0;
           ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:19:20: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
    unsigned width = 1920;
                   ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:21:21: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
    unsigned height = 1080;
                    ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:23:23: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
    unsigned minWidth = 0;
                      ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:25:24: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
    unsigned minHeight = 0;
                       ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:27:23: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
    unsigned maxWidth = 0xFFFF;
                      ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:29:24: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
    unsigned maxHeight = 0xFFFF;
                       ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:34:19: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
    bool centered = true;
                  ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:36:20: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
    bool resizable = true;
                   ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:38:18: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
    bool movable = true;
                 ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:40:16: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
        bool closable = true;
                      ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:42:22: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
    bool minimizable = true;
                     ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:44:22: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
    bool maximizable = true;
                     ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:46:24: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
    bool canFullscreen = true;
                       ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:51:30: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
    unsigned backgroundColor = 0xFFFFFFFF;
                             ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:53:22: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
    bool transparent = false;
                     ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:55:16: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
    bool frame = true;
               ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:57:20: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
    bool hasShadow = true;
                   ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:62:18: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
    bool visible = true;
                 ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:64:21: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
    bool fullscreen = false;
                    ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:66:16: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
    bool modal = false;
               ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:71:23: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
    std::string title = "CrossWindow";
                      ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:73:22: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
    std::string name = "XWinApp";
                     ^
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/../Common/WindowDesc.h:75:26: warning:
      in-class initialization of non-static data member is a C++11 extension
      [-Wc++11-extensions]
    std::string iconPath = "";
                         ^
In file included from /Users/smallville7123/git/CrossWindow/example/main.cpp:1:
In file included from /Users/smallville7123/git/CrossWindow/src/CrossWindow/CrossWindow.h:9:
In file included from /Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/Window.h:8:
/Users/smallville7123/git/CrossWindow/src/CrossWindow/Common/../Cocoa/CocoaWindow.h:38:10: warning:
      scoped enumerations are a C++11 extension [-Wc++11-extensions]
    enum class LayerType
         ^
/Users/smallville7123/git/CrossWindow/example/main.cpp:35:37: warning: use of
      enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
            if (event.type == xwin::EventType::MouseMove)
                                    ^
/Users/smallville7123/git/CrossWindow/example/main.cpp:37:29: error: no type
      named 'MouseData' in namespace 'xwin'
                const xwin::MouseData mouse = event.data.mouse;
                      ~~~~~~^
/Users/smallville7123/git/CrossWindow/example/main.cpp:39:37: warning: use of
      enumeration in a nested name specifier is a C++11 extension
      [-Wc++11-extensions]
            if (event.type == xwin::EventType::Close)
                                    ^
46 warnings and 9 errors generated.
make[2]: *** [CMakeFiles/app.dir/main.o] Error 1
make[1]: *** [CMakeFiles/app.dir/all] Error 2
make: *** [all] Error 2
Matthews-MacBook-Pro:example smallville7123$