teeuniverse / teeuniverse

TeeUniverse is a free and open-source game offering powerful and robust support for playing online various gamemodes and playgrounds.
http://teeuniverse.net
GNU Affero General Public License v3.0
17 stars 7 forks source link

namecollision on macOS #77

Closed H-M-H closed 7 years ago

H-M-H commented 7 years ago
> make
...
In file included from /Users/hmh/git/teeuniverse/src/shared/system/debug.cpp:48:
In file included from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:20:
In file included from /System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h:23:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h:20:
In file included from /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h:159:
/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/fp.h:1191:23: error: redeclaration of 'pi' with a different type: 'const double_t' (aka 'const double') vs 'const float'
extern const double_t pi                                             __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA);
                      ^
/Users/hmh/git/teeuniverse/src/shared/math/math.h:116:13: note: previous definition is here
const float pi = 3.1415926535897932384626433f;
            ^
1 error generated.
make[2]: *** [CMakeFiles/teeuniverse_shared.dir/src/shared/system/debug.cpp.o] Error 1
make[1]: *** [CMakeFiles/teeuniverse_shared.dir/all] Error 2
make: *** [all] Error 2

Solution: Find a better name for pi that is not pi.

necropotame commented 7 years ago

It's the same name as for Teeworlds. Any reason to get this name collision in this case ? I think Pi can be better. I like when names start with an upper case.

H-M-H commented 7 years ago

After fixing this compilation went fine. I renamed pi to tw_pi to be sure there are no further collisions, if you want I can create a Pullrequest with this fix.

Here is the build-log after fixing it: https://gist.github.com/H-M-H/b628960daab98284d760a2c9a9e81dd5

As you see it got quite big because of some other warnings.

For some reason I can not see the cursor in teeuniverse_editor. If there are some other things you want me to test tell me.

Edit: Just noticed there are also unittests, all of them passed.

necropotame commented 7 years ago

Nice :) Happy to see that Harfbuzz is working. I will fix all errors and warnings. Your compiler seems more sensitive, that's nice. Concerning the cursor, it's the case in both fullscreen and windowed mode ? I use the desktop cursor instead of drawing it again.

H-M-H commented 7 years ago

Yes, the cursor disappears in both cases, about the compiler: clang is default on macOS, you might consider also installing it on your system (and if you got a little too much time you could also try their static analyzer: scan-build), so you get most of its warnings too.

Installing all the dependencies was actually pretty easy as they all are available via https://www.macports.org/

necropotame commented 7 years ago

Can you update the Readme with instructions for OSX ? I've opened Issue #78 for the pointer problem. But since I can't reproduce it, I don't know what to do. Maybe I did something wrong in input.cpp

necropotame commented 7 years ago

My last commit should fix all warnings and the "pi" thing

H-M-H commented 7 years ago

Nice, it indeed fixed most of the warnings:

> make
[  1%] Building C object CMakeFiles/teeuniverse_shared.dir/src/external/zlib/adler32.c.o
[  2%] Building C object CMakeFiles/teeuniverse_shared.dir/src/external/zlib/compress.c.o
[  2%] Building C object CMakeFiles/teeuniverse_shared.dir/src/external/zlib/crc32.c.o
[  3%] Building C object CMakeFiles/teeuniverse_shared.dir/src/external/zlib/deflate.c.o
[  4%] Building C object CMakeFiles/teeuniverse_shared.dir/src/external/zlib/infback.c.o
[  4%] Building C object CMakeFiles/teeuniverse_shared.dir/src/external/zlib/inffast.c.o
[  5%] Building C object CMakeFiles/teeuniverse_shared.dir/src/external/zlib/inflate.c.o
/Users/hmh/git/teeuniverse/src/external/zlib/inflate.c:1507:61: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
    if (strm == Z_NULL || strm->state == Z_NULL) return -1L << 16;
                                                        ~~~ ^
1 warning generated.
[  6%] Building C object CMakeFiles/teeuniverse_shared.dir/src/external/zlib/inftrees.c.o
[  6%] Building C object CMakeFiles/teeuniverse_shared.dir/src/external/zlib/trees.c.o
[  7%] Building C object CMakeFiles/teeuniverse_shared.dir/src/external/zlib/uncompr.c.o
[  7%] Building C object CMakeFiles/teeuniverse_shared.dir/src/external/zlib/zutil.c.o
[  8%] Building C object CMakeFiles/teeuniverse_shared.dir/src/external/json-parser/json.c.o
[  9%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/shared/archivefile.cpp.o
[  9%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/shared/kernel.cpp.o
[ 10%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/shared/system/debug.cpp.o
[ 11%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/shared/system/fs.cpp.o
[ 11%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/shared/system/memory.cpp.o
[ 12%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/shared/system/string.cpp.o
[ 13%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/shared/system/threading.cpp.o
[ 13%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/shared/system/time.cpp.o
[ 14%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/shared/assets/asset.cpp.o
[ 15%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/shared/assets/assetpath.cpp.o
[ 15%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/shared/assets/assetspackage.cpp.o
[ 16%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/shared/assets/assetssaveloadcontext.cpp.o
[ 17%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/shared/assets/image.cpp.o
[ 17%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/shared/assets/maplayerobjects.cpp.o
[ 18%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/shared/assets/maplayerquads.cpp.o
[ 19%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/shared/assets/skeletonanimation.cpp.o
[ 19%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/shared/assets/sprite.cpp.o
[ 20%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/shared/components/assetsmanager.cpp.o
/Users/hmh/git/teeuniverse/src/shared/components/assetsmanager.cpp:817:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
/Users/hmh/git/teeuniverse/src/shared/components/assetsmanager.cpp:843:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
2 warnings generated.
[ 21%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/shared/components/assetsmanager_history.cpp.o
[ 21%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/shared/components/assetsmanager_import_twmap.cpp.o
[ 22%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/shared/components/cli.cpp.o
/Users/hmh/git/teeuniverse/src/shared/components/cli.cpp:510:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
/Users/hmh/git/teeuniverse/src/shared/components/cli.cpp:516:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
2 warnings generated.
[ 23%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/shared/components/localization.cpp.o
[ 23%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/shared/components/storage.cpp.o
[ 24%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/shared/geometry/linetesselation.cpp.o
[ 24%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/tw07/shared/datafile.cpp.o
[ 25%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/character.cpp.o
[ 26%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/characterpart.cpp.o
[ 26%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/entitytype.cpp.o
[ 27%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/guiboxstyle.cpp.o
[ 28%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/guibuttonstyle.cpp.o
[ 28%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/guicoloreditstyle.cpp.o
[ 29%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/guicomboboxstyle.cpp.o
[ 30%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/guiinteditstyle.cpp.o
[ 30%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/guilabelstyle.cpp.o
[ 31%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/guilinestyle.cpp.o
[ 32%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/guirectstyle.cpp.o
[ 32%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/guiscrollbarstyle.cpp.o
[ 33%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/guisliderstyle.cpp.o
[ 34%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/guitabsstyle.cpp.o
[ 34%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/guitogglestyle.cpp.o
[ 35%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/image.cpp.o
[ 36%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/map.cpp.o
[ 36%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/mapentities.cpp.o
[ 37%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/mapgroup.cpp.o
[ 38%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/maplayerobjects.cpp.o
[ 38%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/maplayerquads.cpp.o
[ 39%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/maplayertiles.cpp.o
[ 40%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/mapzonetiles.cpp.o
[ 40%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/material.cpp.o
[ 41%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/skeleton.cpp.o
[ 41%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/skeletonanimation.cpp.o
[ 42%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/skeletonskin.cpp.o
[ 43%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/sprite.cpp.o
[ 43%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/weapon.cpp.o
[ 44%] Building CXX object CMakeFiles/teeuniverse_shared.dir/src/generated/assets/zonetype.cpp.o
[ 45%] Linking CXX static library lib/release/libteeuniverse_shared.a
[ 45%] Built target teeuniverse_shared
[ 45%] Building CXX object CMakeFiles/test_archivefile.dir/src/unittest/archivefile.cpp.o
[ 46%] Linking CXX executable bin/release/test/test_archivefile
[ 46%] Built target test_archivefile
[ 46%] Building C object CMakeFiles/teeuniverse_tools.dir/src/external/pnglite/pnglite.c.o
[ 47%] Building CXX object CMakeFiles/teeuniverse_tools.dir/src/client/loading_tools.cpp.o
[ 48%] Linking CXX static library lib/release/libteeuniverse_tools.a
[ 48%] Built target teeuniverse_tools
[ 48%] Building CXX object CMakeFiles/make_assets_gui_editor.dir/src/make_assets_gui_editor.cpp.o
[ 49%] Linking CXX executable bin/release/make_assets/make_assets_gui_editor
[Storage]: Save directory: data
[ArchiveFile]: 'assets/gui_editor.tup' saved
[ 49%] Built target make_assets_gui_editor
[ 50%] Building CXX object CMakeFiles/make_assets_univ_openfng.dir/src/make_assets_univ_openfng.cpp.o
[ 50%] Linking CXX executable bin/release/make_assets/make_assets_univ_openfng
[Storage]: Save directory: data
[ArchiveFile]: 'assets/univ_openfng.tup' saved
[ 50%] Built target make_assets_univ_openfng
[ 50%] Building CXX object CMakeFiles/make_assets_univ_infclass.dir/src/make_assets_univ_infclass.cpp.o
[ 51%] Linking CXX executable bin/release/make_assets/make_assets_univ_infclass
[Storage]: Save directory: data
[ArchiveFile]: 'assets/univ_infclass.tup' saved
[ 51%] Built target make_assets_univ_infclass
[ 52%] Building CXX object CMakeFiles/test_assetsmanager.dir/src/unittest/assetsmanager.cpp.o
[ 52%] Linking CXX executable bin/release/test/test_assetsmanager
[ 52%] Built target test_assetsmanager
[ 53%] Building CXX object CMakeFiles/test_system_string.dir/src/unittest/system_string.cpp.o
[ 54%] Linking CXX executable bin/release/test/test_system_string
[ 54%] Built target test_system_string
[ 55%] Building CXX object CMakeFiles/test_localization.dir/src/unittest/localization.cpp.o
[ 56%] Linking CXX executable bin/release/test/test_localization
[ 56%] Built target test_localization
[ 57%] Building CXX object CMakeFiles/test_system_fs.dir/src/unittest/system_fs.cpp.o
[ 57%] Linking CXX executable bin/release/test/test_system_fs
[ 57%] Built target test_system_fs
[ 58%] Building CXX object CMakeFiles/make_assets_univ_teeworlds.dir/src/make_assets_univ_teeworlds.cpp.o
[ 59%] Linking CXX executable bin/release/make_assets/make_assets_univ_teeworlds
[Storage]: Save directory: data
[ArchiveFile]: 'assets/univ_teeworlds.tup' saved
[ArchiveFile]: 'assets/env_clouds.tup' saved
[ArchiveFile]: 'assets/env_desert.tup' saved
[ArchiveFile]: 'assets/env_generic.tup' saved
[ArchiveFile]: 'assets/env_grass.tup' saved
[ArchiveFile]: 'assets/env_jungle.tup' saved
[ArchiveFile]: 'assets/env_moon.tup' saved
[ArchiveFile]: 'assets/env_mountains.tup' saved
[ArchiveFile]: 'assets/env_snow.tup' saved
[ArchiveFile]: 'assets/env_stars.tup' saved
[ArchiveFile]: 'assets/env_sun.tup' saved
[ArchiveFile]: 'assets/env_winter.tup' saved
[ 59%] Built target make_assets_univ_teeworlds
[ 59%] Building C object CMakeFiles/teeuniverse_client.dir/src/external/pnglite/pnglite.c.o
[ 60%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/gui/bind-edit.cpp.o
[ 61%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/gui/boxlayout.cpp.o
[ 61%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/gui/button.cpp.o
[ 62%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/gui/color-edit.cpp.o
[ 63%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/gui/combobox.cpp.o
[ 63%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/gui/expand.cpp.o
[ 64%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/gui/filler.cpp.o
[ 64%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/gui/float-edit.cpp.o
[ 65%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/gui/integer-edit.cpp.o
[ 66%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/gui/label.cpp.o
/Users/hmh/git/teeuniverse/src/client/gui/label.cpp:362:17: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value]
                Selection.w = abs(m_TextSelection0.m_Position.x - m_TextSelection1.m_Position.x);
                              ^
/Users/hmh/git/teeuniverse/src/client/gui/label.cpp:362:17: note: use function 'std::abs' instead
                Selection.w = abs(m_TextSelection0.m_Position.x - m_TextSelection1.m_Position.x);
                              ^~~
                              std::abs
/Users/hmh/git/teeuniverse/src/client/gui/label.cpp:362:17: note: include the header <cmath> or explicitly provide a declaration for 'std::abs'
1 warning generated.
[ 66%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/gui/listlayout.cpp.o
[ 67%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/gui/panellayout.cpp.o
[ 68%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/gui/popup.cpp.o
[ 68%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/gui/rect.cpp.o
[ 69%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/gui/scrollbar.cpp.o
[ 70%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/gui/slider.cpp.o
[ 70%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/gui/tabs.cpp.o
[ 71%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/gui/text-edit.cpp.o
[ 72%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/gui/toggle.cpp.o
[ 72%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/gui/widget.cpp.o
[ 73%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/components/assetsrenderer.cpp.o
[ 74%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/components/graphics.cpp.o
/Users/hmh/git/teeuniverse/src/client/components/graphics.cpp:933:22: warning: implicit conversion from 'float' to 'int64' (aka 'long long') changes value from 9.9999997E-5 to 0 [-Wliteral-conversion]
        m_RenderFrameTime = 0.0001f;
                          ~ ^~~~~~~
/Users/hmh/git/teeuniverse/src/client/components/graphics.cpp:1023:33: warning: '&&' within '||' [-Wlogical-op-parentheses]
                if(pImage->GetTilingEnabled() && pImage->GetGridWidth() == 16 || pImage->GetGridHeight() == 16)
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~
/Users/hmh/git/teeuniverse/src/client/components/graphics.cpp:1023:33: note: place parentheses around the '&&' expression to silence this warning
                if(pImage->GetTilingEnabled() && pImage->GetGridWidth() == 16 || pImage->GetGridHeight() == 16)
                                              ^
                   (                                                         )
2 warnings generated.
[ 74%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/components/graphics_backend_sdl.cpp.o
/Users/hmh/git/teeuniverse/src/client/components/graphics_backend_sdl.cpp:386:4: warning: 'gluBuild2DMipmaps' is deprecated: first deprecated in macOS 10.9 - "Use glGenerateMipmap" [-Wdeprecated-declarations]
                        gluBuild2DMipmaps(GL_TEXTURE_2D, StoreOglformat, Width, Height, Oglformat, GL_UNSIGNED_BYTE, pTexData);
                        ^
/System/Library/Frameworks/OpenGL.framework/Headers/glu.h:247:14: note: 'gluBuild2DMipmaps' has been explicitly marked deprecated here
extern GLint gluBuild2DMipmaps (GLenum target, GLint internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void *data) OPENGL_DEPRECATED_MSG(10_0, 10_9, "Use glGenerateMipmap");
             ^
1 warning generated.
[ 75%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/components/gui.cpp.o
/Users/hmh/git/teeuniverse/src/client/components/gui.cpp:45:3: warning: delete called on 'gui::CWidget' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor]
                delete m_pMainWidget;
                ^
/Users/hmh/git/teeuniverse/src/client/components/gui.cpp:81:3: warning: delete called on 'gui::CWidget' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor]
                delete pWidget;
                ^
/Users/hmh/git/teeuniverse/src/client/components/gui.cpp:102:3: warning: delete called on 'gui::CWidget' that is abstract but has non-virtual destructor [-Wdelete-non-virtual-dtor]
                delete m_DestructionList[i];
                ^
3 warnings generated.
[ 76%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/components/input.cpp.o
[ 76%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/components/textrenderer.cpp.o
[ 77%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/kernel.cpp.o
[ 78%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/loading_tools.cpp.o
[ 78%] Building CXX object CMakeFiles/teeuniverse_client.dir/src/client/maprenderer.cpp.o
[ 79%] Linking CXX static library lib/release/libteeuniverse_client.a
[ 79%] Built target teeuniverse_client
[ 80%] Building CXX object CMakeFiles/teeuniverse_editor.dir/src/editor.cpp.o
[ 80%] Building CXX object CMakeFiles/teeuniverse_editor.dir/src/editor/gui/assetsinspector.cpp.o
[ 81%] Building CXX object CMakeFiles/teeuniverse_editor.dir/src/editor/gui/assetslist.cpp.o
[ 81%] Building CXX object CMakeFiles/teeuniverse_editor.dir/src/editor/gui/image_picker.cpp.o
[ 82%] Building CXX object CMakeFiles/teeuniverse_editor.dir/src/editor/gui/timeline.cpp.o
[ 83%] Building CXX object CMakeFiles/teeuniverse_editor.dir/src/editor/gui/view.cpp.o
[ 83%] Building CXX object CMakeFiles/teeuniverse_editor.dir/src/editor/gui/view_gui.cpp.o
[ 84%] Building CXX object CMakeFiles/teeuniverse_editor.dir/src/editor/gui/view_image.cpp.o
[ 85%] Building CXX object CMakeFiles/teeuniverse_editor.dir/src/editor/gui/view_image_spritecreator.cpp.o
[ 85%] Building CXX object CMakeFiles/teeuniverse_editor.dir/src/editor/gui/view_map.cpp.o
[ 86%] Building CXX object CMakeFiles/teeuniverse_editor.dir/src/editor/gui/view_map_crop.cpp.o
[ 87%] Building CXX object CMakeFiles/teeuniverse_editor.dir/src/editor/gui/view_map_object.cpp.o
[ 87%] Building CXX object CMakeFiles/teeuniverse_editor.dir/src/editor/gui/view_map_stamp.cpp.o
[ 88%] Building CXX object CMakeFiles/teeuniverse_editor.dir/src/editor/gui/view_map_transform.cpp.o
[ 89%] Building CXX object CMakeFiles/teeuniverse_editor.dir/src/editor/gui/view_material.cpp.o
[ 89%] Building CXX object CMakeFiles/teeuniverse_editor.dir/src/editor/gui/view_sprite.cpp.o
[ 90%] Building CXX object CMakeFiles/teeuniverse_editor.dir/src/editor/components/gui.cpp.o
[ 91%] Building CXX object CMakeFiles/teeuniverse_editor.dir/src/editor/kernel.cpp.o
[ 91%] Linking CXX executable bin/release/teeuniverse_editor
[ 91%] Built target teeuniverse_editor
[ 91%] Building CXX object CMakeFiles/test_shared_kernel.dir/src/unittest/shared_kernel.cpp.o
[ 92%] Linking CXX executable bin/release/test/test_shared_kernel
[ 92%] Built target test_shared_kernel
[ 92%] Building CXX object CMakeFiles/teeuniverse_srv.dir/src/server.cpp.o
[ 93%] Building CXX object CMakeFiles/teeuniverse_srv.dir/src/server/kernel.cpp.o
[ 94%] Linking CXX executable bin/release/teeuniverse_srv
[ 94%] Built target teeuniverse_srv
[ 94%] Building CXX object CMakeFiles/teeuniverse.dir/src/game.cpp.o
[ 95%] Building CXX object CMakeFiles/teeuniverse.dir/src/game/gui/console.cpp.o
[ 96%] Building CXX object CMakeFiles/teeuniverse.dir/src/game/gui/settings.cpp.o
[ 96%] Building CXX object CMakeFiles/teeuniverse.dir/src/game/gui/start.cpp.o
[ 97%] Building CXX object CMakeFiles/teeuniverse.dir/src/game/components/bindsmanager.cpp.o
[ 98%] Building CXX object CMakeFiles/teeuniverse.dir/src/game/components/countryflags.cpp.o
[ 98%] Building CXX object CMakeFiles/teeuniverse.dir/src/game/components/gui.cpp.o
[ 99%] Building CXX object CMakeFiles/teeuniverse.dir/src/game/kernel.cpp.o
[100%] Linking CXX executable bin/release/teeuniverse
[100%] Built target teeuniverse
H-M-H commented 7 years ago

Building on macOS is pretty easy actually. First you need to install macports: https://www.macports.org/install.php

And then you can install all required dependencies like this: sudo port install cmake git freetype harfbuzz harfbuzz-icu libsdl2 icu The steps for compilation are exactly the same as for linux (except you have had some fun with your environment :P ).

necropotame commented 7 years ago

What a shame. I will take care of those errors and enable warning in g++.