Ask Your Question
0

Linking error carotene Opencv 3.2 on ARM

asked 2017-01-30 10:36:02 -0600

cedricverst gravatar image

Hey

I have succesfully build OpenCV 3.2.0 on an ARM device. However when linking my binary I got exceptions from carotene.

split.cpp:(.text._ZN2cv3hal7split8uEPKhPPhii+0x18): undefined reference to `carotene_o4t::isSupportedConfiguration()'
split.cpp:(.text._ZN2cv3hal7split8uEPKhPPhii+0x1ec): undefined reference to `carotene_o4t::split2(carotene_o4t::Size2D const&, unsigned char const*, int, unsigned char*, int, unsigned char*, int)'
split.cpp:(.text._ZN2cv3hal7split8uEPKhPPhii+0x2b4): undefined reference to `carotene_o4t::split4(carotene_o4t::Size2D const&, unsigned char const*, int, unsigned char*, int, unsigned char*, int, unsigned char*, int, unsigned char*, int)'

Am I missing a library?

Cédric

edit retag flag offensive close merge delete

Comments

Carotene is a Nvidia library for ARM platform. Maybe you could try to disable Carotene if your device is not a Nvidia ARM architecture?

Eduardo gravatar imageEduardo ( 2017-01-30 11:47:55 -0600 )edit

Well i'm building it for an ARM device, though the OpenCV library is compiled correctly. I think I'm just missing to include a library for linking?

cedricverst gravatar imagecedricverst ( 2017-01-30 12:01:29 -0600 )edit

How do you use OpenCV? From cmake, pkg-config or manually? Did you build static libraries?

mshabunin gravatar imagemshabunin ( 2017-02-17 04:34:12 -0600 )edit

1 answer

Sort by » oldest newest most voted
0

answered 2017-02-15 06:37:50 -0600

rhardih gravatar image

You're probably missing a link to libtegra_hal.a. In my case OpenCV builds and installs to: platforms/build_android_arm/install, so the lib is located at platforms/build_android_arm/install/sdk/native/3rdparty/libs/armeabi-v7a/libtegra_hal.a.

Adding -L"<opencv-dir>/platforms/build_android_arm/install/sdk/native/3rdparty/libs" -ltegra_hal, should do it.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-01-30 10:36:02 -0600

Seen: 5,250 times

Last updated: Feb 15 '17