-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMake problem while installing ROpenCVLite #42
Comments
@jubelik Can you try with the latest version that I pushed on the main branch last week? This is the version that should fix definitely the issue we were discussing on the trackR repo. You can install it with: remotes::install_github("swarm-lab/ROpenCVLite") Note that with this new version, the installation of Cmake is not required anymore for R >= 4.2 since it is included in Rtools now. |
I have the same error. remotes::install_github("swarm-lab/ROpenCVLite") 1: All Enter one or more numbers, or an empty line to skip updates: 1 package ‘cli’ successfully unpacked and MD5 sums checked The downloaded binary packages are in Warning: package ‘ROpenCVLite’ is in use and will not be installed
1: yes Selection: yes trying URL 'https://github.com/opencv/opencv_contrib/archive/4.8.0.tar.gz' CMake Warning: "C:/Program Files/Files/rtools43/x86_64-w64-mingw32.static.posix/bin/gcc.exe" CMake Warning: "Files/rtools43/usr/bin/make.exe" -- The CXX compiler identification is unknown
is not a full path to an existing compiler tool. Tell CMake where to find the compiler by setting either the environment CMake Error at CMakeLists.txt:113 (enable_language):
is not a full path to an existing compiler tool. Tell CMake where to find the compiler by setting either the environment -- Configuring incomplete, errors occurred! |
@jubelik Actually, I see what the problem is now. You have installed Rtools in I can see if I can find a workaround for non-standard installation of Rtools but that may take me a few days before I get there. |
Even if I install RTools in C:, the installation still doesn't work. remotes::install_github("swarm-lab/ROpenCVLite@85a94ef", force = TRUE) 1: All Enter one or more numbers, or an empty line to skip updates: 3 Installing package into ‘C:/Users/jbelik/AppData/Local/R/win-library/4.3’
1: yes Selection: yes trying URL 'https://github.com/opencv/opencv_contrib/archive/4.8.0.tar.gz' -- The CXX compiler identification is GNU 12.3.0
-- Configuring incomplete, errors occurred! |
@jubelik What's the output of |
platform x86_64-w64-mingw32 |
@jubelik By any chance, is your antivirus (Windows Defender or other) throwing a fit just before this happens? |
BTW, I also pushed a quick and dirty fix for the non-standard installation path of Rtools. You should be able to test it with: remotes::install_github("swarm-lab/ROpenCVLite@develop") |
No it is not, sorry. |
1: All Enter one or more numbers, or an empty line to skip updates: 1 package ‘cli’ successfully unpacked and MD5 sums checked The downloaded binary packages are in Warning: package ‘ROpenCVLite’ is in use and will not be installed |
@jubelik This looks like an issue with your running R session. Something is held up somewhere. You need to restart R. |
@jubelik If that still doesn't work, you can contact me at [email protected] and I can jump on a quick call in the next 30 minutes or so. Might be easier to figure out the issue. |
I have to go to another meeting, but if it is still not working in the next few days I'll contact you. |
Describe the bug
When I run ROpenCVLite::installOpenCV(), I have error about the path of CMake.
(following issues 36 on TrackR)
To Reproduce
Here is the code I'm using
if (!require("installr"))
install.packages("installr")
installr::install.Rtools()
installr::install.CMake()
remotes::install_github("swarm-lab/ROpenCVLite@85a94ef")
ROpenCVLite::installOpenCV()
OpenCV is not installed on this system. Would you like to install it now? This will take several minutes.
1: yes
2: no
Selection: yes
OpenCV will be installed in C:\Users\jbelik\AppData\Local\R\win-library\4.3\ROpenCV
Clearing install path.
trying URL 'https://github.com/opencv/opencv/archive/4.8.0.tar.gz'
downloaded 87.7 MB
trying URL 'https://github.com/opencv/opencv_contrib/archive/4.8.0.tar.gz'
downloaded 56.5 MB
CMake Warning:
Ignoring extra path from command line:
"C:/Program Files/Files/rtools43/x86_64-w64-mingw32.static.posix/bin/gcc.exe"
CMake Warning:
Ignoring extra path from command line:
"Files/rtools43/usr/bin/make.exe"
-- The CXX compiler identification is unknown
-- The C compiler identification is unknown
CMake Error at CMakeLists.txt:113 (enable_language):
The CMAKE_CXX_COMPILER:
is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:113 (enable_language):
The CMAKE_C_COMPILER:
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/jbelik/AppData/Local/Temp/Rtmp8kV4Ls/opencv-4.8.0/build64/CMakeFiles/CMakeOutput.log".
See also "C:/Users/jbelik/AppData/Local/Temp/Rtmp8kV4Ls/opencv-4.8.0/build64/CMakeFiles/CMakeError.log".
[1] FALSE
Expected behavior
Computer (please complete the following information):
R (please complete the following information):
Additional context
I kown the error message is pretty self explanotory, but I can't figure out how to solve the issue. I've never code on Windows so it is kinda new.
Thanks a lot
The text was updated successfully, but these errors were encountered: