swarm-lab / ROpenCVLite

Utility package to install OpenCV in R
https://swarm-lab.github.io/ROpenCVLite/
GNU General Public License v3.0
53 stars 17 forks source link

RopenCVLite showing installation error. #11

Closed mallick84 closed 6 years ago

mallick84 commented 6 years ago

Hi, I am using Rstudio 3.5.1. 64 bit on window 7. My cmake version is 3.12.2. While installing cmake I have added to my path. Installing RopenCVLite I have found following error

`source("https://neuroconductor.org/neurocLite.R") neuro_install('ROpenCVLite', release = "stable", release_repo = "github")

opencv-3.4.0/samples/wp8/readme.txt

CMake Error at CMakeLists.txt:117 (project): The CMAKE_C_COMPILER:

C:/Rtools/mingw_64/bin/gcc.exe

is not a full path to an existing compiler tool.

Tell CMake where to find the compiler by setting either the environment variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH.

-- Configuring incomplete, errors occurred! See also "C:/Users/dell/AppData/Local/Temp/RtmpIxnXKm/devtools1f206403159f/neuroconductor-ROpenCVLite-9354d11/inst/tmp/opencv-3.4.0/build64/CMakeFiles/CMakeOutput.log". See also "C:/Users/dell/AppData/Local/Temp/RtmpIxnXKm/devtools1f206403159f/neuroconductor-ROpenCVLite-9354d11/inst/tmp/opencv-3.4.0/build64/CMakeFiles/CMakeError.log". ERROR: configuration failed for package 'ROpenCVLite'

Please provide me with some suggestion link

sjmgarnier commented 6 years ago

@mallick84 Looks like you didn't install Rtools.

mallick84 commented 6 years ago

yes, I have installed Rtools. find_rtools() # should be TRUE, assuming you have Rtools 3.5 [1] TRUE

mallick84 commented 6 years ago

find_rtools() # should be TRUE, assuming you have Rtools 3.5 [1] TRUE

sjmgarnier commented 6 years ago

@mallick84 Where is it installed? ROpenCVLite looks for it at C:/Rtools. If it's installed anywhere else, the package won't find it (at least at the moment).

mallick84 commented 6 years ago

@sjmgarnier , Thank you for your reply. I will check it and reply soon.

mallick84 commented 6 years ago

@sjmgarnier, Thank you. I was trying this for one week. I thought it might be the problem of cmake installation which is not able to find the compiler.

with your suggestion, I could able to solve the issue.

Yes, it was the problem of Rtools installation. Actually in my path, one more previously installed Rtools was available, which was creating problems.

What did I do? First I uninstall the Rtools and then deletes all the Rtools history files from the C drive. I delete also the Rtools path of the previous version, Then I install freshly Rtools 3.4 and I chose the location as C:Rtools.

I restart R and then I could able to install RopenCVLite.

Thank you @sjmgarnier .