mas-bandwidth / yojimbo

A network library for client/server games written in C++
BSD 3-Clause "New" or "Revised" License
2.45k stars 238 forks source link

Building.md instructions not working for m1 mac #188

Closed matthewperiut closed 8 months ago

matthewperiut commented 1 year ago

I attempted to clone and compile Yojimbo, and it failed, but I'm not sure why. I would appreciate help figuring out my issue. I have the pastebin of terminal logs here: https://pastebin.com/BEzmZraj Although, important to note I am using an aarch64 M1 Pro. I'm not sure why make isn't recognizing mbedtls and libsodium, but any help is appreciated!

Bowedyapper commented 1 year ago

It is probably due to Homebrew keeping libraries and include files in /opt/homebrew as opposed to usr/local so it might be worth trying to use the environment variables clang look for to set an include and library path like so:

export LIBRARY_PATH=/opt/homebrew/lib && export C_INCLUDE_PATH=/opt/homebrew/include && make all
matthewperiut commented 1 year ago

It is probably due to Homebrew keeping libraries and include files in /opt/homebrew as opposed to usr/local so it might be worth trying to use the environment variables clang look for to set an include and library path like so:

export LIBRARY_PATH=/opt/homebrew/lib && export C_INCLUDE_PATH=/opt/homebrew/include && make all

I attempted it and it still didn't work. I appreciate the sugguestion.

gafferongames commented 8 months ago

I'm working on this now, the dependencies on sodium and mbedtls have been removed.