Closed
Description
Expected behaviour
opencv/opencv#10411 has been fixed since 3.4.2 (but they only notified me now).
So I tried to re-enable the IPP library in manylinux1
build.
Actual behaviour
Warning during compilation:
/io/_skbuild/linux-x86_64-2.7/cmake-build/3rdparty/ippicv/ippiw_lnx/src/iw_core.c:68:21: note: #pragma message: Atomic operations are not supported by this compiler. Some features my not be thread-safe.
#pragma message("Atomic operations are not supported by this compiler. Some features my not be thread-safe.")
Running OpenCV test suite does show additional failures in imgproc
suite.
Steps to reproduce
- remove
BUILD_TESTS=OFF
andWITH_IPP=OFF
fromcmake_args
insetup.py
sudo bash
(root rights are needed to run Docker commands)- if SELinux is enabled, give root access to opencv-python dir as per https://stackoverflow.com/questions/24288616/permission-denied-on-accessing-host-directory-in-docker
- run Travis commands manually until entering Docker, then run the Docker image interactively instead:
export MB_PYTHON_VERSION=2.7
export ENABLE_CONTRIB=0
export ENABLE_HEADLESS=0
set -e
# Multibuild doesn't have releases, so --depth would break eventually (see
# https://superuser.com/questions/1240216/server-does-not-allow-request-for-unadvertised)
git submodule update --init multibuild
source multibuild/common_utils.sh
# https://github.com/matthew-brett/multibuild/issues/116
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export ARCH_FLAGS=" "; fi
source multibuild/travis_steps.sh
# This sets -x
source multibuild_customize.sh
echo $ENABLE_CONTRIB > contrib.enabled
echo $ENABLE_HEADLESS > headless.enabled
before_install
# Not interested in travis internal scripts' output
set +x
git clone git://github.com/opencv/opencv_extra.git
(cd opencv_extra; git checkout 3.4.3)
docker run -ti --rm -e 'BUILD_COMMANDS=build_wheel .' -e PYTHON_VERSION=2.7 -e UNICODE_WIDTH=32 -e BUILD_COMMIT= -e CONFIG_PATH= -e ENV_VARS_PATH= -e WHEEL_SDIR=wheelhouse -e MANYLINUX_URL=https://5cf40426d9f06eb7461d-6fe47d9331aba7cd62fc36c7196769e4.ssl.cf2.rackcdn.com -e BUILD_DEPENDS= -e USE_CCACHE= -e REPO_DIR=. -e PLAT=x86_64 -v `pwd`:/io -v /root:/parent-home quay.io/skvark/manylinux1_x86_64 bash --login
- In Docker, build and run tests:
cd /io
export OPENCV_PYTHON_BINARY=/opt/python/cp27-cp27mu/bin/python
export OPENCV_TEST_DATA_PATH=/io/opencv_extra/testdata
$OPENCV_PYTHON_BINARY setup.py build
$OPENCV_PYTHON_BINARY opencv/modules/ts/misc/run.py _skbuild/linux-x86_64-2.7/cmake-build/ -v -a -t imgproc
(omit -t <...>
to run all tests)
- operating system
CentOS 7 x64
- opencv-python version
master
Metadata
Metadata
Assignees
Labels
No labels