Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Install under R 3.4.1 fails #8

Open
Aylon1 opened this issue Nov 5, 2017 · 3 comments
Open

Install under R 3.4.1 fails #8

Aylon1 opened this issue Nov 5, 2017 · 3 comments

Comments

@Aylon1
Copy link

Aylon1 commented Nov 5, 2017

Hi,

Is there any trick to install the package on Win 10 Pro? I tried, but get compile errors on the easywsclient.cpp?

Many thanks for your advice.

Thorsten

install_github("ropenscilabs/webrockets")
Downloading GitHub repo ropenscilabs/webrockets@master
from URL https://api.github.com/repos/ropenscilabs/webrockets/zipball/master
Installing webrockets
"C:/PROGRA~1/R/R-34~1.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL "C:/Users/XXXX  \
  /AppData/Local/Temp/RtmpmAE3th/devtools312853a43d9f/ropenscilabs-webrockets-4a4f3eb" --library="Z:/_Documents  \
  XXXX/R/win-library/3.4" --install-tests 

* installing *source* package 'webrockets' ...
** libs

*** arch - i386
C:/RBuildTools/3.4/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.1/include" -DNDEBUG -I../inst/include -I . -I"Z:/_DocumentsXXXX/R/win-library/3.4/Rcpp/include"   -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -mtune=core2 -c RcppExports.cpp -o RcppExports.o
C:/RBuildTools/3.4/mingw_32/bin/g++  -std=gnu++11 -I"C:/PROGRA~1/R/R-34~1.1/include" -DNDEBUG -I../inst/include -I . -I"Z:/_DocumentsXXXX/R/win-library/3.4/Rcpp/include"   -I"d:/Compiler/gcc-4.9.3/local330/include"     -O2 -Wall  -mtune=core2 -c easywsclient.cpp -o easywsclient.o
easywsclient.cpp:12:0: warning: ignoring #pragma comment  [-Wunknown-pragmas]
     #pragma comment( lib, "ws2_32" )
 ^
In file included from C:/PROGRA~1/R/R-34~1.1/include/R.h:91:0,
                 from Z:/_Documents Thorsten/R/win-library/3.4/Rcpp/include/Rcpp/r/headers.h:52,
                 from Z:/_Documents Thorsten/R/win-library/3.4/Rcpp/include/RcppCommon.h:29,
                 from Z:/_Documents Thorsten/R/win-library/3.4/Rcpp/include/Rcpp.h:27,
                 from easywsclient.cpp:74:
C:/PROGRA~1/R/R-34~1.1/include/R_ext/RS.h:55:0: warning: "ERROR" redefined
 #define ERROR   ),error(R_problem_buf);}
 ^
In file included from C:/RBuildTools/3.4/mingw_32/i686-w64-mingw32/include/windows.h:71:0,
                 from C:/RBuildTools/3.4/mingw_32/i686-w64-mingw32/include/WinSock2.h:23,
                 from easywsclient.cpp:10:
C:/RBuildTools/3.4/mingw_32/i686-w64-mingw32/include/wingdi.h:75:0: note: this is the location of the previous definition
 #define ERROR 0
 ^
In file included from C:/RBuildTools/3.4/mingw_32/lib/gcc/i686-w64-mingw32/4.9.3/include/stdint.h:9:0,
                 from C:/RBuildTools/3.4/mingw_32/i686-w64-mingw32/include/c++/cstdint:41,
                 from C:/RBuildTools/3.4/mingw_32/i686-w64-mingw32/include/c++/bits/char_traits.h:380,
                 from C:/RBuildTools/3.4/mingw_32/i686-w64-mingw32/include/c++/string:40,
                 from easywsclient.cpp:73:
C:/RBuildTools/3.4/mingw_32/i686-w64-mingw32/include/stdint.h:35:21: error: conflicting declaration 'typedef signed char int8_t'
 typedef signed char int8_t;
                     ^
easywsclient.cpp:33:24: note: previous declaration as 'typedef char int8_t'
         typedef __int8 int8_t;
                        ^
make: *** [easywsclient.o] Error 1
Warning: running command 'make -f "Makevars" -f "C:/PROGRA~1/R/R-34~1.1/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-34~1.1/share/make/winshlib.mk" CXX='$(CXX11) $(CXX11STD)' CXXFLAGS='$(CXX11FLAGS)' CXXPICFLAGS='$(CXX11PICFLAGS)' SHLIB_LDFLAGS='$(SHLIB_CXX11LDFLAGS)' SHLIB_LD='$(SHLIB_CXX11LD)' SHLIB="webrockets.dll" OBJECTS="RcppExports.o easywsclient.o main.o"' had status 2
ERROR: compilation failed for package 'webrockets'
* removing 'Z:/_DocumentsXXXX/R/win-library/3.4/webrockets'
@hack-r
Copy link

hack-r commented Oct 1, 2018

I also have this problem with R 3.5

@kmaheshkulkarni
Copy link

I also face this issue in 3.5.2

@MilesMcBain
Copy link
Contributor

Hi all, thanks for your interest. Neither @AliciaSchep or I are maintaining this moving forward. I'll add a badge to the README indicating this.

There is actually quite good support for websockets in R coming from: https://github.com/rstudio/websocket now. I've been using this for my latest work with websockets and it's held up really well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants