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

macos fix for github action: downgrade freetype to install 'ragg' and install binary 'units' #85

Merged
merged 12 commits into from
Sep 1, 2024

Conversation

kevinrue
Copy link
Owner

No description provided.

@kevinrue kevinrue changed the title macos fix for github action: downgrade freetype and install binary 'units' macos fix for github action: downgrade freetype to install 'ragg' and install binary 'units' Aug 31, 2024
@kevinrue
Copy link
Owner Author

Error ragg

clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I./agg/include -I/opt/homebrew/opt/freetype/include/freetype2 -I/opt/homebrew/opt/libpng/include/libpng16 -I/opt/homebrew/Cellar/libtiff/4.6.0/include -I/opt/homebrew/opt/zstd/include -I/opt/homebrew/Cellar/xz/5.6.2/include -I/opt/homebrew/Cellar/jpeg-turbo/3.0.3/include -I'/Users/runner/work/_temp/Library/systemfonts/include' -I'/Users/runner/work/_temp/Library/textshaping/include' -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2   -c agg/src/agg_font_freetype.cpp -o agg/src/agg_font_freetype.o
agg/src/agg_font_freetype.cpp:116:18: warning: variable 'len' set but not used [-Wunused-but-set-variable]
        unsigned len = 0; 
                 ^
agg/src/agg_font_freetype.cpp:182:35: error: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not
            tags  = outline.tags  + first;
                    ~~~~~~~~~~~~~~^~~~~~~
1 warning and 1 error generated.
make: *** [agg/src/agg_font_freetype.o] Error 1
ERROR: compilation failed for package ‘ragg’

Fix : r-lib/ragg#170


udunits2misses the shared object file (from Brew and compile manually) to the only solution is to get the binary

@kevinrue kevinrue merged commit 08a5447 into devel Sep 1, 2024
6 checks passed
@kevinrue kevinrue deleted the kra-freetype branch September 1, 2024 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant