{"action":"created","issue":{"url":"https://api.github.com/repos/Itseez/opencv/issues/5482","labels_url":"https://api.github.com/repos/Itseez/opencv/issues/5482/labels{/name}","comments_url":"https://api.github.com/repos/Itseez/opencv/issues/5482/comments","events_url":"https://api.github.com/repos/Itseez/opencv/issues/5482/events","html_url":"https://github.com/Itseez/opencv/issues/5482","id":110756381,"number":5482,"title":"OpenCV3 build failing with contrib extension on Ubuntu 14.04","user":{"login":"ahundt","id":55744,"avatar_url":"https://avatars.githubusercontent.com/u/55744?v=3","gravatar_id":"","url":"https://api.github.com/users/ahundt","html_url":"https://github.com/ahundt","followers_url":"https://api.github.com/users/ahundt/followers","following_url":"https://api.github.com/users/ahundt/following{/other_user}","gists_url":"https://api.github.com/users/ahundt/gists{/gist_id}","starred_url":"https://api.github.com/users/ahundt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahundt/subscriptions","organizations_url":"https://api.github.com/users/ahundt/orgs","repos_url":"https://api.github.com/users/ahundt/repos","events_url":"https://api.github.com/users/ahundt/events{/privacy}","received_events_url":"https://api.github.com/users/ahundt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Itseez/opencv/labels/invalid","name":"invalid","color":"000000"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-10T00:29:04Z","updated_at":"2015-10-12T21:17:28Z","closed_at":"2015-10-12T14:00:49Z","body":"I'm trying to build opencv3 with the contrib repository with linuxbrew with the standalone setup on Ubuntu 14.04, and it seems to be failing. I've recorded the relevant [gist-logs](https://gist.github.com/ee4c3b3ce43b67eedc82), which record the exact cmake command and debug output. I believe this is due to an issue with OpenCV rather than one with linuxbrew, since linuxbrew is simply a script that executes the normal CMake build. Nonetheless, I've created an [issue at the relevant homebrew repository as well](https://github.com/Homebrew/homebrew-science/issues/2846).\r\n\r\nTo reproduce the error from scratch create a vanilla ubuntu installation (I was using a VM with vmware tools) and run the following script from [ahundt/homebrew-robotics](https://github.com/ahundt/homebrew-robotics) which automates the linuxbrew setup and goes through opencv3 installation:\r\n\r\n    bash <(curl -fsSL https://raw.githubusercontent.com/ahundt/homebrew-robotics/master/robonetracker.sh)\r\n\r\nHere is the relevant CMake commands from the [gist-logs](https://gist.github.com/ee4c3b3ce43b67eedc82):\r\n\r\n```\r\ncmake\r\n..\r\n-DCMAKE_C_FLAGS_RELEASE=\r\n-DCMAKE_CXX_FLAGS_RELEASE=\r\n-DCMAKE_INSTALL_PREFIX=/home/hbr/.linuxbrew/Cellar/opencv3/3.0.0\r\n-DCMAKE_BUILD_TYPE=Release\r\n-DCMAKE_FIND_FRAMEWORK=LAST\r\n-DCMAKE_VERBOSE_MAKEFILE=ON\r\n-Wno-dev\r\n-DCMAKE_BUILD_WITH_INSTALL_RPATH=1\r\n-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=1\r\n-DBUILD_JASPER=OFF\r\n-DBUILD_JPEG=OFF\r\n-DBUILD_TIFF=OFF\r\n-DBUILD_OPENEXR=OFF\r\n-DBUILD_PNG=OFF\r\n-DBUILD_ZLIB=OFF\r\n-DCMAKE_OSX_DEPLOYMENT_TARGET=\r\n-DJPEG_INCLUDE_DIR=/home/hbr/.linuxbrew/opt/jpeg/include\r\n-DJPEG_LIBRARY=/home/hbr/.linuxbrew/opt/jpeg/lib/libjpeg.so\r\n-DBUILD_opencv_java=OFF\r\n-DBUILD_opencv_python2=ON\r\n-DBUILD_opencv_python3=OFF\r\n-DWITH_1394=OFF\r\n-DWITH_EIGEN=ON\r\n-DWITH_FFMPEG=OFF\r\n-DWITH_GPHOTO2=OFF\r\n-DWITH_GSTREAMER=OFF\r\n-DWITH_JASPER=OFF\r\n-DWITH_OPENEXR=ON\r\n-DWITH_OPENGL=OFF\r\n-DWITH_QUICKTIME=OFF\r\n-DWITH_QT=OFF\r\n-DWITH_TBB=OFF\r\n-DWITH_CUDA=OFF\r\n-DOPENCV_EXTRA_MODULES_PATH=/tmp/opencv320151007-88137-d43df3/opencv-3.0.0/opencv_contrib/modules\r\n-DWITH_OPENCL=OFF\r\n-DPYTHON2_EXECUTABLE=/home/hbr/.linuxbrew/bin/python\r\n-DPYTHON2_LIBRARY=/libpython2.7.so\r\n-DPYTHON2_INCLUDE_DIR=/home/hbr/.linuxbrew/Cellar/python/2.7.10_2/include/python2.7\r\n```\r\n\r\nThe opencv3 step of the above script is failing, here is the error:\r\n```\r\n[100%] Built target opencv_test_stitching\r\n[100%] Linking CXX executable ../../bin/opencv_perf_stitching\r\ncd /tmp/opencv320151007-88137-d43df3/opencv-3.0.0/macbuild/modules/stitching && /home/hbr/.linuxbrew/Cellar/cmake/3.3.2/bin/cmake -E cmake_link_script CMakeFiles/opencv_perf_stitching.dir/link.txt --verbose=1\r\n/home/hbr/.linuxbrew/bin/g++-5  -std=c++11  -Os -w -pipe -march=core2    -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -msse -msse2 -mno-avx -msse3 -mno-ssse3 -mno-sse4.1 -mno-sse4.2 -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden   -DNDEBUG   -L/home/hbr/.linuxbrew/lib -Wl,--dynamic-linker=/home/hbr/.linuxbrew/opt/glibc/lib/ld-linux-x86-64.so.2 -Wl,-rpath,/home/hbr/.linuxbrew/lib    CMakeFiles/opencv_perf_stitching.dir/perf/perf_main.cpp.o CMakeFiles/opencv_perf_stitching.dir/perf/opencl/perf_warpers.cpp.o CMakeFiles/opencv_perf_stitching.dir/perf/opencl/perf_stitch.cpp.o CMakeFiles/opencv_perf_stitching.dir/perf/perf_stich.cpp.o  -o ../../bin/opencv_perf_stitching -rdynamic ../../lib/libopencv_ts.a ../../lib/libopencv_stitching.so.3.0.0 ../../lib/libopencv_hal.a ../../lib/libopencv_hal.a ../../lib/libopencv_hal.a ../../lib/libopencv_objdetect.so.3.0.0 ../../lib/libopencv_xfeatures2d.so.3.0.0 -ldl -lm -lpthread -lrt ../../../3rdparty/ippicv/unpack/ippicv_lnx/lib/intel64/libippicv.a ../../lib/libopencv_shape.so.3.0.0 ../../lib/libopencv_video.so.3.0.0 ../../lib/libopencv_calib3d.so.3.0.0 ../../lib/libopencv_features2d.so.3.0.0 ../../lib/libopencv_flann.so.3.0.0 ../../lib/libopencv_ml.so.3.0.0 ../../lib/libopencv_highgui.so.3.0.0 ../../lib/libopencv_videoio.so.3.0.0 ../../lib/libopencv_imgcodecs.so.3.0.0 ../../lib/libopencv_imgproc.so.3.0.0 ../../lib/libopencv_core.so.3.0.0 ../../lib/libopencv_hal.a -ldl -lm -lpthread -lrt ../../../3rdparty/ippicv/unpack/ippicv_lnx/lib/intel64/libippicv.a -Wl,-rpath,/home/hbr/.linuxbrew/Cellar/opencv3/3.0.0/lib \r\nmake[2]: Leaving directory '/tmp/opencv320151007-88137-d43df3/opencv-3.0.0/macbuild'\r\n[100%] Built target opencv_perf_stitching\r\nmake[2]: Leaving directory '/tmp/opencv320151007-88137-d43df3/opencv-3.0.0/macbuild'\r\nCMakeFiles/Makefile2:13078: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/all' failed\r\nmake[1]: *** [modules/python2/CMakeFiles/opencv_python2.dir/all] Error 2\r\nmake[1]: Leaving directory '/tmp/opencv320151007-88137-d43df3/opencv-3.0.0/macbuild'\r\nMakefile:152: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n\r\nREAD THIS: https://github.com/Homebrew/linuxbrew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting\r\nIf reporting this issue please do so at (not Homebrew/homebrew):\r\n  https://github.com/homebrew/homebrew-science/issues\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/Itseez/opencv/issues/comments/147525299","html_url":"https://github.com/Itseez/opencv/issues/5482#issuecomment-147525299","issue_url":"https://api.github.com/repos/Itseez/opencv/issues/5482","id":147525299,"user":{"login":"ahundt","id":55744,"avatar_url":"https://avatars.githubusercontent.com/u/55744?v=3","gravatar_id":"","url":"https://api.github.com/users/ahundt","html_url":"https://github.com/ahundt","followers_url":"https://api.github.com/users/ahundt/followers","following_url":"https://api.github.com/users/ahundt/following{/other_user}","gists_url":"https://api.github.com/users/ahundt/gists{/gist_id}","starred_url":"https://api.github.com/users/ahundt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahundt/subscriptions","organizations_url":"https://api.github.com/users/ahundt/orgs","repos_url":"https://api.github.com/users/ahundt/repos","events_url":"https://api.github.com/users/ahundt/events{/privacy}","received_events_url":"https://api.github.com/users/ahundt/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T21:17:28Z","updated_at":"2015-10-12T21:17:28Z","body":"@mshabunin Can you reopen this issue or should I create a new one?"}}