1 (edited by Cant-block 2017-01-05 20:12:48)

Topic: Compiling on Mac

MacOS X 10.10, bam 0.4, teeworlds 0.6
I have already installed Framework and xcode tools
When I am trying to compile bam, I am getting these warnings:

src/luafuncs.c:431:2: warning: indirection of non-volatile null pointer will be
      deleted, not trap [-Wnull-dereference]
        *(int*)0 = 0;
        ^~~~~~~~
src/luafuncs.c:431:2: note: consider using __builtin_trap() or qualifying
      pointer with 'volatile'
1 warning generated.
src/lua/lauxlib.c:577:61: warning: while loop has empty body [-Wempty-body]
   while ((c = getc(lf.f)) != EOF && c != LUA_SIGNATURE[0]) ;
                                                            ^
src/lua/lauxlib.c:577:61: note: put the semicolon on a separate line to silence
      this warning
1 warning generated.
src/lua/loslib.c:60:3: warning: 'tmpnam' is deprecated: This function is
      provided for compatibility reasons only. Due to security concerns inherent
      in the design of tmpnam(3), it is highly recommended that you use
      mkstemp(3) instead. [-Wdeprecated-declarations]
  lua_tmpnam(buff, err);
  ^
src/lua/luaconf.h:657:33: note: expanded from macro 'lua_tmpnam'
#define lua_tmpnam(b,e)         { e = (tmpnam(b) == NULL); }
                                       ^
/usr/include/stdio.h:276:7: note: 'tmpnam' has been explicitly marked deprecated
      here
char    *tmpnam(char *);
         ^
1 warning generated.

After that, I am trying to compile teeworlds:

../bam/bam release
[  1/152] #1 c++ src/game/gamecore.cpp
[  2/152] #1 c++ src/game/generated/nethash.cpp
[  3/152] #1 c++ src/game/generated/protocol.cpp
[  4/152] #1 c++ src/game/client/animstate.cpp
[  5/152] #1 c++ src/game/client/components/binds.cpp
[  6/152] #1 c++ src/game/client/components/broadcast.cpp
[  7/152] #1 c++ src/game/client/components/camera.cpp
[  8/152] #1 c++ src/game/client/components/chat.cpp
[  9/152] #1 c++ src/game/client/components/console.cpp
[ 10/152] #1 c++ src/game/client/components/controls.cpp
[ 11/152] #1 c++ src/game/client/components/countryflags.cpp
[ 12/152] #1 c++ src/game/client/components/damageind.cpp
[ 13/152] #1 c++ src/game/client/components/debughud.cpp
[ 14/152] #1 c++ src/game/client/components/effects.cpp
[ 15/152] #1 c++ src/game/client/components/emoticon.cpp
[ 16/152] #1 c++ src/game/client/components/flow.cpp
[ 17/152] #1 c++ src/game/client/components/hud.cpp
[ 18/152] #1 c++ src/game/client/components/items.cpp
[ 19/152] #1 c++ src/game/client/components/killmessages.cpp
[ 20/152] #1 c++ src/game/client/components/mapimages.cpp
[ 21/152] #1 c++ src/game/client/components/maplayers.cpp
[ 22/152] #1 c++ src/game/client/components/menus.cpp
[ 23/152] #1 c++ src/game/client/components/menus_browser.cpp
[ 24/152] #1 c++ src/game/client/components/menus_demo.cpp
[ 25/152] #1 c++ src/game/client/components/menus_ingame.cpp
[ 26/152] #1 c++ src/game/client/components/menus_settings.cpp
[ 27/152] #1 c++ src/game/client/components/motd.cpp
[ 28/152] #1 c++ src/game/client/components/nameplates.cpp
[ 29/152] #1 c++ src/game/client/components/particles.cpp
[ 30/152] #1 c++ src/game/client/components/players.cpp
[ 31/152] #1 c++ src/game/client/components/scoreboard.cpp
[ 32/152] #1 c++ src/game/client/components/skins.cpp
[ 33/152] #1 c++ src/game/client/components/sounds.cpp
[ 34/152] #1 c++ src/game/client/components/spectator.cpp
[ 35/152] #1 c++ src/game/client/components/voting.cpp
[ 36/152] #1 c++ src/game/client/gameclient.cpp
[ 37/152] #1 c++ src/game/client/render.cpp
[ 38/152] #1 c++ src/game/generated/client_data.cpp
[ 39/152] #1 c src/base/system.c
In file included from src/base/system.c:31:
In file included from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:35:
In file included from /System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:43:
In file included from /System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayStream.h:9:
In file included from /System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceAPI.h:13:
In file included from /System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h:30:
In file included from /usr/include/xpc/xpc.h:330:
In file included from /usr/include/launch.h:29:
In file included from /usr/include/mach/mach.h:67:
In file included from /usr/include/mach/mach_interface.h:45:
/usr/include/mach/lock_set.h:63:15: error: conflicting types for 'lock_release'
kern_return_t lock_release
              ^
src/base/system.h:408:6: note: previous declaration is here
void lock_release(LOCK lock);
     ^
In file included from src/base/system.c:31:
In file included from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:35:
In file included from /System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:43:
In file included from /System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayStream.h:9:
In file included from /System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceAPI.h:13:
In file included from /System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h:30:
In file included from /usr/include/xpc/xpc.h:330:
In file included from /usr/include/launch.h:29:
In file included from /usr/include/mach/mach.h:67:
In file included from /usr/include/mach/mach_interface.h:45:
/usr/include/mach/lock_set.h:75:15: error: conflicting types for 'lock_try'
kern_return_t lock_try
              ^
src/base/system.h:406:5: note: previous declaration is here
int lock_try(LOCK lock);
    ^
In file included from src/base/system.c:31:
In file included from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:35:
In file included from /System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:43:
In file included from /System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayStream.h:9:
In file included from /System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceAPI.h:13:
In file included from /System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h:30:
In file included from /usr/include/xpc/xpc.h:330:
In file included from /usr/include/launch.h:29:
In file included from /usr/include/mach/mach.h:67:
In file included from /usr/include/mach/mach_interface.h:49:
/usr/include/mach/task.h:193:15: error: conflicting types for 'thread_create'
kern_return_t thread_create
              ^
src/base/system.h:363:7: note: previous declaration is here
void *thread_create(void (*threadfunc)(void *), void *user);
      ^
src/base/system.c:1791:2: warning: implicit declaration of function
      'CreateStandardAlert' is invalid in C99 [-Wimplicit-function-declaration]
        CreateStandardAlert(kAlertStopAlert,
        ^
src/base/system.c:1797:2: warning: implicit declaration of function
      'RunStandardAlert' is invalid in C99 [-Wimplicit-function-declaration]
        RunStandardAlert(theItem, NULL, &itemIndex);
        ^
2 warnings and 3 errors generated.
bam: 'objs/base/system_x86_64.o' error 256
[ 40/152] #1 c++ src/engine/client/backend_sdl.cpp
[ 41/152] #1 c++ src/engine/client/client.cpp
In file included from src/engine/client/client.cpp:45:
src/engine/client/client.h:36:8: warning: private field 'm_RLast' is not used
      [-Wunused-private-field]
        int64 m_RLast;
              ^
src/engine/client/client.h:37:8: warning: private field 'm_TLast' is not used
      [-Wunused-private-field]
        int64 m_TLast;
              ^
2 warnings generated.
[ 42/152] #1 c++ src/engine/client/graphics.cpp
[ 43/152] #1 c++ src/engine/client/input.cpp
[ 44/152] #1 c++ src/game/editor/editor.cpp
[ 45/152] #1 c++ src/game/editor/io.cpp
[ 46/152] #1 c++ src/game/editor/layer_quads.cpp
[ 47/152] #1 c++ src/game/editor/layer_tiles.cpp
[ 48/152] #1 c++ src/game/server/entities/character.cpp
[ 49/152] #1 c++ src/game/server/entities/flag.cpp
[ 50/152] #1 c++ src/game/server/entities/laser.cpp
[ 51/152] #1 c++ src/game/server/entities/pickup.cpp
[ 52/152] #1 c++ src/game/server/entities/projectile.cpp
[ 53/152] #1 c++ src/game/server/entity.cpp
[ 54/152] #1 c++ src/game/server/eventhandler.cpp
[ 55/152] #1 c++ src/game/server/gamecontext.cpp
[ 56/152] #1 c++ src/game/server/gamecontroller.cpp
[ 57/152] #1 c++ src/game/server/gamemodes/ctf.cpp
[ 58/152] #1 c++ src/game/server/gamemodes/tdm.cpp
[ 59/152] #1 c++ src/game/server/gameworld.cpp
[ 60/152] #1 c++ src/game/server/player.cpp
[ 61/152] #1 c++ src/game/generated/server_data.cpp
[ 62/152] #1 c++ src/versionsrv/versionsrv.cpp
[ 63/152] #1 c++ src/game/gamecore.cpp
[ 64/152] #1 c++ src/game/generated/nethash.cpp
[ 65/152] #1 c++ src/game/generated/protocol.cpp
[ 66/152] #1 c++ src/game/client/animstate.cpp
[ 67/152] #1 c++ src/game/client/components/binds.cpp
[ 68/152] #1 c++ src/game/client/components/broadcast.cpp
[ 69/152] #1 c++ src/game/client/components/camera.cpp
[ 70/152] #1 c++ src/game/client/components/chat.cpp
[ 71/152] #1 c++ src/game/client/components/console.cpp
[ 72/152] #1 c++ src/game/client/components/controls.cpp
[ 73/152] #1 c++ src/game/client/components/countryflags.cpp
[ 74/152] #1 c++ src/game/client/components/damageind.cpp
[ 75/152] #1 c++ src/game/client/components/debughud.cpp
[ 76/152] #1 c++ src/game/client/components/effects.cpp
[ 77/152] #1 c++ src/game/client/components/emoticon.cpp
[ 78/152] #1 c++ src/game/client/components/flow.cpp
[ 79/152] #1 c++ src/game/client/components/hud.cpp
[ 80/152] #1 c++ src/game/client/components/items.cpp
[ 81/152] #1 c++ src/game/client/components/killmessages.cpp
[ 82/152] #1 c++ src/game/client/components/mapimages.cpp
[ 83/152] #1 c++ src/game/client/components/maplayers.cpp
[ 84/152] #1 c++ src/game/client/components/menus.cpp
[ 85/152] #1 c++ src/game/client/components/menus_browser.cpp
[ 86/152] #1 c++ src/game/client/components/menus_demo.cpp
[ 87/152] #1 c++ src/game/client/components/menus_ingame.cpp
[ 88/152] #1 c++ src/game/client/components/menus_settings.cpp
[ 89/152] #1 c++ src/game/client/components/motd.cpp
[ 90/152] #1 c++ src/game/client/components/nameplates.cpp
[ 91/152] #1 c++ src/game/client/components/particles.cpp
[ 92/152] #1 c++ src/game/client/components/players.cpp
[ 93/152] #1 c++ src/game/client/components/scoreboard.cpp
[ 94/152] #1 c++ src/game/client/components/skins.cpp
[ 95/152] #1 c++ src/game/client/components/sounds.cpp
[ 96/152] #1 c++ src/game/client/components/spectator.cpp
[ 97/152] #1 c++ src/game/client/components/voting.cpp
[ 98/152] #1 c++ src/game/client/gameclient.cpp
[ 99/152] #1 c++ src/game/client/render.cpp
[100/152] #1 c++ src/game/generated/client_data.cpp
[101/152] #1 c src/base/system.c
In file included from src/base/system.c:31:
In file included from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:35:
In file included from /System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:43:
In file included from /System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayStream.h:9:
In file included from /System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceAPI.h:13:
In file included from /System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h:30:
In file included from /usr/include/xpc/xpc.h:330:
In file included from /usr/include/launch.h:29:
In file included from /usr/include/mach/mach.h:67:
In file included from /usr/include/mach/mach_interface.h:45:
/usr/include/mach/lock_set.h:63:15: error: conflicting types for 'lock_release'
kern_return_t lock_release
              ^
src/base/system.h:408:6: note: previous declaration is here
void lock_release(LOCK lock);
     ^
In file included from src/base/system.c:31:
In file included from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:35:
In file included from /System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:43:
In file included from /System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayStream.h:9:
In file included from /System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceAPI.h:13:
In file included from /System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h:30:
In file included from /usr/include/xpc/xpc.h:330:
In file included from /usr/include/launch.h:29:
In file included from /usr/include/mach/mach.h:67:
In file included from /usr/include/mach/mach_interface.h:45:
/usr/include/mach/lock_set.h:75:15: error: conflicting types for 'lock_try'
kern_return_t lock_try
              ^
src/base/system.h:406:5: note: previous declaration is here
int lock_try(LOCK lock);
    ^
In file included from src/base/system.c:31:
In file included from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24:
In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:35:
In file included from /System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:43:
In file included from /System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayStream.h:9:
In file included from /System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceAPI.h:13:
In file included from /System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceBase.h:30:
In file included from /usr/include/xpc/xpc.h:330:
In file included from /usr/include/launch.h:29:
In file included from /usr/include/mach/mach.h:67:
In file included from /usr/include/mach/mach_interface.h:49:
/usr/include/mach/task.h:193:15: error: conflicting types for 'thread_create'
kern_return_t thread_create
              ^
src/base/system.h:363:7: note: previous declaration is here
void *thread_create(void (*threadfunc)(void *), void *user);
      ^
3 errors generated.
bam: 'objs/base/system_x86.o' error 256
[102/152] #1 c++ src/engine/client/backend_sdl.cpp
[103/152] #1 c++ src/engine/client/client.cpp
In file included from src/engine/client/client.cpp:45:
src/engine/client/client.h:36:8: warning: private field 'm_RLast' is not used
      [-Wunused-private-field]
        int64 m_RLast;
              ^
src/engine/client/client.h:37:8: warning: private field 'm_TLast' is not used
      [-Wunused-private-field]
        int64 m_TLast;
              ^
2 warnings generated.
[104/152] #1 c++ src/engine/client/graphics.cpp
[105/152] #1 c++ src/engine/client/input.cpp
[106/152] #1 c++ src/game/editor/editor.cpp
[107/152] #1 c++ src/game/editor/io.cpp
[108/152] #1 c++ src/game/editor/layer_quads.cpp
[109/152] #1 c++ src/game/editor/layer_tiles.cpp
[110/152] #1 c++ src/game/server/entities/character.cpp
[111/152] #1 c++ src/game/server/entities/flag.cpp
[112/152] #1 c++ src/game/server/entities/laser.cpp
[113/152] #1 c++ src/game/server/entities/pickup.cpp
[114/152] #1 c++ src/game/server/entities/projectile.cpp
[115/152] #1 c++ src/game/server/entity.cpp
[116/152] #1 c++ src/game/server/eventhandler.cpp
[117/152] #1 c++ src/game/server/gamecontext.cpp
[118/152] #1 c++ src/game/server/gamecontroller.cpp
[119/152] #1 c++ src/game/server/gamemodes/ctf.cpp
[120/152] #1 c++ src/game/server/gamemodes/tdm.cpp
[121/152] #1 c++ src/game/server/gameworld.cpp
[122/152] #1 c++ src/game/server/player.cpp
[123/152] #1 c++ src/game/generated/server_data.cpp
[124/152] #1 c++ src/versionsrv/versionsrv.cpp
bam: error: a build step failed

What am I doing wrong?
How can I fix that?
P.S. Sorry for my English

2

Re: Compiling on Mac

You do not have the latest source of 0.6, try this one instead: https://github.com/teeworlds/teeworlds/archive/0.6.zip

Luck is allowed

3

Re: Compiling on Mac

HMH wrote:

You do not have the latest source of 0.6, try this one instead: https://github.com/teeworlds/teeworlds/archive/0.6.zip

I got this:

../bam/bam release
auto configuration

configuration:
AUTO  compiler             gcc
AUTO  stackprotector       yes
AUTO  minmacosxsdk         no
AUTO  macosxppc            no
AUTO  zlib                 (in system path)
AUTO  sdl                  using osx framework
AUTO  freetype             using freetype-config

notes:
saved configuration to 'config.lua'

[  1/313] #1 c++ src/game/collision.cpp
[  2/313] #1 network_header > src/game/generated/protocol.h
[  3/313] #1 c++ src/game/gamecore.cpp
[  4/313] #1 c++ src/game/layers.cpp
[  5/313] #1 c++ src/game/localization.cpp
[  6/313] #1 cmd5 src/game/generated/nethash.cpp
[  7/313] #1 c++ src/game/generated/nethash.cpp
[  8/313] #1 network_source > src/game/generated/protocol.cpp
[  9/313] #1 c++ src/game/generated/protocol.cpp
[ 10/313] #1 client_content_header > src/game/generated/client_data.h
[ 11/313] #1 c++ src/game/client/animstate.cpp
[ 12/313] #1 c++ src/game/client/components/binds.cpp
[ 13/313] #1 c++ src/game/client/components/broadcast.cpp
[ 14/313] #1 c++ src/game/client/components/camera.cpp
[ 15/313] #1 c++ src/game/client/components/chat.cpp
[ 16/313] #1 c++ src/game/client/components/console.cpp
[ 17/313] #1 c++ src/game/client/components/controls.cpp
[ 18/313] #1 c++ src/game/client/components/countryflags.cpp
[ 19/313] #1 c++ src/game/client/components/damageind.cpp
[ 20/313] #1 c++ src/game/client/components/debughud.cpp
[ 21/313] #1 c++ src/game/client/components/effects.cpp
[ 22/313] #1 c++ src/game/client/components/emoticon.cpp
[ 23/313] #1 c++ src/game/client/components/flow.cpp
[ 24/313] #1 c++ src/game/client/components/hud.cpp
[ 25/313] #1 c++ src/game/client/components/items.cpp
[ 26/313] #1 c++ src/game/client/components/killmessages.cpp
[ 27/313] #1 c++ src/game/client/components/mapimages.cpp
[ 28/313] #1 c++ src/game/client/components/maplayers.cpp
[ 29/313] #1 c++ src/game/client/components/menus.cpp
[ 30/313] #1 c++ src/game/client/components/menus_browser.cpp
[ 31/313] #1 c++ src/game/client/components/menus_demo.cpp
[ 32/313] #1 c++ src/game/client/components/menus_ingame.cpp
[ 33/313] #1 c++ src/game/client/components/menus_settings.cpp
[ 34/313] #1 c++ src/game/client/components/motd.cpp
[ 35/313] #1 c++ src/game/client/components/nameplates.cpp
[ 36/313] #1 c++ src/game/client/components/particles.cpp
[ 37/313] #1 c++ src/game/client/components/players.cpp
[ 38/313] #1 c++ src/game/client/components/scoreboard.cpp
[ 39/313] #1 c++ src/game/client/components/skins.cpp
[ 40/313] #1 c++ src/game/client/components/sounds.cpp
[ 41/313] #1 c++ src/game/client/components/spectator.cpp
[ 42/313] #1 c++ src/game/client/components/voting.cpp
[ 43/313] #1 c++ src/game/client/gameclient.cpp
[ 44/313] #1 c++ src/game/client/lineinput.cpp
[ 45/313] #1 c++ src/game/client/render.cpp
[ 46/313] #1 c++ src/game/client/render_map.cpp
[ 47/313] #1 c++ src/game/client/ui.cpp
[ 48/313] #1 client_content_source > src/game/generated/client_data.cpp
[ 49/313] #1 c++ src/game/generated/client_data.cpp
[ 50/313] #1 c++ src/engine/shared/compression.cpp
[ 51/313] #1 c++ src/engine/shared/config.cpp
[ 52/313] #1 c++ src/engine/shared/console.cpp
[ 53/313] #1 c++ src/engine/shared/datafile.cpp
[ 54/313] #1 c++ src/engine/shared/demo.cpp
[ 55/313] #1 c++ src/engine/shared/econ.cpp
[ 56/313] #1 c++ src/engine/shared/engine.cpp
[ 57/313] #1 c++ src/engine/shared/filecollection.cpp
[ 58/313] #1 c++ src/engine/shared/huffman.cpp
[ 59/313] #1 c++ src/engine/shared/jobs.cpp
In file included from src/engine/shared/jobs.cpp:4:
src/engine/shared/jobs.h:13:12: warning: private field 'm_pPool' is not used
      [-Wunused-private-field]
        CJobPool *m_pPool;
                  ^
1 warning generated.
[ 60/313] #1 c++ src/engine/shared/kernel.cpp
[ 61/313] #1 c++ src/engine/shared/linereader.cpp
[ 62/313] #1 c++ src/engine/shared/map.cpp
[ 63/313] #1 c++ src/engine/shared/mapchecker.cpp
[ 64/313] #1 c++ src/engine/shared/masterserver.cpp
[ 65/313] #1 c++ src/engine/shared/memheap.cpp
src/engine/shared/memheap.cpp:6:18: warning: unused variable 'CHUNK_SIZE'
      [-Wunused-const-variable]
static const int CHUNK_SIZE = 1024*64;
                 ^
1 warning generated.
[ 66/313] #1 c++ src/engine/shared/netban.cpp
[ 67/313] #1 c++ src/engine/shared/network.cpp
[ 68/313] #1 c++ src/engine/shared/network_client.cpp
In file included from src/engine/shared/network_client.cpp:4:
src/engine/shared/network.h:337:10: warning: private field 'm_ServerAddr' is not
      used [-Wunused-private-field]
        NETADDR m_ServerAddr;
                ^
1 warning generated.
[ 69/313] #1 c++ src/engine/shared/network_conn.cpp
[ 70/313] #1 c++ src/engine/shared/network_console.cpp
[ 71/313] #1 c++ src/engine/shared/network_console_conn.cpp
[ 72/313] #1 c++ src/engine/shared/network_server.cpp
[ 73/313] #1 c++ src/engine/shared/packer.cpp
[ 74/313] #1 c++ src/engine/shared/ringbuffer.cpp
In file included from src/engine/shared/ringbuffer.cpp:5:
src/engine/shared/ringbuffer.h:25:8: warning: private field 'm_pMemory' is not
      used [-Wunused-private-field]
        void *m_pMemory;
              ^
1 warning generated.
[ 75/313] #1 c++ src/engine/shared/snapshot.cpp
[ 76/313] #1 c++ src/engine/shared/storage.cpp
[ 77/313] #1 c src/base/system.c
src/base/system.c:1810:2: warning: implicit declaration of function
      'CreateStandardAlert' is invalid in C99 [-Wimplicit-function-declaration]
        CreateStandardAlert(kAlertStopAlert,
        ^
src/base/system.c:1816:2: warning: implicit declaration of function
      'RunStandardAlert' is invalid in C99 [-Wimplicit-function-declaration]
        RunStandardAlert(theItem, NULL, &itemIndex);
        ^
2 warnings generated.
[ 78/313] #1 c++ src/engine/client/backend_sdl.cpp
[ 79/313] #1 c++ src/engine/client/client.cpp
In file included from src/engine/client/client.cpp:45:
src/engine/client/client.h:36:8: warning: private field 'm_RLast' is not used
      [-Wunused-private-field]
        int64 m_RLast;
              ^
src/engine/client/client.h:37:8: warning: private field 'm_TLast' is not used
      [-Wunused-private-field]
        int64 m_TLast;
              ^
2 warnings generated.
[ 80/313] #1 c++ src/engine/client/friends.cpp
[ 81/313] #1 c++ src/engine/client/graphics.cpp
[ 82/313] #1 c++ src/engine/client/graphics_threaded.cpp
[ 83/313] #1 c++ src/engine/client/input.cpp
[ 84/313] #1 c++ src/engine/client/serverbrowser.cpp
[ 85/313] #1 c++ src/engine/client/sound.cpp
[ 86/313] #1 c++ src/engine/client/text.cpp
[ 87/313] #1 c++ src/game/editor/auto_map.cpp
[ 88/313] #1 c++ src/game/editor/editor.cpp
[ 89/313] #1 c++ src/game/editor/io.cpp
[ 90/313] #1 c++ src/game/editor/layer_game.cpp
[ 91/313] #1 c++ src/game/editor/layer_quads.cpp
[ 92/313] #1 c++ src/game/editor/layer_tiles.cpp
[ 93/313] #1 c++ src/game/editor/popups.cpp
[ 94/313] #1 c src/engine/external/zlib/adler32.c
[ 95/313] #1 c src/engine/external/zlib/compress.c
[ 96/313] #1 c src/engine/external/zlib/crc32.c
[ 97/313] #1 c src/engine/external/zlib/deflate.c
[ 98/313] #1 c src/engine/external/zlib/infback.c
[ 99/313] #1 c src/engine/external/zlib/inffast.c
[100/313] #1 c src/engine/external/zlib/inflate.c
[101/313] #1 c src/engine/external/zlib/inftrees.c
[102/313] #1 c src/engine/external/zlib/trees.c
[103/313] #1 c src/engine/external/zlib/uncompr.c
[104/313] #1 c src/engine/external/zlib/zutil.c
[105/313] #1 c src/engine/external/pnglite/pnglite.c
[106/313] #1 c src/engine/external/wavpack/bits.c
[107/313] #1 c src/engine/external/wavpack/float.c
[108/313] #1 c src/engine/external/wavpack/metadata.c
[109/313] #1 c src/engine/external/wavpack/unpack.c
[110/313] #1 c src/engine/external/wavpack/words.c
[111/313] #1 c src/engine/external/wavpack/wputils.c
[112/313] #1 c src/osxlaunch/client.m
src/osxlaunch/client.m:216:21: warning: sending 'SDLMain *' to parameter of
      incompatible type 'id<NSFileManagerDelegate>'
        [NSApp setDelegate:sdlMain];
                           ^~~~~~~
/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:109:47: note:
      passing argument to parameter 'delegate' here
@property (assign) id <NSFileManagerDelegate> delegate NS_AVAILABLE(10_5, 2_0);
                                              ^
1 warning generated.
[113/313] #1 link teeworlds_x86_64
[114/313] #1 c src/osxlaunch/server.m
src/osxlaunch/server.m:93:23: warning: sending 'ServerView *' to parameter of
      incompatible type 'id<NSWindowDelegate>'
        [window setDelegate: view];
                             ^~~~
/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:307:41: note:
      passing argument to parameter 'delegate' here
@property (assign) id<NSWindowDelegate> delegate;
                                        ^
1 warning generated.
[115/313] #1 link serverlaunch_x86_64
[116/313] #1 c++ src/engine/server/register.cpp
[117/313] #1 c++ src/engine/server/server.cpp
src/engine/server/server.cpp:859:18: warning: comparison of unsigned expression
      < 0 is always false [-Wtautological-compare]
                                if(ChunkSize < 0)
                                   ~~~~~~~~~ ^ ~
1 warning generated.
[118/313] #1 server_content_header > src/game/generated/server_data.h
[119/313] #1 c++ src/game/server/entities/character.cpp
src/game/server/entities/character.cpp:329:17: warning: unused variable 'pProj'
      [-Wunused-variable]
                        CProjectile *pProj = new CProjectile(GameWorld()...
                                     ^
src/game/server/entities/character.cpp:350:18: warning: unused variable 'pProj'
      [-Wunused-variable]
                                CProjectile *pProj = new CProjectile(Gam...
                                             ^
src/game/server/entities/character.cpp:363:17: warning: unused variable 'pProj'
      [-Wunused-variable]
                        CProjectile *pProj = new CProjectile(GameWorld()...
                                     ^
3 warnings generated.
[120/313] #1 c++ src/game/server/entities/flag.cpp
[121/313] #1 c++ src/game/server/entities/laser.cpp
[122/313] #1 c++ src/game/server/entities/pickup.cpp
[123/313] #1 c++ src/game/server/entities/projectile.cpp
[124/313] #1 c++ src/game/server/entity.cpp
[125/313] #1 c++ src/game/server/eventhandler.cpp
[126/313] #1 c++ src/game/server/gamecontext.cpp
[127/313] #1 c++ src/game/server/gamecontroller.cpp
[128/313] #1 c++ src/game/server/gamemodes/ctf.cpp
[129/313] #1 c++ src/game/server/gamemodes/dm.cpp
[130/313] #1 c++ src/game/server/gamemodes/mod.cpp
[131/313] #1 c++ src/game/server/gamemodes/tdm.cpp
[132/313] #1 c++ src/game/server/gameworld.cpp
[133/313] #1 c++ src/game/server/player.cpp
[134/313] #1 server_content_source > src/game/generated/server_data.cpp
[135/313] #1 c++ src/game/generated/server_data.cpp
[136/313] #1 link teeworlds_srv_x86_64
[137/313] #1 c++ src/versionsrv/versionsrv.cpp
[138/313] #1 link versionsrv_x86_64
[139/313] #1 c++ src/mastersrv/mastersrv.cpp
[140/313] #1 link mastersrv_x86_64
Undefined symbols for architecture x86_64:
  "CNetBan::CBanPool<NETADDR, 1>::Reset()", referenced from:
      ReloadBans() in mastersrv_x86_64.o
      _main in mastersrv_x86_64.o
  "CNetBan::CBanPool<CNetRange, 16>::Reset()", referenced from:
      ReloadBans() in mastersrv_x86_64.o
      _main in mastersrv_x86_64.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
bam: 'mastersrv_x86_64' error 256
[141/313] #1 c++ src/tools/tileset_borderset.cpp
[142/313] #1 link tileset_borderset_x86_64
[143/313] #1 c++ src/tools/tileset_borderrem.cpp
[144/313] #1 link tileset_borderrem_x86_64
[145/313] #1 c++ src/tools/tileset_borderfix.cpp
[146/313] #1 link tileset_borderfix_x86_64
[147/313] #1 c++ src/tools/tileset_borderadd.cpp
[148/313] #1 link tileset_borderadd_x86_64
[149/313] #1 c++ src/tools/packetgen.cpp
[150/313] #1 link packetgen_x86_64
[151/313] #1 c++ src/tools/map_version.cpp
[152/313] #1 link map_version_x86_64
[153/313] #1 c++ src/tools/map_resave.cpp
[154/313] #1 link map_resave_x86_64
[155/313] #1 c++ src/tools/fake_server.cpp
[156/313] #1 link fake_server_x86_64
[157/313] #1 c++ src/tools/dilate.cpp
[158/313] #1 link dilate_x86_64
[159/313] #1 c++ src/tools/crapnet.cpp
[160/313] #1 link crapnet_x86_64
[161/313] #1 c++ src/game/collision.cpp
[162/313] #1 c++ src/game/gamecore.cpp
[163/313] #1 c++ src/game/layers.cpp
[164/313] #1 c++ src/game/localization.cpp
[165/313] #1 c++ src/game/generated/nethash.cpp
[166/313] #1 c++ src/game/generated/protocol.cpp
[167/313] #1 c++ src/game/client/animstate.cpp
[168/313] #1 c++ src/game/client/components/binds.cpp
[169/313] #1 c++ src/game/client/components/broadcast.cpp
[170/313] #1 c++ src/game/client/components/camera.cpp
[171/313] #1 c++ src/game/client/components/chat.cpp
[172/313] #1 c++ src/game/client/components/console.cpp
[173/313] #1 c++ src/game/client/components/controls.cpp
[174/313] #1 c++ src/game/client/components/countryflags.cpp
[175/313] #1 c++ src/game/client/components/damageind.cpp
[176/313] #1 c++ src/game/client/components/debughud.cpp
[177/313] #1 c++ src/game/client/components/effects.cpp
[178/313] #1 c++ src/game/client/components/emoticon.cpp
[179/313] #1 c++ src/game/client/components/flow.cpp
[180/313] #1 c++ src/game/client/components/hud.cpp
[181/313] #1 c++ src/game/client/components/items.cpp
[182/313] #1 c++ src/game/client/components/killmessages.cpp
[183/313] #1 c++ src/game/client/components/mapimages.cpp
[184/313] #1 c++ src/game/client/components/maplayers.cpp
[185/313] #1 c++ src/game/client/components/menus.cpp
[186/313] #1 c++ src/game/client/components/menus_browser.cpp
[187/313] #1 c++ src/game/client/components/menus_demo.cpp
[188/313] #1 c++ src/game/client/components/menus_ingame.cpp
[189/313] #1 c++ src/game/client/components/menus_settings.cpp
[190/313] #1 c++ src/game/client/components/motd.cpp
[191/313] #1 c++ src/game/client/components/nameplates.cpp
[192/313] #1 c++ src/game/client/components/particles.cpp
[193/313] #1 c++ src/game/client/components/players.cpp
[194/313] #1 c++ src/game/client/components/scoreboard.cpp
[195/313] #1 c++ src/game/client/components/skins.cpp
[196/313] #1 c++ src/game/client/components/sounds.cpp
[197/313] #1 c++ src/game/client/components/spectator.cpp
[198/313] #1 c++ src/game/client/components/voting.cpp
[199/313] #1 c++ src/game/client/gameclient.cpp
[200/313] #1 c++ src/game/client/lineinput.cpp
[201/313] #1 c++ src/game/client/render.cpp
[202/313] #1 c++ src/game/client/render_map.cpp
[203/313] #1 c++ src/game/client/ui.cpp
[204/313] #1 c++ src/game/generated/client_data.cpp
[205/313] #1 c++ src/engine/shared/compression.cpp
[206/313] #1 c++ src/engine/shared/config.cpp
[207/313] #1 c++ src/engine/shared/console.cpp
[208/313] #1 c++ src/engine/shared/datafile.cpp
[209/313] #1 c++ src/engine/shared/demo.cpp
[210/313] #1 c++ src/engine/shared/econ.cpp
[211/313] #1 c++ src/engine/shared/engine.cpp
[212/313] #1 c++ src/engine/shared/filecollection.cpp
[213/313] #1 c++ src/engine/shared/huffman.cpp
[214/313] #1 c++ src/engine/shared/jobs.cpp
In file included from src/engine/shared/jobs.cpp:4:
src/engine/shared/jobs.h:13:12: warning: private field 'm_pPool' is not used
      [-Wunused-private-field]
        CJobPool *m_pPool;
                  ^
1 warning generated.
[215/313] #1 c++ src/engine/shared/kernel.cpp
[216/313] #1 c++ src/engine/shared/linereader.cpp
[217/313] #1 c++ src/engine/shared/map.cpp
[218/313] #1 c++ src/engine/shared/mapchecker.cpp
[219/313] #1 c++ src/engine/shared/masterserver.cpp
[220/313] #1 c++ src/engine/shared/memheap.cpp
src/engine/shared/memheap.cpp:6:18: warning: unused variable 'CHUNK_SIZE'
      [-Wunused-const-variable]
static const int CHUNK_SIZE = 1024*64;
                 ^
1 warning generated.
[221/313] #1 c++ src/engine/shared/netban.cpp
[222/313] #1 c++ src/engine/shared/network.cpp
[223/313] #1 c++ src/engine/shared/network_client.cpp
In file included from src/engine/shared/network_client.cpp:4:
src/engine/shared/network.h:337:10: warning: private field 'm_ServerAddr' is not
      used [-Wunused-private-field]
        NETADDR m_ServerAddr;
                ^
1 warning generated.
[224/313] #1 c++ src/engine/shared/network_conn.cpp
[225/313] #1 c++ src/engine/shared/network_console.cpp
[226/313] #1 c++ src/engine/shared/network_console_conn.cpp
[227/313] #1 c++ src/engine/shared/network_server.cpp
[228/313] #1 c++ src/engine/shared/packer.cpp
[229/313] #1 c++ src/engine/shared/ringbuffer.cpp
In file included from src/engine/shared/ringbuffer.cpp:5:
src/engine/shared/ringbuffer.h:25:8: warning: private field 'm_pMemory' is not
      used [-Wunused-private-field]
        void *m_pMemory;
              ^
1 warning generated.
[230/313] #1 c++ src/engine/shared/snapshot.cpp
[231/313] #1 c++ src/engine/shared/storage.cpp
[232/313] #1 c src/base/system.c
[233/313] #1 c++ src/engine/client/backend_sdl.cpp
[234/313] #1 c++ src/engine/client/client.cpp
In file included from src/engine/client/client.cpp:45:
src/engine/client/client.h:36:8: warning: private field 'm_RLast' is not used
      [-Wunused-private-field]
        int64 m_RLast;
              ^
src/engine/client/client.h:37:8: warning: private field 'm_TLast' is not used
      [-Wunused-private-field]
        int64 m_TLast;
              ^
2 warnings generated.
[235/313] #1 c++ src/engine/client/friends.cpp
[236/313] #1 c++ src/engine/client/graphics.cpp
[237/313] #1 c++ src/engine/client/graphics_threaded.cpp
[238/313] #1 c++ src/engine/client/input.cpp
[239/313] #1 c++ src/engine/client/serverbrowser.cpp
[240/313] #1 c++ src/engine/client/sound.cpp
[241/313] #1 c++ src/engine/client/text.cpp
[242/313] #1 c++ src/game/editor/auto_map.cpp
[243/313] #1 c++ src/game/editor/editor.cpp
[244/313] #1 c++ src/game/editor/io.cpp
[245/313] #1 c++ src/game/editor/layer_game.cpp
[246/313] #1 c++ src/game/editor/layer_quads.cpp
[247/313] #1 c++ src/game/editor/layer_tiles.cpp
[248/313] #1 c++ src/game/editor/popups.cpp
[249/313] #1 c src/engine/external/zlib/adler32.c
[250/313] #1 c src/engine/external/zlib/compress.c
[251/313] #1 c src/engine/external/zlib/crc32.c
[252/313] #1 c src/engine/external/zlib/deflate.c
[253/313] #1 c src/engine/external/zlib/infback.c
[254/313] #1 c src/engine/external/zlib/inffast.c
[255/313] #1 c src/engine/external/zlib/inflate.c
[256/313] #1 c src/engine/external/zlib/inftrees.c
[257/313] #1 c src/engine/external/zlib/trees.c
[258/313] #1 c src/engine/external/zlib/uncompr.c
[259/313] #1 c src/engine/external/zlib/zutil.c
[260/313] #1 c src/engine/external/pnglite/pnglite.c
[261/313] #1 c src/engine/external/wavpack/bits.c
[262/313] #1 c src/engine/external/wavpack/float.c
[263/313] #1 c src/engine/external/wavpack/metadata.c
[264/313] #1 c src/engine/external/wavpack/unpack.c
[265/313] #1 c src/engine/external/wavpack/words.c
[266/313] #1 c src/engine/external/wavpack/wputils.c
[267/313] #1 c src/osxlaunch/client.m
src/osxlaunch/client.m:216:21: warning: sending 'SDLMain *' to parameter of
      incompatible type 'id<NSFileManagerDelegate>'
        [NSApp setDelegate:sdlMain];
                           ^~~~~~~
/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:109:47: note:
      passing argument to parameter 'delegate' here
@property (assign) id <NSFileManagerDelegate> delegate NS_AVAILABLE(10_5, 2_0);
                                              ^
1 warning generated.
[268/313] #1 link teeworlds_x86
ld: warning: ignoring file /usr/local/Cellar/freetype/2.6_1/lib/libfreetype.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/Cellar/freetype/2.6_1/lib/libfreetype.dylib
Undefined symbols for architecture i386:
  "_FT_Get_First_Char", referenced from:
      CTextRender::InitIndex(CFont*, int) in text_x86.o
  "_FT_Get_Kerning", referenced from:
      CTextRender::TextEx(CTextCursor*, char const*, int) in text_x86.o
  "_FT_Get_Next_Char", referenced from:
      CTextRender::InitIndex(CFont*, int) in text_x86.o
  "_FT_Init_FreeType", referenced from:
      CTextRender::Init() in text_x86.o
  "_FT_Load_Char", referenced from:
      CTextRender::RenderGlyph(CFont*, CFontSizeData*, int) in text_x86.o
  "_FT_Load_Glyph", referenced from:
      CTextRender::InitIndex(CFont*, int) in text_x86.o
  "_FT_New_Face", referenced from:
      CTextRender::LoadFont(char const*) in text_x86.o
  "_FT_Set_Pixel_Sizes", referenced from:
      CTextRender::TextEx(CTextCursor*, char const*, int) in text_x86.o
      CTextRender::InitIndex(CFont*, int) in text_x86.o
      CTextRender::RenderGlyph(CFont*, CFontSizeData*, int) in text_x86.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
bam: 'teeworlds_x86' error 256
[269/313] #1 c src/osxlaunch/server.m
src/osxlaunch/server.m:93:23: warning: sending 'ServerView *' to parameter of
      incompatible type 'id<NSWindowDelegate>'
        [window setDelegate: view];
                             ^~~~
/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:307:41: note:
      passing argument to parameter 'delegate' here
@property (assign) id<NSWindowDelegate> delegate;
                                        ^
1 warning generated.
[270/313] #1 link serverlaunch_x86
[271/313] #1 c++ src/engine/server/register.cpp
[272/313] #1 c++ src/engine/server/server.cpp
src/engine/server/server.cpp:859:18: warning: comparison of unsigned expression
      < 0 is always false [-Wtautological-compare]
                                if(ChunkSize < 0)
                                   ~~~~~~~~~ ^ ~
1 warning generated.
[273/313] #1 c++ src/game/server/entities/character.cpp
src/game/server/entities/character.cpp:329:17: warning: unused variable 'pProj'
      [-Wunused-variable]
                        CProjectile *pProj = new CProjectile(GameWorld()...
                                     ^
src/game/server/entities/character.cpp:350:18: warning: unused variable 'pProj'
      [-Wunused-variable]
                                CProjectile *pProj = new CProjectile(Gam...
                                             ^
src/game/server/entities/character.cpp:363:17: warning: unused variable 'pProj'
      [-Wunused-variable]
                        CProjectile *pProj = new CProjectile(GameWorld()...
                                     ^
3 warnings generated.
[274/313] #1 c++ src/game/server/entities/flag.cpp
[275/313] #1 c++ src/game/server/entities/laser.cpp
[276/313] #1 c++ src/game/server/entities/pickup.cpp
[277/313] #1 c++ src/game/server/entities/projectile.cpp
[278/313] #1 c++ src/game/server/entity.cpp
[279/313] #1 c++ src/game/server/eventhandler.cpp
[280/313] #1 c++ src/game/server/gamecontext.cpp
[281/313] #1 c++ src/game/server/gamecontroller.cpp
[282/313] #1 c++ src/game/server/gamemodes/ctf.cpp
[283/313] #1 c++ src/game/server/gamemodes/dm.cpp
[284/313] #1 c++ src/game/server/gamemodes/mod.cpp
[285/313] #1 c++ src/game/server/gamemodes/tdm.cpp
[286/313] #1 c++ src/game/server/gameworld.cpp
[287/313] #1 c++ src/game/server/player.cpp
[288/313] #1 c++ src/game/generated/server_data.cpp
[289/313] #1 link teeworlds_srv_x86
[290/313] #1 c++ src/versionsrv/versionsrv.cpp
[291/313] #1 link versionsrv_x86
[292/313] #1 c++ src/mastersrv/mastersrv.cpp
[293/313] #1 link mastersrv_x86
Undefined symbols for architecture i386:
  "CNetBan::CBanPool<NETADDR, 1>::Reset()", referenced from:
      ReloadBans() in mastersrv_x86.o
      _main in mastersrv_x86.o
  "CNetBan::CBanPool<CNetRange, 16>::Reset()", referenced from:
      ReloadBans() in mastersrv_x86.o
      _main in mastersrv_x86.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
bam: 'mastersrv_x86' error 256
[294/313] #1 c++ src/tools/tileset_borderset.cpp
[295/313] #1 link tileset_borderset_x86
[296/313] #1 c++ src/tools/tileset_borderrem.cpp
[297/313] #1 link tileset_borderrem_x86
[298/313] #1 c++ src/tools/tileset_borderfix.cpp
[299/313] #1 link tileset_borderfix_x86
[300/313] #1 c++ src/tools/tileset_borderadd.cpp
[301/313] #1 link tileset_borderadd_x86
[302/313] #1 c++ src/tools/packetgen.cpp
[303/313] #1 link packetgen_x86
[304/313] #1 c++ src/tools/map_version.cpp
[305/313] #1 link map_version_x86
[306/313] #1 c++ src/tools/map_resave.cpp
[307/313] #1 link map_resave_x86
[308/313] #1 c++ src/tools/fake_server.cpp
[309/313] #1 link fake_server_x86
[310/313] #1 c++ src/tools/dilate.cpp
[311/313] #1 link dilate_x86
[312/313] #1 c++ src/tools/crapnet.cpp
[313/313] #1 link crapnet_x86
bam: error: a build step failed

4

Re: Compiling on Mac

So there are basically two errors:

#1

Undefined symbols for architecture x86_64:
  "CNetBan::CBanPool<NETADDR, 1>::Reset()", referenced from:
      ReloadBans() in mastersrv_x86_64.o
      _main in mastersrv_x86_64.o
  "CNetBan::CBanPool<CNetRange, 16>::Reset()", referenced from:
      ReloadBans() in mastersrv_x86_64.o
      _main in mastersrv_x86_64.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
bam: 'mastersrv_x86_64' error 256

You can pretty much ignore this one, except you really want to compile the masterserver. In this case you have to move the definition of UnbanAll() from the header to a sourcefile. Not sure why this has not been backported from 0.7, which already contains this fix.

#2

[268/313] #1 link teeworlds_x86
ld: warning: ignoring file /usr/local/Cellar/freetype/2.6_1/lib/libfreetype.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/Cellar/freetype/2.6_1/lib/libfreetype.dylib
Undefined symbols for architecture i386:
  "_FT_Get_First_Char", referenced from:
      CTextRender::InitIndex(CFont*, int) in text_x86.o
  "_FT_Get_Kerning", referenced from:
      CTextRender::TextEx(CTextCursor*, char const*, int) in text_x86.o
  "_FT_Get_Next_Char", referenced from:
      CTextRender::InitIndex(CFont*, int) in text_x86.o
  "_FT_Init_FreeType", referenced from:
      CTextRender::Init() in text_x86.o
  "_FT_Load_Char", referenced from:
      CTextRender::RenderGlyph(CFont*, CFontSizeData*, int) in text_x86.o
  "_FT_Load_Glyph", referenced from:
      CTextRender::InitIndex(CFont*, int) in text_x86.o
  "_FT_New_Face", referenced from:
      CTextRender::LoadFont(char const*) in text_x86.o
  "_FT_Set_Pixel_Sizes", referenced from:
      CTextRender::TextEx(CTextCursor*, char const*, int) in text_x86.o
      CTextRender::InitIndex(CFont*, int) in text_x86.o
      CTextRender::RenderGlyph(CFont*, CFontSizeData*, int) in text_x86.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
bam: 'teeworlds_x86' error 256

The other errors are the result of bam trying to compile a 32 AND a 64 bit version of teeworlds. But you have only installed the 64 bit libraries that are required for compiling. I guess you installed them via homebrew. I am not sure about homebrew but for macports there is an option to download/build also universal libraries for 32 and 64 bit versions (port install some-lib +universal). Most likely the 64 bit version will be sufficient for you anyways, so you could also tell bam to only compile that: bam release_x86_64

Luck is allowed

5

Re: Compiling on Mac

HMH wrote:

#1

Undefined symbols for architecture x86_64:
  "CNetBan::CBanPool<NETADDR, 1>::Reset()", referenced from:
      ReloadBans() in mastersrv_x86_64.o
      _main in mastersrv_x86_64.o
  "CNetBan::CBanPool<CNetRange, 16>::Reset()", referenced from:
      ReloadBans() in mastersrv_x86_64.o
      _main in mastersrv_x86_64.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
bam: 'mastersrv_x86_64' error 256

You can pretty much ignore this one, except you really want to compile the masterserver. In this case you have to move the definition of UnbanAll() from the header to a sourcefile. Not sure why this has not been backported from 0.7, which already contains this fix.

Where exactly should I move it?
Also, I tried to use 0.6.4 source and I got this:

release_x86_64
auto configuration

configuration:
AUTO  compiler             gcc
AUTO  stackprotector       yes
AUTO  minmacosxsdk         no
AUTO  macosxppc            no
AUTO  zlib                 (in system path)
AUTO  sdl                  using osx framework
AUTO  freetype             using freetype-config

notes:
saved configuration to 'config.lua'

[  1/160] #1 c++ src/tools/crapnet.cpp
[  2/160] #1 c++ src/engine/shared/compression.cpp
[  3/160] #1 c++ src/engine/shared/config.cpp
[  4/160] #1 c++ src/engine/shared/console.cpp
[  5/160] #1 c++ src/engine/shared/datafile.cpp
[  6/160] #1 c++ src/engine/shared/demo.cpp
[  7/160] #1 c++ src/engine/shared/econ.cpp
[  8/160] #1 c++ src/engine/shared/engine.cpp
[  9/160] #1 c++ src/engine/shared/filecollection.cpp
[ 10/160] #1 c++ src/engine/shared/huffman.cpp
[ 11/160] #1 c++ src/engine/shared/jobs.cpp
In file included from src/engine/shared/jobs.cpp:4:
src/engine/shared/jobs.h:13:12: warning: private field 'm_pPool' is not used [-Wunused-private-field]
        CJobPool *m_pPool;
                  ^
1 warning generated.
[ 12/160] #1 c++ src/engine/shared/kernel.cpp
[ 13/160] #1 c++ src/engine/shared/linereader.cpp
[ 14/160] #1 c++ src/engine/shared/map.cpp
[ 15/160] #1 c++ src/engine/shared/mapchecker.cpp
[ 16/160] #1 c++ src/engine/shared/masterserver.cpp
[ 17/160] #1 c++ src/engine/shared/memheap.cpp
src/engine/shared/memheap.cpp:6:18: warning: unused variable 'CHUNK_SIZE' [-Wunused-const-variable]
static const int CHUNK_SIZE = 1024*64;
                 ^
1 warning generated.
[ 18/160] #1 c++ src/engine/shared/netban.cpp
[ 19/160] #1 c++ src/engine/shared/network.cpp
[ 20/160] #1 c++ src/engine/shared/network_client.cpp
In file included from src/engine/shared/network_client.cpp:4:
src/engine/shared/network.h:337:10: warning: private field 'm_ServerAddr' is not used
      [-Wunused-private-field]
        NETADDR m_ServerAddr;
                ^
1 warning generated.
[ 21/160] #1 c++ src/engine/shared/network_conn.cpp
[ 22/160] #1 c++ src/engine/shared/network_console.cpp
[ 23/160] #1 c++ src/engine/shared/network_console_conn.cpp
[ 24/160] #1 c++ src/engine/shared/network_server.cpp
[ 25/160] #1 c++ src/engine/shared/packer.cpp
[ 26/160] #1 c++ src/engine/shared/ringbuffer.cpp
In file included from src/engine/shared/ringbuffer.cpp:5:
src/engine/shared/ringbuffer.h:25:8: warning: private field 'm_pMemory' is not used
      [-Wunused-private-field]
        void *m_pMemory;
              ^
1 warning generated.
[ 27/160] #1 c++ src/engine/shared/snapshot.cpp
[ 28/160] #1 c++ src/engine/shared/storage.cpp
[ 29/160] #1 c src/base/system.c
src/base/system.c:1810:2: warning: implicit declaration of function 'CreateStandardAlert' is invalid in
      C99 [-Wimplicit-function-declaration]
        CreateStandardAlert(kAlertStopAlert,
        ^
src/base/system.c:1816:2: warning: implicit declaration of function 'RunStandardAlert' is invalid in
      C99 [-Wimplicit-function-declaration]
        RunStandardAlert(theItem, NULL, &itemIndex);
        ^
2 warnings generated.
[ 30/160] #1 c src/engine/external/zlib/adler32.c
[ 31/160] #1 c src/engine/external/zlib/compress.c
[ 32/160] #1 c src/engine/external/zlib/crc32.c
[ 33/160] #1 c src/engine/external/zlib/deflate.c
[ 34/160] #1 c src/engine/external/zlib/infback.c
[ 35/160] #1 c src/engine/external/zlib/inffast.c
[ 36/160] #1 c src/engine/external/zlib/inflate.c
[ 37/160] #1 c src/engine/external/zlib/inftrees.c
[ 38/160] #1 c src/engine/external/zlib/trees.c
[ 39/160] #1 c src/engine/external/zlib/uncompr.c
[ 40/160] #1 c src/engine/external/zlib/zutil.c
[ 41/160] #1 c src/engine/external/pnglite/pnglite.c
[ 42/160] #1 link crapnet_x86_64
[ 43/160] #1 c++ src/tools/dilate.cpp
[ 44/160] #1 link dilate_x86_64
[ 45/160] #1 c++ src/tools/fake_server.cpp
[ 46/160] #1 link fake_server_x86_64
[ 47/160] #1 c++ src/tools/map_resave.cpp
[ 48/160] #1 link map_resave_x86_64
[ 49/160] #1 c++ src/tools/map_version.cpp
[ 50/160] #1 link map_version_x86_64
[ 51/160] #1 c++ src/tools/packetgen.cpp
[ 52/160] #1 link packetgen_x86_64
[ 53/160] #1 c++ src/tools/tileset_borderadd.cpp
[ 54/160] #1 link tileset_borderadd_x86_64
[ 55/160] #1 c++ src/tools/tileset_borderfix.cpp
[ 56/160] #1 link tileset_borderfix_x86_64
[ 57/160] #1 c++ src/tools/tileset_borderrem.cpp
[ 58/160] #1 link tileset_borderrem_x86_64
[ 59/160] #1 c++ src/tools/tileset_borderset.cpp
[ 60/160] #1 link tileset_borderset_x86_64
[ 61/160] #1 c++ src/mastersrv/mastersrv.cpp
[ 62/160] #1 link mastersrv_x86_64
Undefined symbols for architecture x86_64:
  "CNetBan::CBanPool<NETADDR, 1>::Reset()", referenced from:
      ReloadBans() in mastersrv_x86_64.o
      _main in mastersrv_x86_64.o
  "CNetBan::CBanPool<CNetRange, 16>::Reset()", referenced from:
      ReloadBans() in mastersrv_x86_64.o
      _main in mastersrv_x86_64.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
bam: 'mastersrv_x86_64' error 256
[ 63/160] #1 network_header > src/game/generated/protocol.h
[ 64/160] #1 cmd5 src/game/generated/nethash.cpp
[ 65/160] #1 c++ src/versionsrv/versionsrv.cpp
[ 66/160] #1 link versionsrv_x86_64
[ 67/160] #1 c++ src/engine/server/register.cpp
[ 68/160] #1 c++ src/engine/server/server.cpp
src/engine/server/server.cpp:859:18: warning: comparison of unsigned expression < 0 is always false
      [-Wtautological-compare]
                                if(ChunkSize < 0)
                                   ~~~~~~~~~ ^ ~
1 warning generated.
[ 69/160] #1 c++ src/game/collision.cpp
[ 70/160] #1 c++ src/game/gamecore.cpp
[ 71/160] #1 c++ src/game/layers.cpp
[ 72/160] #1 c++ src/game/localization.cpp
[ 73/160] #1 c++ src/game/generated/nethash.cpp
[ 74/160] #1 network_source > src/game/generated/protocol.cpp
[ 75/160] #1 c++ src/game/generated/protocol.cpp
[ 76/160] #1 server_content_header > src/game/generated/server_data.h
[ 77/160] #1 c++ src/game/server/entities/character.cpp
src/game/server/entities/character.cpp:329:17: warning: unused variable 'pProj' [-Wunused-variable]
                        CProjectile *pProj = new CProjectile(GameWorld(), WEAPON_GUN,
                                     ^
src/game/server/entities/character.cpp:350:18: warning: unused variable 'pProj' [-Wunused-variable]
                                CProjectile *pProj = new CProjectile(GameWorld(), WEAPON_SHOTGUN,
                                             ^
src/game/server/entities/character.cpp:363:17: warning: unused variable 'pProj' [-Wunused-variable]
                        CProjectile *pProj = new CProjectile(GameWorld(), WEAPON_GRENADE,
                                     ^
3 warnings generated.
[ 78/160] #1 c++ src/game/server/entities/flag.cpp
[ 79/160] #1 c++ src/game/server/entities/laser.cpp
[ 80/160] #1 c++ src/game/server/entities/pickup.cpp
[ 81/160] #1 c++ src/game/server/entities/projectile.cpp
[ 82/160] #1 c++ src/game/server/entity.cpp
[ 83/160] #1 c++ src/game/server/eventhandler.cpp
[ 84/160] #1 c++ src/game/server/gamecontext.cpp
[ 85/160] #1 c++ src/game/server/gamecontroller.cpp
[ 86/160] #1 c++ src/game/server/gamemodes/ctf.cpp
[ 87/160] #1 c++ src/game/server/gamemodes/dm.cpp
[ 88/160] #1 c++ src/game/server/gamemodes/mod.cpp
[ 89/160] #1 c++ src/game/server/gamemodes/tdm.cpp
[ 90/160] #1 c++ src/game/server/gameworld.cpp
[ 91/160] #1 c++ src/game/server/player.cpp
[ 92/160] #1 server_content_source > src/game/generated/server_data.cpp
[ 93/160] #1 c++ src/game/generated/server_data.cpp
[ 94/160] #1 link teeworlds_srv_x86_64
[ 95/160] #1 c src/osxlaunch/server.m
src/osxlaunch/server.m:93:23: warning: sending 'ServerView *' to parameter of incompatible type
      'id<NSWindowDelegate>'
        [window setDelegate: view];
                             ^~~~
/System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h:307:41: note: passing argument to
      parameter 'delegate' here
@property (assign) id<NSWindowDelegate> delegate;
                                        ^
1 warning generated.
[ 96/160] #1 link serverlaunch_x86_64
[ 97/160] #1 client_content_header > src/game/generated/client_data.h
[ 98/160] #1 c++ src/game/client/animstate.cpp
[ 99/160] #1 c++ src/game/client/components/binds.cpp
[100/160] #1 c++ src/game/client/components/broadcast.cpp
[101/160] #1 c++ src/game/client/components/camera.cpp
[102/160] #1 c++ src/game/client/components/chat.cpp
[103/160] #1 c++ src/game/client/components/console.cpp
[104/160] #1 c++ src/game/client/components/controls.cpp
[105/160] #1 c++ src/game/client/components/countryflags.cpp
[106/160] #1 c++ src/game/client/components/damageind.cpp
[107/160] #1 c++ src/game/client/components/debughud.cpp
[108/160] #1 c++ src/game/client/components/effects.cpp
[109/160] #1 c++ src/game/client/components/emoticon.cpp
[110/160] #1 c++ src/game/client/components/flow.cpp
[111/160] #1 c++ src/game/client/components/hud.cpp
[112/160] #1 c++ src/game/client/components/items.cpp
[113/160] #1 c++ src/game/client/components/killmessages.cpp
[114/160] #1 c++ src/game/client/components/mapimages.cpp
[115/160] #1 c++ src/game/client/components/maplayers.cpp
[116/160] #1 c++ src/game/client/components/menus.cpp
[117/160] #1 c++ src/game/client/components/menus_browser.cpp
[118/160] #1 c++ src/game/client/components/menus_demo.cpp
[119/160] #1 c++ src/game/client/components/menus_ingame.cpp
[120/160] #1 c++ src/game/client/components/menus_settings.cpp
[121/160] #1 c++ src/game/client/components/motd.cpp
[122/160] #1 c++ src/game/client/components/nameplates.cpp
[123/160] #1 c++ src/game/client/components/particles.cpp
[124/160] #1 c++ src/game/client/components/players.cpp
[125/160] #1 c++ src/game/client/components/scoreboard.cpp
[126/160] #1 c++ src/game/client/components/skins.cpp
[127/160] #1 c++ src/game/client/components/sounds.cpp
[128/160] #1 c++ src/game/client/components/spectator.cpp
[129/160] #1 c++ src/game/client/components/voting.cpp
[130/160] #1 c++ src/game/client/gameclient.cpp
[131/160] #1 c++ src/game/client/lineinput.cpp
[132/160] #1 c++ src/game/client/render.cpp
[133/160] #1 c++ src/game/client/render_map.cpp
[134/160] #1 c++ src/game/client/ui.cpp
[135/160] #1 client_content_source > src/game/generated/client_data.cpp
[136/160] #1 c++ src/game/generated/client_data.cpp
[137/160] #1 c++ src/engine/client/backend_sdl.cpp
[138/160] #1 c++ src/engine/client/client.cpp
In file included from src/engine/client/client.cpp:45:
src/engine/client/client.h:36:8: warning: private field 'm_RLast' is not used [-Wunused-private-field]
        int64 m_RLast;
              ^
src/engine/client/client.h:37:8: warning: private field 'm_TLast' is not used [-Wunused-private-field]
        int64 m_TLast;
              ^
2 warnings generated.
[139/160] #1 c++ src/engine/client/friends.cpp
[140/160] #1 c++ src/engine/client/graphics.cpp
[141/160] #1 c++ src/engine/client/graphics_threaded.cpp
[142/160] #1 c++ src/engine/client/input.cpp
[143/160] #1 c++ src/engine/client/serverbrowser.cpp
[144/160] #1 c++ src/engine/client/sound.cpp
[145/160] #1 c++ src/engine/client/text.cpp
[146/160] #1 c++ src/game/editor/auto_map.cpp
[147/160] #1 c++ src/game/editor/editor.cpp
[148/160] #1 c++ src/game/editor/io.cpp
[149/160] #1 c++ src/game/editor/layer_game.cpp
[150/160] #1 c++ src/game/editor/layer_quads.cpp
[151/160] #1 c++ src/game/editor/layer_tiles.cpp
[152/160] #1 c++ src/game/editor/popups.cpp
[153/160] #1 c src/engine/external/wavpack/bits.c
[154/160] #1 c src/engine/external/wavpack/float.c
[155/160] #1 c src/engine/external/wavpack/metadata.c
[156/160] #1 c src/engine/external/wavpack/unpack.c
[157/160] #1 c src/engine/external/wavpack/words.c
[158/160] #1 c src/engine/external/wavpack/wputils.c
[159/160] #1 c src/osxlaunch/client.m
src/osxlaunch/client.m:216:21: warning: sending 'SDLMain *' to parameter of incompatible type
      'id<NSFileManagerDelegate>'
        [NSApp setDelegate:sdlMain];
                           ^~~~~~~
/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:109:47: note: passing argument
      to parameter 'delegate' here
@property (assign) id <NSFileManagerDelegate> delegate NS_AVAILABLE(10_5, 2_0);
                                              ^
1 warning generated.
[160/160] #1 link teeworlds_x86_64
bam: error: a build step failed

6

Re: Compiling on Mac

Nice, everything except compiling masterserver works for you now.

Here is the commit for 0.7 that fixes compiling masterserver: https://github.com/teeworlds/teeworlds/ … 7fa31394b0
Basically just moving the definition of UnbanAll() to netban.cpp.

Btw.: There is also: client_release(_x86_64) and server_release(_x86_64) .

Luck is allowed

7

Re: Compiling on Mac

HMH wrote:

Nice, everything except compiling masterserver works for you now.

Here is the commit for 0.7 that fixes compiling masterserver: https://github.com/teeworlds/teeworlds/ … 7fa31394b0
Basically just moving the definition of UnbanAll() to netban.cpp.

Btw.: There is also: client_release(_x86_64) and server_release(_x86_64) .

Thanks for help.
Also, when I am trying to compile other client, I am getting these errors: use of undeclared identifier 'aBuf' ; use of undeclared identifier 'SIGSTKFLT' ; use of undeclared identifier 'log_queue'
How do I fix them?

8

Re: Compiling on Mac

It is about impossible to help you if you do not provide the sourcecode. It looks like there are some bugs in the source you are using.

Luck is allowed

9

Re: Compiling on Mac

HMH wrote:

It is about impossible to help you if you do not provide the sourcecode. It looks like there are some bugs in the source you are using.

Yeah, here it is: *snip*
I don't wanna use cheats, I just wanna try something on empty server.

Link to cheat client removed // heinrich5991

10

Re: Compiling on Mac

Linking to cheat clients is forbidden in this forum. Closed.