-
-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix MacOS M1 and M2 builds, Maybe link zlib and libuv statically in macOS #34
Comments
@seanr3 I'm trying to fix the build for Apple Silicon, today i will fix that, sorry for the delay, but now is the priority. |
Related issues: Possible solution: |
Yup same here. |
Still trying to figure it out an pre-build for Apple Silicon, but for now the only way is building from source, github has a roadmap to include M1 powered runners and an paid version is available from CirrusLabs but is just too expensive for this project at this stage (without more funding or customers), I'm also checking the possibility of using macOS M1 from AWS to build this, and checking an way to statically link cross compiled libuv and zlib for M1, i think that in this week (or even today) i can fix the build Manual build: brew install libuv
brew install zlib
brew install libuv --HEAD
brew install zlib --HEAD
#clone and update submodules
git clone https://github.com/cirospaciari/socketify.py.git
cd ./socketify.py
git submodule update --init --recursive --remote
cd ./src/socketify/native/ && make macos-arm64 && cd ../../../
#install local pip
python3 -m pip install . |
@seanr3 Good news, i created an new process to cross-compile libuv statically using cmake and things worked here! No need to build manually anymore. Please uninstall and reinstall again pip uninstall socketify
# or
python3 -m pip uninstall socketify pip install git+https://github.com/cirospaciari/socketify.py.git
# or
python3 -m pip install git+https://github.com/cirospaciari/socketify.py.git Please reopen this issue if you got some other type of errors. |
Works! Thank you. |
Add zlib and libuv statically instead of dynamically linked, this will avoid problems with people that don't run.
or
Discussion: #10 (reply in thread)
(Should fix arm m2)
The text was updated successfully, but these errors were encountered: