Skip to content
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

Can't install the package on Windows #1

Open
ChunyangCLi opened this issue May 29, 2015 · 9 comments
Open

Can't install the package on Windows #1

ChunyangCLi opened this issue May 29, 2015 · 9 comments

Comments

@ChunyangCLi
Copy link

I was able to use openCV through visual studio 2012, so I think my openCV is correctly installed. Is there any settings I need to change in R to connect it with openCV? Below is the part of the error messages I get.

Video.cpp:3:33: fatal error: opencv2/core/core.hpp: No such file or directory
compilation terminated.
make: *** [Video.o] Error 1

Thank you!

@sjmgarnier
Copy link
Member

@ChunyangCLi It is normal unfortunately. I never got the chance (and time) to make a Windows compatible version of the package. It is one of my goals for the summer.

@ChunyangCLi
Copy link
Author

Thank you for the reply. I just want to install the package and see how you connect R with openCV and call the functions in openCV. Is there any tips for connecting R with openCV and use the functions there? I didn't really find much helpful information online, since not many people are trying to do image processing in R.
Thank you very much! I appreciate your help!!

@sjmgarnier
Copy link
Member

@ChunyangCLi My problem is that I don't know how to configure the Makevars.win file in the src folder to make R find the OpenCV files on Windows (I don't have a Windows computer). On Mac and Linux, I use pkg-config to automatically find the location of OpenCV, but I don't know the equivalent for Windows (if there is such a thing).

How did you configure your compiler to use OpenCV with VisualStudio? This might help me configure Makevars.win appropriately.

@ChunyangCLi
Copy link
Author

Here is the instruction:
http://docs.opencv.org/doc/tutorials/introduction/windows_visual_studio_Opencv/windows_visual_studio_Opencv.html
So it's just changing some VisualStudio settings, not sure whether it would be helpful here for you though.
Have you ever looked at this package?
https://code.google.com/p/r-opencv/
I didn't make it work and didn't understand why..

@sjmgarnier
Copy link
Member

@ChunyangCLi Thanks. I got my hands on a Windows computer. I'll try to make the package work as soon as I can (which might not be before several weeks unfortunately).

Yes, I've seen this package before but never manage to make it work either. It's partly why I decided to implement my own wrapper for OpenCV.

@sjmgarnier sjmgarnier changed the title Can't install the package Can't install the package on Windows Sep 12, 2015
@masterchief23
Copy link

Hello I just want to ask. How is the package for windows going ?
it would be very helpful for me, and for others, I believe.

@sjmgarnier
Copy link
Member

@masterchief23 I have stopped developing videoplayR. Instead, I have created two libraries to replace it:

  1. ROpenCVLite: this library downloads, compiles, and installs OpenCV within the R library in a standardized location across Mac, Windows, and Linux. It doesn't provide any computer vision functions directly, but allows developers to create packages using OpenCV without having to worry about the platform of the end-user.
  2. Rvision: this library depends on ROpenCVLite and provides computer vision functions somewhat similar to the discontinued videoplayR package.

Besides making sure that OpenCV is installed in a standardized location across platforms, this new organization also allows updating Rvision frequently without having to recompile OpenCV every time, like it was happening with videoplayR (ROpenCVLite needs reinstalling only when a new release of OpenCV becomes available).

I recommend that you try out the two new packages instead (they should both install fine on Windows), and report bugs, feature requests, and comments on their respective repository. I don't have much time at the moment to push their development, but it'll be helpful to know what people have a need for when I get back to it.

Cheers,
Simon

@englianhu
Copy link

I tried to install videoplayR, Rvision and also ROpenCVLite, all installation failed.

@sjmgarnier
Copy link
Member

@englianhu videoplayR is not being developed anymore. Please post your issue on the ROpenCVLite repository. Make sure to include your operating system version as well as the error message that you receive when the installation fails.

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

No branches or pull requests

4 participants