ermig1979 / Simd

C++ image processing and machine learning library with using of SIMD: SSE, AVX, AVX-512, AMX for x86/x64, VMX(Altivec) and VSX(Power7) for PowerPC, NEON for ARM.
http://ermig1979.github.io/Simd
MIT License
2.04k stars 407 forks source link

SIMD_OPENCV_ENABLE issue #168

Closed ArttuLe closed 3 years ago

ArttuLe commented 3 years ago

Hello,

I'm trying to use the library with OpenCV on a Jetson Nano project of mine, but when I define the OPENCV_ENABLE macro I get undefined references to all my OpenCV functions.

The tests run successfully after building the library, and I get no errors regarding not linking the library properly etc. when I have the macro undefined, but when I define the macro, I get the undefined references. Do you know what might be causing it?

Thanks in advance.

ermig1979 commented 3 years ago

Hello. Did you add linker reference in the your project to OpenCV library? The macro OPENCV ENABLE enables code of interaction between Simd and OpenCV and requires additional references to OpenCV for linker.

ArttuLe commented 3 years ago

No i didn't, Now it's working.

Thank you!