Skip to content

Can't install on Linux #12

@ramiromagno

Description

@ramiromagno
> remotes::install_github("jeroenjanssens/raylibr")
Downloading GitHub repo jeroenjanssens/raylibr@HEAD
── R CMD build ──────────────────────────────────────────────────────────────────────────────────────────────
✔  checking for file ‘/tmp/RtmpvHoidc/remotesb5a67e2f297b/jeroenjanssens-raylibr-9a2f3af/DESCRIPTION’ ...
─  preparing ‘raylibr’:
✔  checking DESCRIPTION meta-information ...
─  cleaning src
─  checking for LF line-endings in source and make files and shell scripts (357ms)
─  checking for empty or unneeded directories
─  building ‘raylibr_4.0.0.9001.tar.gz’
   
Installing package into ‘/home/rmagno/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
* installing *source* package ‘raylibr’ ...
** using staged installation
** libs
g++ -std=gnu++14 -I"/usr/include/R/" -DNDEBUG -I../inst/include -I'/home/rmagno/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -ffat-lto-objects  -c RcppExports.cpp -o RcppExports.o
g++ -std=gnu++14 -I"/usr/include/R/" -DNDEBUG -I../inst/include -I'/home/rmagno/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -ffat-lto-objects  -c all.cpp -o all.o
g++ -std=gnu++14 -I"/usr/include/R/" -DNDEBUG -I../inst/include -I'/home/rmagno/R/x86_64-pc-linux-gnu-library/4.2/Rcpp/include' -I/usr/local/include   -fpic  -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -flto=auto -ffat-lto-objects  -c rcolors.cpp -o rcolors.o
(cd ../inst; tar -xf raylib-4.0.0-modified.tar.gz)
(cd ../inst/raylib-4.0.0-modified/src; make PLATFORM=PLATFORM_DESKTOP)
make[1]: Entering directory '/tmp/RtmpOdlbGB/R.INSTALLb6c15a27094/raylibr/inst/raylib-4.0.0-modified/src'
gcc -c rcore.c -Wall -D_DEFAULT_SOURCE -Wno-missing-braces -Werror=pointer-arith -fno-strict-aliasing -std=c99 -fPIC -s -O1 -Werror=implicit-function-declaration -I. -Iexternal/glfw/include -Iexternal/glfw/deps/mingw -I/usr/lib64/R/include -DPLATFORM_DESKTOP -DGRAPHICS_API_OPENGL_33
rcore.c:114:10: fatal error: R_ext/Error.h: No such file or directory
  114 | #include "R_ext/Error.h" // For Rf_error() which replaces abort()
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [Makefile:553: rcore.o] Error 1
make[1]: Leaving directory '/tmp/RtmpOdlbGB/R.INSTALLb6c15a27094/raylibr/inst/raylib-4.0.0-modified/src'
make: *** [Makevars:17: raylib] Error 2
ERROR: compilation failed for package ‘raylibr’
* removing ‘/home/rmagno/R/x86_64-pc-linux-gnu-library/4.2/raylibr’
Warning message:
In i.p(...) :
  installation of package ‘/tmp/RtmpvHoidc/fileb5a620d20a01/raylibr_4.0.0.9001.tar.gz’ had non-zero exit status

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions