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

Replace libopencv_*.a for armv7 to fix linker errors #6

Closed

Conversation

fieldOfView
Copy link

The current libopencv_*.a static libs are causing linker errors for me:

../../../addons/ofxOpenCv/libs/opencv/lib/linuxarmv7l/libopencv_imgproc.a(smooth.o): In function 'cv::getGaussianKernel(int, double, int)':
(.text._ZN2cv17getGaussianKernelEidi+0x1e0): undefined reference to '__exp_finite'
../../../addons/ofxOpenCv/libs/opencv/lib/linuxarmv7l/libopencv_imgproc.a(smooth.o): In function 'cv::bilateralFilter(cv::_InputArray const&, cv::_OutputArray const&, int, double, double, int)'
(.text._ZN2cv15bilateralFilterERKNS_11_InputArrayERKNS_12_OutputArrayEiddi+0x348): undefined reference to '__exp_finite'
[...]
../../../addons/ofxOpenCv/libs/opencv/lib/linuxarmv7l/libopencv_imgproc.a(color.o): In function 'cv::initLabTabs() [clone .part.1]':
(.text._ZN2cvL11initLabTabsEv.part.1+0x11a): undefined reference to '__pow_finite'
../../../addons/ofxOpenCv/libs/opencv/lib/linuxarmv7l/libopencv_imgproc.a(color.o): In function 'cv::initLabTabs() [clone .part.1]':
(.text._ZN2cvL11initLabTabsEv.part.1+0x192): undefined reference to '__pow_finite'
collect2: ld returned 1 exit status
make[1]: *** [bin/opencvExample] Error 1
make: *** [Release] Error 2

I have recompiled static libs from the 2.3.1a sources (http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.3.1/OpenCV-2.3.1a.tar.bz2/download) using the following cmake options:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_SHARED_LIBS=OFF

These replacement libs fix the linking problem for me. I am not sure if these libs have all the options enabled that the original libs have (but they work for me, which is more than I can say of the original libs)

@digitalhack
Copy link
Owner

I will test this in the next couple of days and see what happens with my environment. Based on the results I will merge this pull request. Thanks.

@fieldOfView fieldOfView closed this by deleting the head repository Apr 21, 2024
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 this pull request may close these issues.

None yet

2 participants