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

retrieve opencv build options from pkg_config #26

Merged
merged 1 commit into from
Aug 1, 2017

Conversation

remicollet
Copy link
Contributor

@remicollet remicollet commented Nov 24, 2016

Trying to build with OpenCV 3.1 result in:

PHP Warning: PHP Startup: Unable to load dynamic library '/builddir/build/BUILDROOT/php-facedetect-1.1.0-3.fc26.i386/usr/lib/php/modules/facedetect.so' - /builddir/build/BUILDROOT/php-facedetect-1.1.0-3.fc26.i386/usr/lib/php/modules/facedetect.so: undefined symbol: cvLoadImage in Unknown on line 0

Obviously, more libraries are needed, so the config.m4 need to be fixed.

Notice: current version uses $FACEDETECT_DIR/lib which is wrong, $FACEDETECT_DIR/$PHP_LIBDIR being the correct way (could be /lib or /lib64)

This patch is a big cleanup, using "only" pkg-config output to rerieve build options.

@sergiomb2
Copy link

+1, I recommend this PR, it fix #20 (comment)

@infusion
Copy link
Owner

infusion commented Aug 1, 2017

Thanks for the work on it!

@infusion infusion merged commit 5fc335f into infusion:master Aug 1, 2017
@remicollet remicollet deleted the travis-pkgconfig branch August 4, 2017 13:41
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.

3 participants