Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OpenCV 3 (git) ebuild - CMake Error(s) location?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
tenspd137
Guru
Guru


Joined: 22 Aug 2006
Posts: 367

PostPosted: Wed Jan 15, 2014 10:01 pm    Post subject: OpenCV 3 (git) ebuild - CMake Error(s) location? Reply with quote

Hi all,

I was just wondering if anyone knew how to locate where CMake hides error output? I have been trying to modify the current OpenCV ebuild to work with OpenCV-3 (currently unreleased, in git). Basically, I want to try it out with python3, but I don't see any ebuilds for this in any of the overlays (please correct me if I am wrong :) ). Anyway, when I run what I have in my ebuild so far, I can make it to a Linking step:

Code:

Linking CXX shared library ../../lib/libopencv_legacy.so
cd /var/tmp/portage/media-libs/opencv-9999/work/opencv-9999_build/modules/legacy && /usr/bin/cmake -E cmake_link_script CMakeFiles/opencv_legacy.dir/link.txt --verbose=1
/usr/bin/x86_64-pc-linux-gnu-g++  -fPIC -march=native -O2 -pipe    -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 -fdiagnostics-show-option -Wno-long-long -pthread -fno-omit-frame-pointer -ffunction-sections -fvisibility=hidden -fvisibility-inlines-hidden  -Wl,-O1 -Wl,--as-needed -shared -Wl,-soname,libopencv_legacy.so.3.0 -o ../../lib/libopencv_legacy.so.3.0.0 CMakeFiles/opencv_legacy.dir/src/decomppoly.cpp.o CMakeFiles/opencv_legacy.dir/src/image.cpp.o CMakeFiles/opencv_legacy.dir/src/enteringblobdetectionreal.cpp.o CMakeFiles/opencv_legacy.dir/src/lsh.cpp.o CMakeFiles/opencv_legacy.dir/src/optflowbm.cpp.o CMakeFiles/opencv_legacy.dir/src/createhandmask.cpp.o CMakeFiles/opencv_legacy.dir/src/blobtrackanalysistrackdist.cpp.o CMakeFiles/opencv_legacy.dir/src/clique.cpp.o CMakeFiles/opencv_legacy.dir/src/blobtrackgenyml.cpp.o CMakeFiles/opencv_legacy.dir/src/bgfg_codebook.cpp.o CMakeFiles/opencv_legacy.dir/src/pyrsegmentation.cpp.o CMakeFiles/opencv_legacy.dir/src/blobtrackingmsfg.cpp.o CMakeFiles/opencv_legacy.dir/src/testseq.cpp.o CMakeFiles/opencv_legacy.dir/src/prewarp.cpp.o CMakeFiles/opencv_legacy.dir/src/auxutils.cpp.o CMakeFiles/opencv_legacy.dir/src/hmmobs.cpp.o CMakeFiles/opencv_legacy.dir/src/blobtrack.cpp.o CMakeFiles/opencv_legacy.dir/src/optflowhs.cpp.o CMakeFiles/opencv_legacy.dir/src/blobtrackgen1.cpp.o CMakeFiles/opencv_legacy.dir/src/blobtrackpostproclist.cpp.o CMakeFiles/opencv_legacy.dir/src/calcimagehomography.cpp.o CMakeFiles/opencv_legacy.dir/src/bgfg_acmmm2003.cpp.o CMakeFiles/opencv_legacy.dir/src/stereogc.cpp.o CMakeFiles/opencv_legacy.dir/src/blobtrackanalysis.cpp.o CMakeFiles/opencv_legacy.dir/src/camshift.cpp.o CMakeFiles/opencv_legacy.dir/src/correspond.cpp.o CMakeFiles/opencv_legacy.dir/src/eigenobjects.cpp.o CMakeFiles/opencv_legacy.dir/src/oneway.cpp.o CMakeFiles/opencv_legacy.dir/src/blobtrackanalysisior.cpp.o CMakeFiles/opencv_legacy.dir/src/blobtrackpostproclinear.cpp.o CMakeFiles/opencv_legacy.dir/src/extendededges.cpp.o CMakeFiles/opencv_legacy.dir/src/lee.cpp.o CMakeFiles/opencv_legacy.dir/src/hmm1d.cpp.o CMakeFiles/opencv_legacy.dir/src/compat.cpp.o CMakeFiles/opencv_legacy.dir/src/video.cpp.o CMakeFiles/opencv_legacy.dir/src/lines.cpp.o CMakeFiles/opencv_legacy.dir/src/blobtrackingccwithcr.cpp.o CMakeFiles/opencv_legacy.dir/src/levmarprojbandle.cpp.o CMakeFiles/opencv_legacy.dir/src/vecfacetracking.cpp.o CMakeFiles/opencv_legacy.dir/src/morphcontours.cpp.o CMakeFiles/opencv_legacy.dir/src/trifocal.cpp.o CMakeFiles/opencv_legacy.dir/src/levmar.cpp.o CMakeFiles/opencv_legacy.dir/src/em.cpp.o CMakeFiles/opencv_legacy.dir/src/blobtrackingmsfgs.cpp.o CMakeFiles/opencv_legacy.dir/src/blobtrackingcc.cpp.o CMakeFiles/opencv_legacy.dir/src/planardetect.cpp.o CMakeFiles/opencv_legacy.dir/src/segment.cpp.o CMakeFiles/opencv_legacy.dir/src/dpstereo.cpp.o CMakeFiles/opencv_legacy.dir/src/bgfg_common.cpp.o CMakeFiles/opencv_legacy.dir/src/hmm.cpp.o CMakeFiles/opencv_legacy.dir/src/calibfilter.cpp.o CMakeFiles/opencv_legacy.dir/src/kdtree.cpp.o CMakeFiles/opencv_legacy.dir/src/condens.cpp.o CMakeFiles/opencv_legacy.dir/src/blobtrackanalysishist.cpp.o CMakeFiles/opencv_legacy.dir/src/bgfg_gaussmix.cpp.o CMakeFiles/opencv_legacy.dir/src/levmartrif.cpp.o CMakeFiles/opencv_legacy.dir/src/enteringblobdetection.cpp.o CMakeFiles/opencv_legacy.dir/src/optflowlk.cpp.o CMakeFiles/opencv_legacy.dir/src/bgfg_estimation.cpp.o CMakeFiles/opencv_legacy.dir/src/features2d.cpp.o CMakeFiles/opencv_legacy.dir/src/scanlines.cpp.o CMakeFiles/opencv_legacy.dir/src/lmeds.cpp.o CMakeFiles/opencv_legacy.dir/src/enmin.cpp.o CMakeFiles/opencv_legacy.dir/src/calonder.cpp.o CMakeFiles/opencv_legacy.dir/src/corrimages.cpp.o CMakeFiles/opencv_legacy.dir/src/facetemplate.cpp.o CMakeFiles/opencv_legacy.dir/src/subdiv2.cpp.o CMakeFiles/opencv_legacy.dir/src/dominants.cpp.o CMakeFiles/opencv_legacy.dir/src/blobtrackinglist.cpp.o CMakeFiles/opencv_legacy.dir/src/findface.cpp.o CMakeFiles/opencv_legacy.dir/src/spilltree.cpp.o CMakeFiles/opencv_legacy.dir/src/pgh.cpp.o CMakeFiles/opencv_legacy.dir/src/findhandregion.cpp.o CMakeFiles/opencv_legacy.dir/src/morphing.cpp.o CMakeFiles/opencv_legacy.dir/src/contourtree.cpp.o CMakeFiles/opencv_legacy.dir/src/snakes.cpp.o CMakeFiles/opencv_legacy.dir/src/texture.cpp.o CMakeFiles/opencv_legacy.dir/src/lcm.cpp.o CMakeFiles/opencv_legacy.dir/src/3dtracker.cpp.o CMakeFiles/opencv_legacy.dir/src/featuretree.cpp.o CMakeFiles/opencv_legacy.dir/src/facedetection.cpp.o CMakeFiles/opencv_legacy.dir/src/face.cpp.o CMakeFiles/opencv_legacy.dir/src/blobtrackpostprockalman.cpp.o CMakeFiles/opencv_legacy.dir/src/blobtrackingauto.cpp.o CMakeFiles/opencv_legacy.dir/src/epilines.cpp.o ../../lib/libopencv_core.so.3.0.0 ../../lib/libopencv_flann.so.3.0.0 ../../lib/libopencv_imgproc.so.3.0.0 ../../lib/libopencv_highgui.so.3.0.0 ../../lib/libopencv_features2d.so.3.0.0 ../../lib/libopencv_calib3d.so.3.0.0 ../../lib/libopencv_ml.so.3.0.0 ../../lib/libopencv_video.so.3.0.0 -ldl -lm -lpthread -lrt -lGLU -lGL -lSM -lICE -lX11 -lXext -ltbb ../../lib/libopencv_features2d.so.3.0.0 ../../lib/libopencv_flann.so.3.0.0 ../../lib/libopencv_highgui.so.3.0.0 ../../lib/libopencv_imgproc.so.3.0.0 ../../lib/libopencv_core.so.3.0.0
cd /var/tmp/portage/media-libs/opencv-9999/work/opencv-9999_build/modules/legacy && /usr/bin/cmake -E cmake_symlink_library ../../lib/libopencv_legacy.so.3.0.0 ../../lib/libopencv_legacy.so.3.0 ../../lib/libopencv_legacy.so
make[2]: Leaving directory '/var/tmp/portage/media-libs/opencv-9999/work/opencv-9999_build'
/usr/bin/cmake -E cmake_progress_report /var/tmp/portage/media-libs/opencv-9999/work/opencv-9999_build/CMakeFiles  37 38 39 40 41 42
[ 70%] Built target opencv_legacy
make[1]: Leaving directory '/var/tmp/portage/media-libs/opencv-9999/work/opencv-9999_build'
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
 * ERROR: media-libs/opencv-9999::x-portage failed (compile phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=media-libs/opencv-9999::x-portage'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/opencv-9999::x-portage'`.
 * The complete build log is located at '/var/tmp/portage/media-libs/opencv-9999/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-libs/opencv-9999/temp/environment'.
 * Working directory: '/var/tmp/portage/media-libs/opencv-9999/work/opencv-9999_build'
 * S: '/var/tmp/portage/media-libs/opencv-9999/work/opencv-9999'
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME="/etc/java-config-2/current-system-vm"
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =opencv-9999


but I can't seem to find any errors pointing to why it is failing out here. Also, since I am running this using ebuild:
Code:

ebuild opencv-9999.ebuild compile


the intermediate stuff is left. If I do this:

Code:

cd /var/tmp/portage/media-libs/opencv-9999/work/opencv-9999_build/modules/legacy && /usr/bin/cmake -E cmake_link_script CMakeFiles/opencv_legacy.dir/link.txt --verbose=1


just like the output at the failure, the library links - I can find it in /var/tmp/portage/media-libs/opencv-9999/work/opencv-9999_build. Tried scrolling back - can't find anything.

The only thing I can think of because I am using precompiled headers and MAKEOPTS="-j13", so maybe a process is erroring during the link phase, but the output has past. Obviously, it isn't supported and I am not asking anyone to tell me how to fix what is breaking, I just want some suggestions/tips to find what is actually breaking. Currently, I am trying:

Code:

ebuild opencv-9999.ebuild compile 2>&1 | tee makelog


to see if I can grep for errors that may have scrolled out og buffer, if that doesn't work, I'll try MAKEOPTS="-j1" to check for parallel process problems. The only other thing I can sort of find is /var/tmp/portage/media-libs/opencv-9999/work/opencv-9999_build/CMakeFiles/CMakeError.log - but that hasn't been super useful, but that might be the answer and I am just doing it wrong.

Other than that - out of ideas - suggestions?

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum