nx10 / httpgd

Asynchronous http server graphics device for R.
https://nx10.github.io/httpgd
GNU General Public License v2.0
368 stars 19 forks source link

Cannot install latest httpgd under Ubuntu #109

Closed renkun-ken closed 1 year ago

renkun-ken commented 2 years ago

I installed libtiff-dev but the following error occurs when I install the latest master branch of httpgd under Ubuntu:

Using github PAT from envvar GITHUB_PAT
Downloading GitHub repo nx10/httpgd@HEAD

* checking for file ‘/tmp/RtmpTpnlVR/remotes10b6165bf9276/nx10-httpgd-16871f7/DESCRIPTION’ ... OK
* preparing ‘httpgd’:
* checking DESCRIPTION meta-information ... OK
* cleaning src
* checking for LF line-endings in source and make files and shell scripts
* checking for empty or unneeded directories
* building ‘httpgd_1.3.0.tar.gz’
Warning: file 'httpgd/cleanup' did not have execute permissions: corrected

Installing package into '/home/ken/R/x86_64-pc-linux-gnu-library/4.1'
(as 'lib' is unspecified)
* installing *source* package 'httpgd' ...
** using staged installation
Found pkg-config cflags and libs!
Using PKG_CFLAGS=-I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16
Using PKG_LIBS=-lcairo -lfreetype
** libs
rm -f httpgd.so Base64.o DrawData.o Httpgd.o HttpgdApiAsync.o HttpgdCompress.o HttpgdDataStore.o HttpgdDev.o HttpgdRng.o HttpgdWebServer.o PlotHistory.o RThread_posix.o RThread_win32.o RendererCairo.o RendererJson.o RendererManager.o RendererMeta.o RendererStrings.o RendererSvg.o RendererTikZ.o cpp11.o devGeneric.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/BH/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c Base64.cpp -o Base64.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/BH/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c DrawData.cpp -o DrawData.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/BH/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c Httpgd.cpp -o Httpgd.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/BH/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c HttpgdApiAsync.cpp -o HttpgdApiAsync.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/BH/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c HttpgdCompress.cpp -o HttpgdCompress.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/BH/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c HttpgdDataStore.cpp -o HttpgdDataStore.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/BH/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c HttpgdDev.cpp -o HttpgdDev.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/BH/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c HttpgdRng.cpp -o HttpgdRng.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/BH/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c HttpgdWebServer.cpp -o HttpgdWebServer.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/BH/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c PlotHistory.cpp -o PlotHistory.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/BH/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c RThread_posix.cpp -o RThread_posix.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/BH/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c RThread_win32.cpp -o RThread_win32.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/BH/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c RendererCairo.cpp -o RendererCairo.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/BH/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c RendererJson.cpp -o RendererJson.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/BH/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c RendererManager.cpp -o RendererManager.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/BH/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c RendererMeta.cpp -o RendererMeta.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/BH/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c RendererStrings.cpp -o RendererStrings.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/BH/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c RendererSvg.cpp -o RendererSvg.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/BH/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c RendererTikZ.cpp -o RendererTikZ.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/BH/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c cpp11.cpp -o cpp11.o
g++ -std=gnu++17 -I"/usr/share/R/include" -DNDEBUG -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -Ilib -DBOOST_NO_AUTO_PTR -DFMT_HEADER_ONLY -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/cpp11/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/BH/include' -I'/home/ken/R/x86_64-pc-linux-gnu-library/4.1/systemfonts/include'    -fpic  -g -O2 -fdebug-prefix-map=/build/r-base-NlA7dw/r-base-4.1.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g  -c devGeneric.cpp -o devGeneric.o
In file included from RendererCairo.cpp:10:0:
/usr/include/x86_64-linux-gnu/tiffio.hxx:37:8: error: ‘TIFF’ does not name a type; did you mean ‘_TIFF_’?
 extern TIFF* TIFFStreamOpen(const char*, std::ostream *);
        ^~~~
        _TIFF_
/usr/include/x86_64-linux-gnu/tiffio.hxx:38:8: error: ‘TIFF’ does not name a type; did you mean ‘_TIFF_’?
 extern TIFF* TIFFStreamOpen(const char*, std::istream *);
        ^~~~
        _TIFF_
RendererCairo.cpp: In member function ‘virtual void httpgd::dc::RendererCairoTiff::render(const httpgd::dc::Page&, double)’:
RendererCairo.cpp:474:9: error: ‘TIFF’ was not declared in this scope
         TIFF* tiff = TIFFStreamOpen("memory", &tiff_ostream); // filename is ignored
         ^~~~
RendererCairo.cpp:474:9: note: suggested alternative: ‘_TIFF_’
         TIFF* tiff = TIFFStreamOpen("memory", &tiff_ostream); // filename is ignored
         ^~~~
         _TIFF_
RendererCairo.cpp:474:15: error: ‘tiff’ was not declared in this scope
         TIFF* tiff = TIFFStreamOpen("memory", &tiff_ostream); // filename is ignored
               ^~~~
RendererCairo.cpp:474:15: note: suggested alternative: ‘time’
         TIFF* tiff = TIFFStreamOpen("memory", &tiff_ostream); // filename is ignored
               ^~~~
               time
RendererCairo.cpp:474:22: error: ‘TIFFStreamOpen’ was not declared in this scope
         TIFF* tiff = TIFFStreamOpen("memory", &tiff_ostream); // filename is ignored
                      ^~~~~~~~~~~~~~
RendererCairo.cpp:474:22: note: suggested alternative: ‘TIFFDataType’
         TIFF* tiff = TIFFStreamOpen("memory", &tiff_ostream); // filename is ignored
                      ^~~~~~~~~~~~~~
                      TIFFDataType
RendererCairo.cpp:476:9: error: ‘TIFFSetField’ was not declared in this scope
         TIFFSetField(tiff, TIFFTAG_IMAGEWIDTH, width);
         ^~~~~~~~~~~~
RendererCairo.cpp:487:50: error: ‘TIFFDefaultStripSize’ was not declared in this scope
         TIFFSetField(tiff, TIFFTAG_ROWSPERSTRIP, TIFFDefaultStripSize(tiff, width * argb_size));
                                                  ^~~~~~~~~~~~~~~~~~~~
RendererCairo.cpp:498:16: error: ‘TIFFWriteScanline’ was not declared in this scope
            if (TIFFWriteScanline(tiff, line.data(), row) < 0)
                ^~~~~~~~~~~~~~~~~
RendererCairo.cpp:504:9: error: ‘TIFFClose’ was not declared in this scope
         TIFFClose(tiff);
         ^~~~~~~~~
/usr/lib/R/etc/Makeconf:177: recipe for target 'RendererCairo.o' failed
make: *** [RendererCairo.o] Error 1
make: *** Waiting for unfinished jobs....
ERROR: compilation failed for package 'httpgd'
* removing '/home/ken/R/x86_64-pc-linux-gnu-library/4.1/httpgd'
* restoring previous '/home/ken/R/x86_64-pc-linux-gnu-library/4.1/httpgd'
Warning message:
In i.p(...) :
  installation of package '/tmp/RtmpTpnlVR/file10b617f08c421/httpgd_1.3.0.tar.gz' had non-zero exit status

My session info

R version 4.1.3 (2022-03-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.6 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.2.20.so

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] compiler_4.1.3
nx10 commented 2 years ago

Should be working now. After a long fight with the build system and linker I have disabled TIFF support for now. I will re-enable it in the future with the new architecture.

nx10 commented 1 year ago

Let me know if this is still happening with the current development version, then I will re-open.