Closed gaospecial closed 1 year ago
The log is:
> pak::pak("r-lib/ragg") ! Using bundled GitHub PAT. Please add your own PAT using `gitcreds::gitcreds_set()`. ✔ Loading metadata database ... done → Will install 1 package. → The package (0 B) is cached. + ragg 1.2.5.9000 [bld][cmp] (GitHub: b926382) + ✔ libfreetype6-dev, ✔ libjpeg-dev, ✔ libpng-dev, ✔ libtiff-dev ✔ All system requirements are already installed. ℹ No downloads are needed, 1 pkg is cached ℹ Building ragg 1.2.5.9000 ✖ Failed to build ragg 1.2.5.9000 Error: ! error in pak subprocess Caused by error in `stop_task_build(state, worker)`: ! Failed to build source package 'ragg' Full installation output: * installing *source* package ‘ragg’ ... staged installation is only possible with locking ** using non-staged installation Found pkg-config cflags and libs! Using PKG_CFLAGS=-I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu Using PKG_LIBS=-lfreetype -lpng16 -lz -ltiff -ljpeg -ljpeg ** libs using C++ compiler: ‘g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0’ using C++11 g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -I./agg/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/x86_64-linux-gnu -I'/home/gaoch/R/x86_64-pc-linux-gnu-library/4.3/systemfonts/include' -I'/home/gaoch/R/x86_64-pc-linux-gnu-library/4.3/textshaping/include' -fpic -g -O2 -ffile-prefix-map=/build/r-base-MHXHhT/r-base-4.3.1=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -pedantic -fdiagnostics-color=always -c capture_dev.cpp -o capture_dev.o In file included from AggDevice.h:5 from AggDeviceCapture.h:4 from capture_dev.cpp:4 text_renderer.h:136:15:error: textshaping not declared in this scope 136 | std::vector<textshapingnt> loc_buffer; | ^~~~~~~~~~~ text_renderer.h:136:33:error: ate argument 1 is invalid 136 | std::vector<textshaping::Point>buffer; | ^ text_renderer.h:136:33:error: mplate argument 2 is invalid text_renderer.h:n member function ‘double TextRenderer<PIXFMT>::get_text_width(const char*) text_renderer.h:181:17:error: textshaping not been declared 181 | int error = textshapinging_width( | ^~~~~~~~~~~ text_renderer.h:n member function ‘void TextRenderer<PIXFMT>::plot_text(double, double, const char*, double, double, renderer_solid&, renderer&, scanline&, unsigned int, raster&, bool, agg::path_storage*) text_renderer.h:246:16:error: quest for member ‘reservein ‘((TextRenderer<PIXFMT>*)this)->TextRenderer<PIXFMT>::loc_buffer which is of non-class type ‘int 246 | loc_buffer.reservected_max); | ^~~~~~~ text_renderer.h:253:15:error: textshaping not been declared 253 | int err = textshapinging_shape( | ^~~~~~~~~~~ text_renderer.h:271:31:error: quest for member ‘sizein ‘((TextRenderer<PIXFMT>*)this)->TextRenderer<PIXFMT>::loc_buffer which is of non-class type ‘int 271 | int n_glyphs = loc_buffer.size | ^~~~ text_renderer.h:304:43:error: valid types ‘int[int] array subscript 304 | double x_offset = loc_buffer[* cos_rot + loc_buffer[i].y * sin_rot; | ^ text_renderer.h:304:71:error: valid types ‘int[int] array subscript 304 | double x_offset = loc_buffer[i].x * cos_rot + loc_buffer[* sin_rot; | ^ text_renderer.h:305:43:error: valid types ‘int[int] array subscript 305 | double y_offset = loc_buffer[* cos_rot + loc_buffer[i].x * sin_rot; | ^ text_renderer.h:305:71:error: valid types ‘int[int] array subscript 305 | double y_offset = loc_buffer[i].y * cos_rot + loc_buffer[* sin_rot; | ^ make: *** [/usr/lib/R/etc/Makeconf:200: capture_dev.o] Error 1 ERROR: compilation failed for package ‘ragg’ * removing ‘/tmp/RtmpewCM1i/pkg-lib10fda2c8e024f/ragg’ Type .Last.error to see the more details.
The log is: