-
Notifications
You must be signed in to change notification settings - Fork 1
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
Building Feelix2.0 in dev mode on M1 Mac #1
Comments
Did you start the application with 'npm run electron'? npm run package-mac is used to package the app after building it to create an installer Furthermore there might be issues with 'closed-chain-ik' which I installed locally and I haven't updated it on github, I wanted to remove this part for you in a clean branch, but if you want to try to run it you can download it here: https://github.com/gkjohnson/closed-chain-ik-js |
I did try to start locally with nom run electron but it gave me an error. Hold on I'll post it, it's another architecture compatibility warning. |
chunk {main} main.js, main.js.map (main) 1.05 MB [initial] [rendered] |
What version of electron do you have installed?
|
Following the directives it does the same, Error: dlopen(/Users/miu/Feelix_Proj/Feelix2.0/node_modules/@serialport/bindings/build/Release/bindings.node, 0x0001): tried: '/Users/miu/Feelix_Proj/Feelix2.0/node_modules/@serialport/bindings/build/Release/bindings.node' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/miu/Feelix_Proj/Feelix2.0/node_modules/@serialport/bindings/build/Release/bindings.node' (no such file), '/Users/miu/Feelix_Proj/Feelix2.0/node_modules/@serialport/bindings/build/Release/bindings.node' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64')) |
I got it finally, I had to add the most recent version of serialport in the package (10.4.0) as it add support for m1 |
@ankevanoosterhout @Maxw3llGM I have proposed pull request #3 to fix some installation errors (destination branch: https://github.com/ankevanoosterhout/Feelix2.0/tree/GSoC_Dev_Branch). Two more comments:
could be simplified directly into:
? |
Awesome, this looks great, thanks @ChristianFrisson! I never thought about optimizing this part of the code.., but this would make it a lot more user friendly :) |
@ankevanoosterhout @Maxw3llGM Following up over there ankevanoosterhout/Feelix2Dev#1 ! |
Hello, so I have gone through the process of compiling the code on the M1 Mac and had to manage package issue.
I'll detail the changes I needed to do in order for this to work.
First of all Python 3.11 and higher does not function as gyp throws:
build_file_contents = open(build_file_path, 'rU').read() as an issue since 'rU' as a argument is deprecated in 3.11
To install developer mode
First make sure that the proper angular/cli and node is installed
npm install -g @angular/cli
nvm install 14.19.1
--legacy-peer-deps might need added if you have newer versions of some of the dependencies.
npm install --legacy-peer-deps --python=python3.10
next following the directives in the /dev branch, of deleting some files,
electron@11 needs to be declared as any newer version will be incompatible
npm install electron@11 --legacy-peer-deps --python=python@3.10
./node_modules/.bin/electron-rebuild
Once done, running locally did not work and needs to be further looked into, however compiling with
npm run package-mac
works and returns an x64 app for apple that will run in rossetta
TODO: Potentially update packages in order to attain arm64 architecture compatibility.
The text was updated successfully, but these errors were encountered: