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

building error: 'cvMatBGRToImageRGBA': is not a member of 'aliceVision::image' #1338

Closed
RufinoN opened this issue Jan 20, 2023 · 3 comments · Fixed by #1341
Closed

building error: 'cvMatBGRToImageRGBA': is not a member of 'aliceVision::image' #1338

RufinoN opened this issue Jan 20, 2023 · 3 comments · Fixed by #1341

Comments

@RufinoN
Copy link

RufinoN commented Jan 20, 2023

Hello,
when i build Alice vision using Visual studio 17 2022 i get the following errors:

image

seems like I'm missing some code?

@cbentejac
Copy link
Contributor

Hi @RufinoN,

Have you enabled OpenCV in your cmake command? You can do so by adding -DALICEVISION_USE_OPENCV=ON to the cmake command you used to generate the Visual Studio solution.

The functions you're showing need it to compile.

@RufinoN
Copy link
Author

RufinoN commented Jan 23, 2023

GREAT!, thanks that works!!

@RufinoN RufinoN closed this as completed Jan 23, 2023
@simogasp
Copy link
Member

Maybe we should include

#include <aliceVision/config.hpp>

at the top of https://github.com/alicevision/AliceVision/blob/develop/src/aliceVision/image/convertionOpenCV.hpp without relying on other includes to import the macro ALICEVISION_IS_DEFINED

simogasp added a commit that referenced this issue Jan 23, 2023
@simogasp simogasp linked a pull request Jan 23, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants