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

Installation error and a non-empty 'configure.win' file? #14

Closed andburch closed 5 years ago

andburch commented 5 years ago

Okay, although I have successfully installed ROpenCVLite on my laptop, I can't seem to get it on the university desktop.

I have Windows 10 and R version 3.5.2, 64-bit, with CMake 3.13.2 and RTools 3.4.

Also, I don't seem to have any spaces in the file paths either, just FYI.

Here's the tail end of my output where the error seems to occur:

. . .
-- Could NOT find BLAS (missing: BLAS_LIBRARIES) 
-- LAPACK requires BLAS
-- A library with LAPACK API not found. Please specify library location.
-- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 
-- Could NOT find Matlab (missing: MATLAB_MEX_SCRIPT MATLAB_INCLUDE_DIRS MATLAB_LIBRARIES MATLAB_LIBRARY_DIRS MATLAB_MEXEXT MATLAB_ARCH MATLAB_BIN) 
-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
-- Excluding from source files list: modules/core/src/convert.avx2.cpp
-- Excluding from source files list: modules/imgproc/src/filter.avx2.cpp
-- Excluding from source files list: modules/imgproc/src/imgwarp.avx2.cpp
-- Excluding from source files list: modules/imgproc/src/resize.avx2.cpp
-- Excluding from source files list: modules/imgproc/src/undistort.avx2.cpp
-- Excluding from source files list: modules/features2d/src/fast.avx2.cpp
-- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL
-- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL - Success
-- 
-- General configuration for OpenCV 3.4.3 =====================================
--   Version control:               unknown
-- 
--   Platform:
--     Timestamp:                   2019-01-08T17:06:44Z
--     Host:                        Windows 10.0.16299 AMD64
--     CMake:                       3.13.2
--     CMake generator:             Unix Makefiles
--     CMake build tool:            C:/Rtools/bin/make.exe
--     Configuration:               RELEASE
-- 
--   CPU/HW features:
--     Baseline:                    SSE SSE2
--       requested:                 SSE2
--     Dispatched code generation:  SSE4_1 SSE4_2 FP16 AVX
--       requested:                 SSE4_1 SSE4_2 AVX FP16
--       SSE4_1 (3 files):          + SSE3 SSSE3 SSE4_1
--       SSE4_2 (1 files):          + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2
--       FP16 (1 files):            + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
--       AVX (4 files):             + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 AVX
-- 
--   C/C++:
--     Built as dynamic libs?:      YES
--     C++11:                       YES
--     C++ Compiler:                C:/Rtools/mingw_32/bin/g++.exe  (ver 4.9.3)
--     C++ flags (Release):         -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
--     C++ flags (Debug):           -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
--     C Compiler:                  C:/Rtools/mingw_32/bin/gcc.exe
--     C flags (Release):           -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG
--     C flags (Debug):             -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG
--     Linker flags (Release):      -Wl,--gc-sections  
--     Linker flags (Debug):        -Wl,--gc-sections  
--     ccache:                      NO
--     Precompiled headers:         NO
--     Extra dependencies:
--     3rdparty dependencies:
-- 
--   OpenCV modules:
--     To be built:                 calib3d core features2d flann highgui imgcodecs imgproc java_bindings_generator ml objdetect photo python_bindings_generator shape stitching superres video videoio videostab
--     Disabled:                    js world
--     Disabled by dependency:      -
--     Unavailable:                 cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev dnn java python2 python3 ts viz
--     Applications:                apps
--     Documentation:               NO
--     Non-free algorithms:         NO
-- 
--   Windows RT support:            NO
-- 
--   GUI: 
--     Win32 UI:                    YES
--     VTK support:                 NO
-- 
--   Media I/O: 
--     ZLib:                        build (ver 1.2.11)
--     JPEG:                        build-libjpeg-turbo (ver 1.5.3-62)
--     WEBP:                        build (ver encoder: 0x020e)
--     PNG:                         build (ver 1.6.34)
--     TIFF:                        build (ver 42 - 4.0.9)
--     JPEG 2000:                   build (ver 1.900.1)
--     OpenEXR:                     build (ver 1.7.1)
--     HDR:                         YES
--     SUNRASTER:                   YES
--     PXM:                         YES
-- 
--   Video I/O:
--     Video for Windows:           YES
--     DC1394:                      NO
--     FFMPEG:                      YES (prebuilt binaries)
--       avcodec:                   YES (ver 57.107.100)
--       avformat:                  YES (ver 57.83.100)
--       avutil:                    YES (ver 55.78.100)
--       swscale:                   YES (ver 4.8.100)
--       avresample:                YES (ver 3.7.0)
--     GStreamer:                   NO
--     DirectShow:                  YES
-- 
--   Parallel framework:            none
-- 
--   Trace:                         YES (built-in)
-- 
--   Other third-party libraries:
--     Lapack:                      NO
--     Eigen:                       NO
--     Custom HAL:                  NO
-- 
--   OpenCL:                        YES (no extra features)
--     Include path:                C:/Users/aburchil/AppData/Local/Temp/Rtmp8EImGs/R.INSTALL4daa84f6c7d25/ROpenCVLite/src/opencv-3.4.3/3rdparty/include/opencl/1.2
--     Link libraries:              Dynamic load
-- 
--   Python (for build):            C:/Program Files/Python27/python.exe
-- 
--   Java:                          
--     ant:                         NO
--     JNI:                         NO
--     Java wrappers:               NO
--     Java tests:                  NO
-- 
--   Matlab:                        NO
-- 
--   Install to:                    C:/Users/aburchil/AppData/Local/Temp/Rtmp8EImGs/R.INSTALL4daa84f6c7d25/ROpenCVLite/inst/opencv
-- -----------------------------------------------------------------
-- 
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/aburchil/AppData/Local/Temp/Rtmp8EImGs/R.INSTALL4daa84f6c7d25/ROpenCVLite/src/opencv-3.4.3/build32
+ cd ../
+ mkdir ../../inst/opencv
** libs
Error: (converted from warning) this package has a non-empty 'configure.win' file,
so building only the main architecture
* removing 'C:/Users/aburchil/Documents/R/win-library/3.5/ROpenCVLite'
In R CMD INSTALL
Error in i.p(...) : 
  (converted from warning) installation of package ‘C:/Users/aburchil/AppData/Local/Temp/RtmpumCjrd/file1b294652c3520/ROpenCVLite_0.1.34.3.tar.gz’ had non-zero exit status
sjmgarnier commented 5 years ago

@andburch Looks like the bug is with R 3.5.2 only. I can reproduce it with 3.5.2, but everything seems to go well with 3.5.1. I'll need to examine the cause of this problem under 3.5.2, but in the meantime, you should be able to install ROpenCVLite if you revert back to 3.5.1 or earlier (which I suspect is what your laptop is running).

andburch commented 5 years ago

Sweet. I was actually mid 3.5.1 download when I saw your response. The installation has already passed where it failed last time, at least!

That's so frustrating that small stupid updates to R can cause this much damage...

sjmgarnier commented 5 years ago

Closed by https://github.com/swarm-lab/ROpenCVLite/commit/345e4a485c51284035d5616533e299279aded22a and https://github.com/swarm-lab/ROpenCVLite/commit/6043f41a935bde0aa330a2e84d93a44cf1dab842.

maalid commented 5 years ago

Had the same problem installing Rvision under Windows 10, R version 3.6.1 (2019-07-05), 64-bit, with CMake 3.14.5 and RTools 3.5.

Just for the records (in case someone else have this problem), I installed it using (https://github.com/kthohr/BMR/issues/34)

install_github("swarm-lab/Rvision", ref = "v0.3.5", INSTALL_opts="--no-multiarch")

and the problem is solved!