Skip to content
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

Build a bigger size for Windows 10 #87

Closed
qo4on opened this issue Aug 2, 2022 · 5 comments
Closed

Build a bigger size for Windows 10 #87

qo4on opened this issue Aug 2, 2022 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@qo4on
Copy link

qo4on commented Aug 2, 2022

I am trying to create a version of Monterey cursors for Windows with size 48 in Colab:

!git clone https://github.com/ful1e5/apple_cursor.git
%cd /content/apple_cursor
!make windows WIN_SIZE=48

But I get an error:

make[1]: Entering directory '/content/apple_cursor/bitmapper'
make[1]: yarn: Command not found
Makefile:13: recipe for target 'install' failed
make[1]: *** [install] Error 127
make[1]: Leaving directory '/content/apple_cursor/bitmapper'
Makefile:10: recipe for target 'render' failed
make: *** [render] Error 2

Does anyone know how to fix this?

@qo4on qo4on added the bug Something isn't working label Aug 2, 2022
@ful1e5
Copy link
Owner

ful1e5 commented Aug 3, 2022

It seems there is yarn and other dependencies are missing, which you will find in the readme#dependencies.

Note that you have to install both dependencies; external and build.

@qo4on
Copy link
Author

qo4on commented Aug 3, 2022

It still doesn't work.

!sudo apt install libx11-dev libxcursor-dev libpng-dev
!curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
!echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
!sudo apt update && sudo apt install yarn
!npm cache clean -f
!npm install -g n
!sudo n stable
!npm i puppeteer
!git clone https://github.com/ful1e5/apple_cursor.git
%cd /content/apple_cursor
!make windows WIN_SIZE=48
make[1]: Entering directory '/content/apple_cursor/bitmapper'
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[] 0/84[] 4/84[] 7/84[] 10/84[] 14/84[] 17/84[] 20/84[] 21/84[] 24/84[] 28/84[] 32/84[] 33/84[] 36/84[] 39/84[] 42/84[] 47/84[] 51/84[] 55/84[] 59/84[] 64/84[] 68/84[] 74/84[] 78/84[] 82/84[3/4] Linking dependencies...
warning "workspace-aggregator-08c210e6-19a7-469c-8517-1e5f0f6636dd > bigsur > ts-node@10.7.0" has unmet peer dependency "@types/node@*".
[] 84/84[] 0/83[] 3/83[] 0/1432[] 162/1432[] 443/1432[] 671/1432[] 756/1432[] 757/1432[] 881/1432[] 1091/1432[] 1379/1432[] 0/165[] 144/165[4/4] Building fresh packages...
[] 165/165success Saved lockfile.
Done in 12.20s.
yarn run v1.22.19
$ yarn workspace bigsur render
$ yarn build && node dist/index.js
$ npx tsc --build
Generating bitmaps for macOSBigSur
/content/apple_cursor/bitmapper/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:241
            reject(new Error([
                   ^

Error: Failed to launch the browser process!
src/tcmalloc.cc:283] Attempt to free invalid pointer 0x28000020c5a0 


TROUBLESHOOTING: https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md

    at onClose (/content/apple_cursor/bitmapper/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:241:20)
    at Interface.<anonymous> (/content/apple_cursor/bitmapper/node_modules/puppeteer/lib/cjs/puppeteer/node/BrowserRunner.js:231:68)
    at Interface.emit (node:events:539:35)
    at Interface.close (node:readline:586:8)
    at Socket.onend (node:readline:277:10)
    at Socket.emit (node:events:539:35)
    at endReadableNT (node:internal/streams/readable:1345:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed.
Exit code: 1
Command: /usr/local/bin/node
Arguments: /usr/share/yarn/lib/cli.js render
Directory: /content/apple_cursor/bitmapper/packages/bigsur
Output:

info Visit https://yarnpkg.com/en/docs/cli/workspace for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Makefile:16: recipe for target 'render_bigsur' failed
make[1]: *** [render_bigsur] Error 1
make[1]: Leaving directory '/content/apple_cursor/bitmapper'
Makefile:10: recipe for target 'render' failed
make: *** [render] Error 2

@qo4on
Copy link
Author

qo4on commented Aug 4, 2022

Can someone post cursors in resolution 48? The code from this repository doesn't work for me, I can't create it myself.
This code probably does not work through vps without a physical monitor.

@qo4on
Copy link
Author

qo4on commented Aug 5, 2022

Thank you!
I found several bugs in the Monterey cursors.

  1. Shouldn't default and alternate be mirrored copies of each other? They are different at the moment.
    image

  2. The first 2 frames of Busy and Work cursors are duplicates. They are exactly the same. The angle between the first and the last frames is much greater than average. Both cursors are rotating in the wrong direction.
    image

Cursors don't look clear.

@ful1e5 ful1e5 self-assigned this Aug 6, 2022
@ful1e5 ful1e5 closed this as completed in 665c488 Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants