Make stops everytime on a different file - makefile

I'm trying to compile some libraries with make, such as Opencv and I'm just curious about it's behaviour. When I run make for example 3 times, it stops and gives error on different files each time while linking. There's also different percentage each time. What does it mean? Make builts targets always in different order or what?
[edit] add output of make, don't know if anything can be find out from it.
[ 69%] Building CXX object modules/cudastereo/CMakeFiles/opencv_test_cudastereo.dir/test/test_main.cpp.o
Linking CXX executable ../../bin/opencv_test_cudastereo
[ 69%] Built target opencv_test_cudastereo
[ 71%] Built target opencv_datasets
[ 71%] Building CXX object modules/datasets/CMakeFiles/example_datasets_ar_hmdb.dir/samples/ar_hmdb.cpp.o
Linking CXX executable ../../bin/example_datasets_ar_hmdb
[ 71%] Built target example_datasets_ar_hmdb
[ 71%] Building CXX object modules/datasets/CMakeFiles/example_datasets_ar_hmdb_benchmark.dir/samples/ar_hmdb_benchmark.cpp.o
Linking CXX executable ../../bin/example_datasets_ar_hmdb_benchmark
[ 71%] Built target example_datasets_ar_hmdb_benchmark
[ 71%] Building CXX object modules/datasets/CMakeFiles/example_datasets_ar_sports.dir/samples/ar_sports.cpp.o
Linking CXX executable ../../bin/example_datasets_ar_sports
[ 71%] Built target example_datasets_ar_sports
[ 71%] Building CXX object modules/datasets/CMakeFiles/example_datasets_fr_adience.dir/samples/fr_adience.cpp.o
Linking CXX executable ../../bin/example_datasets_fr_adience
[ 71%] Built target example_datasets_fr_adience
[ 71%] Building CXX object modules/datasets/CMakeFiles/example_datasets_fr_lfw.dir/samples/fr_lfw.cpp.o
Linking CXX executable ../../bin/example_datasets_fr_lfw
[ 71%] Built target example_datasets_fr_lfw
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_fr_lfw_benchmark.dir/samples/fr_lfw_benchmark.cpp.o
Linking CXX executable ../../bin/example_datasets_fr_lfw_benchmark
[ 72%] Built target example_datasets_fr_lfw_benchmark
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_gr_chalearn.dir/samples/gr_chalearn.cpp.o
Linking CXX executable ../../bin/example_datasets_gr_chalearn
[ 72%] Built target example_datasets_gr_chalearn
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_gr_skig.dir/samples/gr_skig.cpp.o
Linking CXX executable ../../bin/example_datasets_gr_skig
[ 72%] Built target example_datasets_gr_skig
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_hpe_humaneva.dir/samples/hpe_humaneva.cpp.o
Linking CXX executable ../../bin/example_datasets_hpe_humaneva
[ 72%] Built target example_datasets_hpe_humaneva
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_hpe_parse.dir/samples/hpe_parse.cpp.o
Linking CXX executable ../../bin/example_datasets_hpe_parse
[ 72%] Built target example_datasets_hpe_parse
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_ir_affine.dir/samples/ir_affine.cpp.o
Linking CXX executable ../../bin/example_datasets_ir_affine
[ 72%] Built target example_datasets_ir_affine
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_ir_robot.dir/samples/ir_robot.cpp.o
Linking CXX executable ../../bin/example_datasets_ir_robot
[ 72%] Built target example_datasets_ir_robot
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_is_bsds.dir/samples/is_bsds.cpp.o
Linking CXX executable ../../bin/example_datasets_is_bsds
[ 72%] Built target example_datasets_is_bsds
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_is_weizmann.dir/samples/is_weizmann.cpp.o
Linking CXX executable ../../bin/example_datasets_is_weizmann
[ 72%] Built target example_datasets_is_weizmann
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_msm_epfl.dir/samples/msm_epfl.cpp.o
Linking CXX executable ../../bin/example_datasets_msm_epfl
[ 72%] Built target example_datasets_msm_epfl
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_msm_middlebury.dir/samples/msm_middlebury.cpp.o
Linking CXX executable ../../bin/example_datasets_msm_middlebury
[ 72%] Built target example_datasets_msm_middlebury
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_or_imagenet.dir/samples/or_imagenet.cpp.o
Linking CXX executable ../../bin/example_datasets_or_imagenet
[ 72%] Built target example_datasets_or_imagenet
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_or_mnist.dir/samples/or_mnist.cpp.o
Linking CXX executable ../../bin/example_datasets_or_mnist
[ 72%] Built target example_datasets_or_mnist
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_or_pascal.dir/samples/or_pascal.cpp.o
Linking CXX executable ../../bin/example_datasets_or_pascal
[ 72%] Built target example_datasets_or_pascal
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_or_sun.dir/samples/or_sun.cpp.o
Linking CXX executable ../../bin/example_datasets_or_sun
[ 72%] Built target example_datasets_or_sun
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_pd_caltech.dir/samples/pd_caltech.cpp.o
Linking CXX executable ../../bin/example_datasets_pd_caltech
[ 72%] Built target example_datasets_pd_caltech
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_pd_inria.dir/samples/pd_inria.cpp.o
Linking CXX executable ../../bin/example_datasets_pd_inria
[ 72%] Built target example_datasets_pd_inria
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_slam_kitti.dir/samples/slam_kitti.cpp.o
Linking CXX executable ../../bin/example_datasets_slam_kitti
[ 72%] Built target example_datasets_slam_kitti
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_slam_tumindoor.dir/samples/slam_tumindoor.cpp.o
Linking CXX executable ../../bin/example_datasets_slam_tumindoor
[ 72%] Built target example_datasets_slam_tumindoor
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_tr_chars.dir/samples/tr_chars.cpp.o
Linking CXX executable ../../bin/example_datasets_tr_chars
[ 72%] Built target example_datasets_tr_chars
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_tr_chars_benchmark.dir/samples/tr_chars_benchmark.cpp.o
Linking CXX executable ../../bin/example_datasets_tr_chars_benchmark
[ 72%] Built target example_datasets_tr_chars_benchmark
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_tr_icdar.dir/samples/tr_icdar.cpp.o
Linking CXX executable ../../bin/example_datasets_tr_icdar
[ 72%] Built target example_datasets_tr_icdar
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_tr_icdar_benchmark.dir/samples/tr_icdar_benchmark.cpp.o
Linking CXX executable ../../bin/example_datasets_tr_icdar_benchmark
[ 72%] Built target example_datasets_tr_icdar_benchmark
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_tr_svt.dir/samples/tr_svt.cpp.o
Linking CXX executable ../../bin/example_datasets_tr_svt
[ 72%] Built target example_datasets_tr_svt
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_tr_svt_benchmark.dir/samples/tr_svt_benchmark.cpp.o
Linking CXX executable ../../bin/example_datasets_tr_svt_benchmark
[ 72%] Built target example_datasets_tr_svt_benchmark
[ 72%] Building CXX object modules/datasets/CMakeFiles/example_datasets_track_vot.dir/samples/track_vot.cpp.o
Linking CXX executable ../../bin/example_datasets_track_vot
[ 72%] Built target example_datasets_track_vot
[ 72%] Built target opencv_rgbd_pch_dephelp
[ 72%] Built target pch_Generate_opencv_rgbd
[ 72%] Built target opencv_rgbd
[ 72%] Building CXX object modules/rgbd/CMakeFiles/example_rgbd_linemod.dir/samples/linemod.cpp.o
Linking CXX executable ../../bin/example_rgbd_linemod
[ 72%] Built target example_rgbd_linemod
Scanning dependencies of target example_rgbd_odometry_evaluation
[ 72%] Building CXX object modules/rgbd/CMakeFiles/example_rgbd_odometry_evaluation.dir/samples/odometry_evaluation.cpp.o
Linking CXX executable ../../bin/example_rgbd_odometry_evaluation
[ 72%] Built target example_rgbd_odometry_evaluation
[ 72%] Built target opencv_test_rgbd_pch_dephelp
[ 72%] Built target pch_Generate_opencv_test_rgbd
Scanning dependencies of target opencv_test_rgbd
[ 72%] Building CXX object modules/rgbd/CMakeFiles/opencv_test_rgbd.dir/test/test_utils.cpp.o
[ 72%] Building CXX object modules/rgbd/CMakeFiles/opencv_test_rgbd.dir/test/test_normal.cpp.o
[ 72%] Building CXX object modules/rgbd/CMakeFiles/opencv_test_rgbd.dir/test/test_odometry.cpp.o
[ 73%] Building CXX object modules/rgbd/CMakeFiles/opencv_test_rgbd.dir/test/test_precomp.cpp.o
[ 73%] Building CXX object modules/rgbd/CMakeFiles/opencv_test_rgbd.dir/test/test_main.cpp.o
Linking CXX executable ../../bin/opencv_test_rgbd
[ 73%] Built target opencv_test_rgbd
[ 73%] Built target opencv_stereo_pch_dephelp
[ 73%] Built target pch_Generate_opencv_stereo
[ 73%] Built target opencv_stereo
Scanning dependencies of target example_stereo_sample
[ 73%] Building CXX object modules/stereo/CMakeFiles/example_stereo_sample.dir/samples/sample.cpp.o
Linking CXX executable ../../bin/example_stereo_sample
[ 73%] Built target example_stereo_sample
[ 73%] Built target opencv_perf_stereo_pch_dephelp
[ 73%] Built target pch_Generate_opencv_perf_stereo
Scanning dependencies of target opencv_perf_stereo
[ 74%] Building CXX object modules/stereo/CMakeFiles/opencv_perf_stereo.dir/perf/perf_main.cpp.o
[ 74%] Building CXX object modules/stereo/CMakeFiles/opencv_perf_stereo.dir/perf/perf_descriptor.cpp.o
[ 74%] Building CXX object modules/stereo/CMakeFiles/opencv_perf_stereo.dir/perf/perf_bm.cpp.o
Linking CXX executable ../../bin/opencv_perf_stereo
[ 74%] Built target opencv_perf_stereo
[ 74%] Built target opencv_test_stereo_pch_dephelp
[ 74%] Built target pch_Generate_opencv_test_stereo
Scanning dependencies of target opencv_test_stereo
[ 74%] Building CXX object modules/stereo/CMakeFiles/opencv_test_stereo.dir/test/test_block_matching.cpp.o
[ 74%] Building CXX object modules/stereo/CMakeFiles/opencv_test_stereo.dir/test/test_descriptors.cpp.o
[ 74%] Building CXX object modules/stereo/CMakeFiles/opencv_test_stereo.dir/test/test_main.cpp.o
Linking CXX executable ../../bin/opencv_test_stereo
[ 74%] Built target opencv_test_stereo
[ 74%] Built target opencv_structured_light_pch_dephelp
[ 74%] Built target pch_Generate_opencv_structured_light
[ 74%] Building CXX object modules/structured_light/CMakeFiles/opencv_structured_light.dir/src/graycodepattern.cpp.o
Linking CXX shared library ../../lib/libopencv_structured_light.so
[ 74%] Built target opencv_structured_light
Scanning dependencies of target example_structured_light_cap_pattern
[ 74%] Building CXX object modules/structured_light/CMakeFiles/example_structured_light_cap_pattern.dir/samples/cap_pattern.cpp.o
Linking CXX executable ../../bin/example_structured_light_cap_pattern
[ 74%] Built target example_structured_light_cap_pattern
Scanning dependencies of target example_structured_light_pointcloud
[ 74%] Building CXX object modules/structured_light/CMakeFiles/example_structured_light_pointcloud.dir/samples/pointcloud.cpp.o
Linking CXX executable ../../bin/example_structured_light_pointcloud
[ 74%] Built target example_structured_light_pointcloud
[ 74%] Built target opencv_test_structured_light_pch_dephelp
[ 74%] Built target pch_Generate_opencv_test_structured_light
Scanning dependencies of target opencv_test_structured_light
[ 74%] Building CXX object modules/structured_light/CMakeFiles/opencv_test_structured_light.dir/test/test_getProjPixel.cpp.o
[ 74%] Building CXX object modules/structured_light/CMakeFiles/opencv_test_structured_light.dir/test/test_plane.cpp.o
[ 74%] Building CXX object modules/structured_light/CMakeFiles/opencv_test_structured_light.dir/test/test_main.cpp.o
Linking CXX executable ../../bin/opencv_test_structured_light
[ 74%] Built target opencv_test_structured_light
[ 74%] Built target opencv_perf_superres_pch_dephelp
[ 74%] Built target pch_Generate_opencv_perf_superres
[ 74%] Built target opencv_superres_pch_dephelp
[ 74%] Built target pch_Generate_opencv_superres
[ 75%] Generating opencl_kernels_superres.cpp, opencl_kernels_superres.hpp
[ 75%] Building NVCC (Device) object modules/superres/CMakeFiles/cuda_compile.dir/src/cuda/./cuda_compile_generated_btv_l1_gpu.cu.o
/home/tomas/Downloads/opencv-3.0.0/modules/superres/src/cuda/btv_l1_gpu.cu: In function ‘void btv_l1_cudev::upscale(cv::cuda::PtrStepSzb, cv::cuda::PtrStepSzb, int, cudaStream_t)’:
/home/tomas/Downloads/opencv-3.0.0/modules/superres/src/cuda/btv_l1_gpu.cu:129:67: warning: typedef ‘src_t’ locally defined but not used [-Wunused-local-typedefs]
typedef typename TypeVec<float, cn>::vec_type src_t;
^
/home/tomas/Downloads/opencv-3.0.0/modules/superres/src/cuda/btv_l1_gpu.cu: In function ‘void btv_l1_cudev::calcBtvRegularization(cv::cuda::PtrStepSzb, cv::cuda::PtrStepSzb, int)’:
/home/tomas/Downloads/opencv-3.0.0/modules/superres/src/cuda/btv_l1_gpu.cu:224:67: warning: typedef ‘src_t’ locally defined but not used [-Wunused-local-typedefs]
typedef typename TypeVec<float, cn>::vec_type src_t;
^
Scanning dependencies of target opencv_superres
[ 75%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/frame_source.cpp.o
[ 75%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/super_resolution.cpp.o
[ 75%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/optical_flow.cpp.o
[ 75%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/btv_l1_cuda.cpp.o
[ 75%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/btv_l1.cpp.o
[ 75%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/input_array_utility.cpp.o
[ 75%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/opencl_kernels_superres.cpp.o
Linking CXX shared library ../../lib/libopencv_superres.so
[ 75%] Built target opencv_superres
Scanning dependencies of target opencv_perf_superres
[ 75%] Building CXX object modules/superres/CMakeFiles/opencv_perf_superres.dir/perf/perf_main.cpp.o
[ 75%] Building CXX object modules/superres/CMakeFiles/opencv_perf_superres.dir/perf/perf_superres.cpp.o
Linking CXX executable ../../bin/opencv_perf_superres
[ 75%] Built target opencv_perf_superres
[ 77%] Built target opencv_test_superres_pch_dephelp
[ 77%] Built target pch_Generate_opencv_test_superres
Scanning dependencies of target opencv_test_superres
[ 77%] Building CXX object modules/superres/CMakeFiles/opencv_test_superres.dir/test/test_superres.cpp.o
[ 77%] Building CXX object modules/superres/CMakeFiles/opencv_test_superres.dir/test/test_main.cpp.o
Linking CXX executable ../../bin/opencv_test_superres
[ 77%] Built target opencv_test_superres
[ 77%] Built target opencv_tracking_pch_dephelp
[ 77%] Built target pch_Generate_opencv_tracking
Linking CXX shared library ../../lib/libopencv_tracking.so
[ 78%] Built target opencv_tracking
Scanning dependencies of target example_tracking_benchmark
[ 78%] Building CXX object modules/tracking/CMakeFiles/example_tracking_benchmark.dir/samples/benchmark.cpp.o
Linking CXX executable ../../bin/example_tracking_benchmark
[ 78%] Built target example_tracking_benchmark
Scanning dependencies of target example_tracking_kcf
[ 78%] Building CXX object modules/tracking/CMakeFiles/example_tracking_kcf.dir/samples/kcf.cpp.o
Linking CXX executable ../../bin/example_tracking_kcf
[ 78%] Built target example_tracking_kcf
Scanning dependencies of target example_tracking_multiTracker_dataset
[ 78%] Building CXX object modules/tracking/CMakeFiles/example_tracking_multiTracker_dataset.dir/samples/multiTracker_dataset.cpp.o
Linking CXX executable ../../bin/example_tracking_multiTracker_dataset
[ 78%] Built target example_tracking_multiTracker_dataset
Scanning dependencies of target example_tracking_multitracker
[ 78%] Building CXX object modules/tracking/CMakeFiles/example_tracking_multitracker.dir/samples/multitracker.cpp.o
Linking CXX executable ../../bin/example_tracking_multitracker
[ 78%] Built target example_tracking_multitracker
Scanning dependencies of target example_tracking_tracker
[ 78%] Building CXX object modules/tracking/CMakeFiles/example_tracking_tracker.dir/samples/tracker.cpp.o
Linking CXX executable ../../bin/example_tracking_tracker
[ 78%] Built target example_tracking_tracker
Scanning dependencies of target example_tracking_tracker_dataset
[ 78%] Building CXX object modules/tracking/CMakeFiles/example_tracking_tracker_dataset.dir/samples/tracker_dataset.cpp.o
Linking CXX executable ../../bin/example_tracking_tracker_dataset
[ 78%] Built target example_tracking_tracker_dataset
Scanning dependencies of target example_tracking_tutorial_customizing_cn_tracker
[ 78%] Building CXX object modules/tracking/CMakeFiles/example_tracking_tutorial_customizing_cn_tracker.dir/samples/tutorial_customizing_cn_tracker.cpp.o
Linking CXX executable ../../bin/example_tracking_tutorial_customizing_cn_tracker
[ 78%] Built target example_tracking_tutorial_customizing_cn_tracker
Scanning dependencies of target example_tracking_tutorial_introduction_to_tracker
[ 78%] Building CXX object modules/tracking/CMakeFiles/example_tracking_tutorial_introduction_to_tracker.dir/samples/tutorial_introduction_to_tracker.cpp.o
Linking CXX executable ../../bin/example_tracking_tutorial_introduction_to_tracker
[ 78%] Built target example_tracking_tutorial_introduction_to_tracker
Scanning dependencies of target example_tracking_tutorial_multitracker
[ 78%] Building CXX object modules/tracking/CMakeFiles/example_tracking_tutorial_multitracker.dir/samples/tutorial_multitracker.cpp.o
Linking CXX executable ../../bin/example_tracking_tutorial_multitracker
[ 78%] Built target example_tracking_tutorial_multitracker
[ 78%] Built target opencv_perf_tracking_pch_dephelp
[ 78%] Built target pch_Generate_opencv_perf_tracking
Scanning dependencies of target opencv_perf_tracking
[ 78%] Building CXX object modules/tracking/CMakeFiles/opencv_perf_tracking.dir/perf/perf_main.cpp.o
[ 78%] Building CXX object modules/tracking/CMakeFiles/opencv_perf_tracking.dir/perf/perf_Tracker.cpp.o
Linking CXX executable ../../bin/opencv_perf_tracking
[ 78%] Built target opencv_perf_tracking
[ 78%] Built target opencv_test_tracking_pch_dephelp
[ 78%] Built target pch_Generate_opencv_test_tracking
Scanning dependencies of target opencv_test_tracking
[ 78%] Building CXX object modules/tracking/CMakeFiles/opencv_test_tracking.dir/test/test_trackerOPE.cpp.o
[ 78%] Building CXX object modules/tracking/CMakeFiles/opencv_test_tracking.dir/test/test_trackerTRE.cpp.o
[ 78%] Building CXX object modules/tracking/CMakeFiles/opencv_test_tracking.dir/test/test_trackerSRE.cpp.o
[ 78%] Building CXX object modules/tracking/CMakeFiles/opencv_test_tracking.dir/test/test_ukf.cpp.o
[ 78%] Building CXX object modules/tracking/CMakeFiles/opencv_test_tracking.dir/test/test_aukf.cpp.o
[ 78%] Building CXX object modules/tracking/CMakeFiles/opencv_test_tracking.dir/test/test_main.cpp.o
Linking CXX executable ../../bin/opencv_test_tracking
[ 78%] Built target opencv_test_tracking
[ 78%] Built target opencv_videostab_pch_dephelp
[ 78%] Built target pch_Generate_opencv_videostab
Scanning dependencies of target opencv_videostab
[ 78%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/frame_source.cpp.o
[ 78%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/inpainting.cpp.o
[ 78%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/global_motion.cpp.o
[ 78%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/motion_stabilizing.cpp.o
[ 78%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/deblurring.cpp.o
[ 78%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/optical_flow.cpp.o
[ 78%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/stabilizer.cpp.o
[ 79%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/wobble_suppression.cpp.o
Linking CXX shared library ../../lib/libopencv_videostab.so
[ 79%] Built target opencv_videostab
[ 79%] Built target opencv_xfeatures2d_pch_dephelp
[ 79%] Built target pch_Generate_opencv_xfeatures2d
[ 80%] Built target opencv_xfeatures2d
Scanning dependencies of target example_xfeatures2d_bagofwords_classification
[ 80%] Building CXX object modules/xfeatures2d/CMakeFiles/example_xfeatures2d_bagofwords_classification.dir/samples/bagofwords_classification.cpp.o
Linking CXX executable ../../bin/example_xfeatures2d_bagofwords_classification
[ 80%] Built target example_xfeatures2d_bagofwords_classification
Scanning dependencies of target example_xfeatures2d_shape_transformation
[ 80%] Building CXX object modules/xfeatures2d/CMakeFiles/example_xfeatures2d_shape_transformation.dir/samples/shape_transformation.cpp.o
Linking CXX executable ../../bin/example_xfeatures2d_shape_transformation
[ 80%] Built target example_xfeatures2d_shape_transformation
Scanning dependencies of target example_xfeatures2d_surf_matcher
[ 80%] Building CXX object modules/xfeatures2d/CMakeFiles/example_xfeatures2d_surf_matcher.dir/samples/surf_matcher.cpp.o
Linking CXX executable ../../bin/example_xfeatures2d_surf_matcher
[ 80%] Built target example_xfeatures2d_surf_matcher
Scanning dependencies of target example_xfeatures2d_video_homography
[ 80%] Building CXX object modules/xfeatures2d/CMakeFiles/example_xfeatures2d_video_homography.dir/samples/video_homography.cpp.o
Linking CXX executable ../../bin/example_xfeatures2d_video_homography
[ 80%] Built target example_xfeatures2d_video_homography
[ 80%] Built target opencv_perf_xfeatures2d_pch_dephelp
[ 80%] Built target pch_Generate_opencv_perf_xfeatures2d
Scanning dependencies of target opencv_perf_xfeatures2d
[ 80%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_perf_xfeatures2d.dir/perf/perf_surf.cpp.o
[ 80%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_perf_xfeatures2d.dir/perf/perf_main.cpp.o
[ 80%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_perf_xfeatures2d.dir/perf/perf_surf.cuda.cpp.o
[ 80%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_perf_xfeatures2d.dir/perf/perf_surf.ocl.cpp.o
[ 80%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_perf_xfeatures2d.dir/perf/perf_daisy.cpp.o
[ 80%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_perf_xfeatures2d.dir/perf/perf_latch.cpp.o
Linking CXX executable ../../bin/opencv_perf_xfeatures2d
[ 80%] Built target opencv_perf_xfeatures2d
[ 80%] Built target opencv_test_xfeatures2d_pch_dephelp
[ 80%] Built target pch_Generate_opencv_test_xfeatures2d
Scanning dependencies of target opencv_test_xfeatures2d
[ 80%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/test/test_detectors.cpp.o
[ 80%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/test/test_surf.cuda.cpp.o
[ 80%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/test/test_features2d.cpp.o
[ 80%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/test/test_keypoints.cpp.o
[ 80%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/test/test_rotation_and_scale_invariance.cpp.o
[ 80%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/test/test_surf.ocl.cpp.o
[ 80%] Building CXX object modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/test/test_main.cpp.o
Linking CXX executable ../../bin/opencv_test_xfeatures2d
[ 80%] Built target opencv_test_xfeatures2d
[ 81%] Built target opencv_ximgproc_pch_dephelp
[ 81%] Built target pch_Generate_opencv_ximgproc
[ 81%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/sparse_match_interpolators.cpp.o
In file included from /home/tomas/Downloads/opencv-3.0.0/modules/core/include/opencv2/core.hpp:54:0,
from /home/tomas/Downloads/opencv-3.0.0/build/modules/ximgproc/precomp.hpp:40:
/home/tomas/opencv_contrib/opencv_contrib/modules/ximgproc/src/sparse_match_interpolators.cpp: In member function ‘virtual void cv::ximgproc::EdgeAwareInterpolatorImpl::interpolate(cv::InputArray, cv::InputArray, cv::InputArray, cv::InputArray, cv::OutputArray)’:
/home/tomas/opencv_contrib/opencv_contrib/modules/ximgproc/src/sparse_match_interpolators.cpp:171:52: error: ‘const class cv::_InputArray’ has no member named ‘isVector’
CV_Assert( !from_points.empty() && from_points.isVector() &&
^
/home/tomas/Downloads/opencv-3.0.0/modules/core/include/opencv2/core/base.hpp:389:33: note: in definition of macro ‘CV_Assert’
#define CV_Assert( expr ) if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ )
^
/home/tomas/opencv_contrib/opencv_contrib/modules/ximgproc/src/sparse_match_interpolators.cpp:172:52: error: ‘const class cv::_InputArray’ has no member named ‘isVector’
!to_points .empty() && to_points .isVector() &&
^
/home/tomas/Downloads/opencv-3.0.0/modules/core/include/opencv2/core/base.hpp:389:33: note: in definition of macro ‘CV_Assert’
#define CV_Assert( expr ) if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ )
^
make[2]: *** [modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/sparse_match_interpolators.cpp.o] Error 1
make[1]: *** [modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/all] Error 2
make: *** [all] Error 2

To answer your direct questions, not related to why your builds are failing:
If you run make with the -j option it enables parallelism, which means many jobs run at the same time. Depending on how long jobs take, which jobs succeeded last time vs. which are left to run, etc. it could be that they are started in a different order each time. If you want a reproducible build that fails at the same place every time, don't use the -j flag.
If you run make with the -k flag, it will keep going even after a failure, until it runs out of things that could be built without relying on any failed targets. If you want make to stop immediately when it hits the first error, don't provide either the -k or -j flags to make.
Make itself doesn't know any percentage of completed builds: it just starts building things and when it can't find anything else to build, it stops... so it has no idea how many more things are left to build. CMake adds this percentage info to the makefiles it generates, and it's just a guesstimate.

Related

CMake "Detecting CXX compiler ABI info - failed"

CMake Output:
-- The CXX compiler identification is GNU 11.2.1
-- The C compiler identification is GNU 11.2.1
-- The ASM compiler identification is GNU
-- Found assembler: /home/bob/gcc-arm-10.2-2020.11-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-gcc
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
What does "Detecting CXX compiler ABI info - failed" mean - what is the cause of this error, and how is it fixed?

Linker Error: g++ 5.4 Ubuntu 16.04

The error I have is :
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Boost version: 1.58.0
-- Found MLPACK: /usr/local/include
-- Configuring done
-- Generating done
-- Build files have been written to: /home/cortana/ClionProjects/hmmClassification/build
Scanning dependencies of target hmm
[ 50%] Building CXX object CMakeFiles/hmm.dir/source/main.cpp.o
[100%] Linking CXX executable hmm
/usr/bin/ld: CMakeFiles/hmm.dir/source/main.cpp.o: undefined reference to symbol '_ZN5boost15program_options3argB5cxx11E'
//usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.58.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/hmm.dir/build.make:95: recipe for target 'hmm' failed
make[2]: *** [hmm] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/hmm.dir/all' failed
make[1]: *** [CMakeFiles/hmm.dir/all] Error 2
Makefile:94: recipe for target 'all' failed
make: *** [all] Error 2
I have included the --std=c++11 tag in CMakeLists.txt
Here is the cmake :
cmake_minimum_required(VERSION 3.3)
project(hmm)
set(PROJECT_VERSION "0.0.1")
# Default configuration values. These must be before the project command or
# they won't work in Windows.
# If no build type is specified, default to "Release"
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release CACHE STRING
"None Debug Release RelWithDebInfo MinSizeRel"
FORCE)
endif()
# Install to "dist" directory in Windows for testing and as a staging directory
# for the installer.
if (WIN32 AND NOT CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_PREFIX dist CACHE STRING "Install path prefix.")
endif()
if (NOT MSVC)
# Enable the C++11 standard
set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} -std=c++11)
endif()
set(CMAKE_BUILD_TYPE "Debug")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
find_package(Boost REQUIRED)
find_package(MLPACK REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
add_definitions(${Boost_DEFINITIONS})
include_directories(${MLPACK_INCLUDE_DIRS})
link_directories(${MLPACK_LIBRARY_DIRS})
add_definitions(${MLPACK_DEFINITIONS})
# Global CMake options
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
# Testing configuration
enable_testing()
#add_subdirectory(source)
file(GLOB SOURCE_FILES
source/main.cpp)
add_executable(${CMAKE_PROJECT_NAME} ${SOURCE_FILES})
target_link_libraries(${CMAKE_PROJECT_NAME}
${Boost_LIBRARIES}
${MLPACK_LIBRARIES})
I dont understand the problem here. Boost and MLPack (required in the code) are properly installed. Also i have used the --std=c++11 tag that was the solution to this problem in previous answers. How do I fix this problem?
Edit:
Output of verbose cmake :
/usr/bin/c++ -I/home/cortana/ClionProjects/hmmClassification/build -I/home/cortana/ClionProjects/hmmClassification -I/usr/local/include -std=c++11 -std=c++11 -g -o CMakeFiles/hmm.dir/source/main.cpp.o -c /home/cortana/ClionProjects/hmmClassification/source/main.cpp
[100%] Linking CXX executable hmm
/usr/bin/cmake -E cmake_link_script CMakeFiles/hmm.dir/link.txt --verbose=1
/usr/bin/c++ -std=c++11 -std=c++11 -g CMakeFiles/hmm.dir/source/main.cpp.o -o hmm -L/usr/local/lib -rdynamic /usr/local/lib/libmlpack.so -Wl,-rpath,/usr/local/lib
/usr/bin/ld: CMakeFiles/hmm.dir/source/main.cpp.o: undefined reference to symbol '_ZN5boost15program_options3argB5cxx11E'
//usr/lib/x86_64-linux-gnu/libboost_program_options.so.1.58.0: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
CMakeFiles/hmm.dir/build.make:98: recipe for target 'hmm' failed
make[2]: *** [hmm] Error 1
make[2]: Leaving directory '/home/cortana/ClionProjects/hmmClassification/build'
CMakeFiles/Makefile2:70: recipe for target 'CMakeFiles/hmm.dir/all' failed
make[1]: *** [CMakeFiles/hmm.dir/all] Error 2
make[1]: Leaving directory '/home/cortana/ClionProjects/hmmClassification/build'
Makefile:97: recipe for target 'all' failed
make: *** [all] Error 2
The project tree is (if its relevant) :
.
├── cmake
│   └── FindMLPACK.cmake
├── CMakeLists.txt
└── source
├── CMakeLists.txt
├── HMMEval.h
├── HMMExperiments.h
├── hmm.h
├── hmm_impl.h
├── HMMPredict.h
├── HMMTrain.h
└── main.cpp
Although you are calling find_package(Boost REQUIRED), you are not specifying any components of Boost to be found, so ${Boost_LIBRARIES} ends up containing nothing, and even though you specify
target_link_libraries(hmm
${MLPACK_LIBRARIES}
${Boost_LIBRARIES})
it doesn't work. So the solution is to add the required components of Boost to the call to find_package():
find_package(Boost COMPONENTS program_options REQUIRED)
Ideally I think that your CMake script FindMLPACK.cmake should find the Boost dependencies too and append them to ${MLPACK_LIBRARIES}, but that is a different issue.
according to this question, have you tried to link with the bost libraries after the MLPack ones?
I believe you could do it by permuting the last two lines in your cmake file.

caffe make error undefined reference x86_64

https://stackoverflow.com/questions/29585180/caffe-make-error-in-mac-os-10-9
Mac OS 10.9, Cuda 6.5, Opencv 2.4.11, Anaconda..
By removing -limgcodecs, I am getting the same error as before-
PROTOC src/caffe/proto/caffe.proto
CXX src/caffe/blob.cpp
CXX src/caffe/common.cpp
CXX src/caffe/data_transformer.cpp
CXX src/caffe/internal_thread.cpp
CXX src/caffe/layer_factory.cpp
CXX src/caffe/layers/absval_layer.cpp
CXX src/caffe/layers/accuracy_layer.cpp
CXX src/caffe/layers/argmax_layer.cpp
CXX src/caffe/layers/base_conv_layer.cpp
CXX src/caffe/layers/base_data_layer.cpp
CXX src/caffe/layers/bnll_layer.cpp
CXX src/caffe/layers/concat_layer.cpp
CXX src/caffe/layers/contrastive_loss_layer.cpp
CXX src/caffe/layers/conv_layer.cpp
CXX src/caffe/layers/cudnn_conv_layer.cpp
CXX src/caffe/layers/cudnn_pooling_layer.cpp
CXX src/caffe/layers/cudnn_relu_layer.cpp
CXX src/caffe/layers/cudnn_sigmoid_layer.cpp
CXX src/caffe/layers/cudnn_softmax_layer.cpp
CXX src/caffe/layers/cudnn_tanh_layer.cpp
CXX src/caffe/layers/data_layer.cpp
CXX src/caffe/layers/deconv_layer.cpp
CXX src/caffe/layers/dropout_layer.cpp
CXX src/caffe/layers/dummy_data_layer.cpp
CXX src/caffe/layers/eltwise_layer.cpp
CXX src/caffe/layers/euclidean_loss_layer.cpp
CXX src/caffe/layers/exp_layer.cpp
CXX src/caffe/layers/flatten_layer.cpp
CXX src/caffe/layers/hdf5_data_layer.cpp
CXX src/caffe/layers/hdf5_output_layer.cpp
CXX src/caffe/layers/hinge_loss_layer.cpp
CXX src/caffe/layers/im2col_layer.cpp
CXX src/caffe/layers/image_data_layer.cpp
CXX src/caffe/layers/infogain_loss_layer.cpp
CXX src/caffe/layers/inner_product_layer.cpp
CXX src/caffe/layers/loss_layer.cpp
CXX src/caffe/layers/lrn_layer.cpp
CXX src/caffe/layers/memory_data_layer.cpp
CXX src/caffe/layers/multinomial_logistic_loss_layer.cpp
CXX src/caffe/layers/mvn_layer.cpp
CXX src/caffe/layers/neuron_layer.cpp
CXX src/caffe/layers/pooling_layer.cpp
CXX src/caffe/layers/power_layer.cpp
CXX src/caffe/layers/prelu_layer.cpp
CXX src/caffe/layers/relu_layer.cpp
CXX src/caffe/layers/sigmoid_cross_entropy_loss_layer.cpp
CXX src/caffe/layers/sigmoid_layer.cpp
CXX src/caffe/layers/silence_layer.cpp
CXX src/caffe/layers/slice_layer.cpp
CXX src/caffe/layers/softmax_layer.cpp
CXX src/caffe/layers/softmax_loss_layer.cpp
CXX src/caffe/layers/split_layer.cpp
CXX src/caffe/layers/tanh_layer.cpp
CXX src/caffe/layers/threshold_layer.cpp
CXX src/caffe/layers/window_data_layer.cpp
CXX src/caffe/net.cpp
CXX src/caffe/solver.cpp
CXX src/caffe/syncedmem.cpp
CXX src/caffe/util/benchmark.cpp
CXX src/caffe/util/cudnn.cpp
CXX src/caffe/util/db.cpp
CXX src/caffe/util/im2col.cpp
CXX src/caffe/util/insert_splits.cpp
CXX src/caffe/util/io.cpp
CXX src/caffe/util/math_functions.cpp
CXX src/caffe/util/upgrade_proto.cpp
NVCC src/caffe/layers/absval_layer.cu
NVCC src/caffe/layers/base_data_layer.cu
NVCC src/caffe/layers/bnll_layer.cu
NVCC src/caffe/layers/concat_layer.cu
NVCC src/caffe/layers/contrastive_loss_layer.cu
NVCC src/caffe/layers/conv_layer.cu
NVCC src/caffe/layers/cudnn_conv_layer.cu
NVCC src/caffe/layers/cudnn_pooling_layer.cu
NVCC src/caffe/layers/cudnn_relu_layer.cu
NVCC src/caffe/layers/cudnn_sigmoid_layer.cu
NVCC src/caffe/layers/cudnn_softmax_layer.cu
NVCC src/caffe/layers/cudnn_tanh_layer.cu
NVCC src/caffe/layers/deconv_layer.cu
NVCC src/caffe/layers/dropout_layer.cu
NVCC src/caffe/layers/eltwise_layer.cu
NVCC src/caffe/layers/euclidean_loss_layer.cu
NVCC src/caffe/layers/exp_layer.cu
NVCC src/caffe/layers/hdf5_data_layer.cu
NVCC src/caffe/layers/hdf5_output_layer.cu
NVCC src/caffe/layers/im2col_layer.cu
NVCC src/caffe/layers/inner_product_layer.cu
NVCC src/caffe/layers/lrn_layer.cu
NVCC src/caffe/layers/mvn_layer.cu
NVCC src/caffe/layers/pooling_layer.cu
NVCC src/caffe/layers/power_layer.cu
NVCC src/caffe/layers/prelu_layer.cu
NVCC src/caffe/layers/relu_layer.cu
NVCC src/caffe/layers/sigmoid_cross_entropy_loss_layer.cu
NVCC src/caffe/layers/sigmoid_layer.cu
NVCC src/caffe/layers/silence_layer.cu
NVCC src/caffe/layers/slice_layer.cu
NVCC src/caffe/layers/softmax_layer.cu
NVCC src/caffe/layers/softmax_loss_layer.cu
NVCC src/caffe/layers/split_layer.cu
NVCC src/caffe/layers/tanh_layer.cu
NVCC src/caffe/layers/threshold_layer.cu
NVCC src/caffe/util/im2col.cu
NVCC src/caffe/util/math_functions.cu
CXX tools/caffe.cpp
CXX tools/compute_image_mean.cpp
CXX tools/convert_imageset.cpp
CXX tools/device_query.cpp
CXX tools/extract_features.cpp
CXX tools/finetune_net.cpp
CXX tools/net_speed_benchmark.cpp
CXX tools/test_net.cpp
CXX tools/train_net.cpp
CXX tools/upgrade_net_proto_binary.cpp
CXX tools/upgrade_net_proto_text.cpp
CXX examples/cifar10/convert_cifar_data.cpp
CXX examples/mnist/convert_mnist_data.cpp
CXX examples/siamese/convert_mnist_siamese_data.cpp
CXX .build_release/src/caffe/proto/caffe.pb.cc
AR -o .build_release/lib/libcaffe.a
LD -o .build_release/lib/libcaffe.so
clang: warning: argument unused during compilation: '-pthread'
ld: warning: directory not found for option '-L/opt/intel/mkl/lib/intel64'
Undefined symbols for architecture x86_64:
"cv::imread(std::string const&, int)", referenced from:
caffe::WindowDataLayer<float>::InternalThreadEntry() in window_data_layer.o
caffe::WindowDataLayer<double>::InternalThreadEntry() in window_data_layer.o
caffe::ReadImageToCVMat(std::string const&, int, int, bool) in io.o
"cv::imencode(std::string const&, cv::_InputArray const&, std::vector<unsigned char, std::allocator<unsigned char> >&, std::vector<int, std::allocator<int> > const&)", referenced from:
caffe::ReadImageToDatum(std::string const&, int, int, int, bool, std::string const&, caffe::Datum*) in io.o
"leveldb::DB::Open(leveldb::Options const&, std::string const&, leveldb::DB**)", referenced from:
caffe::db::LevelDB::Open(std::string const&, caffe::db::Mode) in db.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [.build_release/lib/libcaffe.so] Error 1
make: *** Waiting for unfinished jobs....
.............................................................................
Also I tried to install opencv 3.0,
$ brew install -devel opencv
but is giving the foll CMake error-
==> Installing opencv from homebrew/homebrew-science
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Downloading https://github.com/Itseez/opencv/archive/3.0.0-beta.tar.gz
Already downloaded: /Library/Caches/Homebrew/opencv-3.0.0-beta.tar.gz
==> Downloading https://gist.githubusercontent.com/tdsmith/f67fd567702f2b51dacd/
Already downloaded: /Library/Caches/Homebrew/opencv--patch-be689ac2ce44edfb1f8f9bdaf11e3cd5933fe26e9195ff57e391e6c49b3a1607.diff
==> Patching
patching file modules/python/common.cmake
Hunk #1 succeeded at 62 (offset 12 lines).
==> cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/opencv/3.0.0-beta -DCMAKE_
DPYTHON_INCLUDE_DIR=/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
-DWITH_CUDA=ON
CMake Error: The source directory "/tmp/opencv20150412-21783-107bcd/opencv-3.0.0-beta/macbuild/DPYTHON_INCLUDE_DIR=/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7" does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
Any help appreciated.
Finally I installed opencv3 using cmake and not through brew. But now there seems to the same error- undefined symbols but with leveldb-
PROTOC src/caffe/proto/caffe.proto
CXX src/caffe/blob.cpp
CXX src/caffe/common.cpp
CXX src/caffe/data_transformer.cpp
CXX src/caffe/internal_thread.cpp
CXX src/caffe/layer_factory.cpp
CXX src/caffe/layers/absval_layer.cpp
CXX src/caffe/layers/accuracy_layer.cpp
CXX src/caffe/layers/argmax_layer.cpp
CXX src/caffe/layers/base_conv_layer.cpp
CXX src/caffe/layers/base_data_layer.cpp
CXX src/caffe/layers/bnll_layer.cpp
CXX src/caffe/layers/concat_layer.cpp
CXX src/caffe/layers/contrastive_loss_layer.cpp
CXX src/caffe/layers/conv_layer.cpp
CXX src/caffe/layers/cudnn_conv_layer.cpp
CXX src/caffe/layers/cudnn_pooling_layer.cpp
CXX src/caffe/layers/cudnn_relu_layer.cpp
CXX src/caffe/layers/cudnn_sigmoid_layer.cpp
CXX src/caffe/layers/cudnn_softmax_layer.cpp
CXX src/caffe/layers/cudnn_tanh_layer.cpp
CXX src/caffe/layers/data_layer.cpp
CXX src/caffe/layers/deconv_layer.cpp
CXX src/caffe/layers/dropout_layer.cpp
CXX src/caffe/layers/dummy_data_layer.cpp
CXX src/caffe/layers/eltwise_layer.cpp
CXX src/caffe/layers/euclidean_loss_layer.cpp
CXX src/caffe/layers/exp_layer.cpp
CXX src/caffe/layers/flatten_layer.cpp
CXX src/caffe/layers/hdf5_data_layer.cpp
CXX src/caffe/layers/hdf5_output_layer.cpp
CXX src/caffe/layers/hinge_loss_layer.cpp
CXX src/caffe/layers/im2col_layer.cpp
CXX src/caffe/layers/image_data_layer.cpp
CXX src/caffe/layers/infogain_loss_layer.cpp
CXX src/caffe/layers/inner_product_layer.cpp
CXX src/caffe/layers/loss_layer.cpp
CXX src/caffe/layers/lrn_layer.cpp
CXX src/caffe/layers/memory_data_layer.cpp
CXX src/caffe/layers/multinomial_logistic_loss_layer.cpp
CXX src/caffe/layers/mvn_layer.cpp
CXX src/caffe/layers/neuron_layer.cpp
CXX src/caffe/layers/pooling_layer.cpp
CXX src/caffe/layers/power_layer.cpp
CXX src/caffe/layers/prelu_layer.cpp
CXX src/caffe/layers/relu_layer.cpp
CXX src/caffe/layers/sigmoid_cross_entropy_loss_layer.cpp
CXX src/caffe/layers/sigmoid_layer.cpp
CXX src/caffe/layers/silence_layer.cpp
CXX src/caffe/layers/slice_layer.cpp
CXX src/caffe/layers/softmax_layer.cpp
CXX src/caffe/layers/softmax_loss_layer.cpp
CXX src/caffe/layers/split_layer.cpp
CXX src/caffe/layers/tanh_layer.cpp
CXX src/caffe/layers/threshold_layer.cpp
CXX src/caffe/layers/window_data_layer.cpp
CXX src/caffe/net.cpp
CXX src/caffe/solver.cpp
CXX src/caffe/syncedmem.cpp
CXX src/caffe/util/benchmark.cpp
CXX src/caffe/util/cudnn.cpp
CXX src/caffe/util/db.cpp
CXX src/caffe/util/im2col.cpp
CXX src/caffe/util/insert_splits.cpp
CXX src/caffe/util/io.cpp
CXX src/caffe/util/math_functions.cpp
CXX src/caffe/util/upgrade_proto.cpp
NVCC src/caffe/layers/absval_layer.cu
NVCC src/caffe/layers/base_data_layer.cu
NVCC src/caffe/layers/bnll_layer.cu
NVCC src/caffe/layers/concat_layer.cu
NVCC src/caffe/layers/contrastive_loss_layer.cu
NVCC src/caffe/layers/conv_layer.cu
NVCC src/caffe/layers/cudnn_conv_layer.cu
NVCC src/caffe/layers/cudnn_pooling_layer.cu
NVCC src/caffe/layers/cudnn_relu_layer.cu
NVCC src/caffe/layers/cudnn_sigmoid_layer.cu
NVCC src/caffe/layers/cudnn_softmax_layer.cu
NVCC src/caffe/layers/cudnn_tanh_layer.cu
NVCC src/caffe/layers/deconv_layer.cu
NVCC src/caffe/layers/dropout_layer.cu
NVCC src/caffe/layers/eltwise_layer.cu
NVCC src/caffe/layers/euclidean_loss_layer.cu
NVCC src/caffe/layers/exp_layer.cu
NVCC src/caffe/layers/hdf5_data_layer.cu
NVCC src/caffe/layers/hdf5_output_layer.cu
NVCC src/caffe/layers/im2col_layer.cu
NVCC src/caffe/layers/inner_product_layer.cu
NVCC src/caffe/layers/lrn_layer.cu
NVCC src/caffe/layers/mvn_layer.cu
NVCC src/caffe/layers/pooling_layer.cu
NVCC src/caffe/layers/power_layer.cu
NVCC src/caffe/layers/prelu_layer.cu
NVCC src/caffe/layers/relu_layer.cu
NVCC src/caffe/layers/sigmoid_cross_entropy_loss_layer.cu
NVCC src/caffe/layers/sigmoid_layer.cu
NVCC src/caffe/layers/silence_layer.cu
NVCC src/caffe/layers/slice_layer.cu
NVCC src/caffe/layers/softmax_layer.cu
NVCC src/caffe/layers/softmax_loss_layer.cu
NVCC src/caffe/layers/split_layer.cu
NVCC src/caffe/layers/tanh_layer.cu
NVCC src/caffe/layers/threshold_layer.cu
NVCC src/caffe/util/im2col.cu
NVCC src/caffe/util/math_functions.cu
CXX tools/caffe.cpp
CXX tools/compute_image_mean.cpp
CXX tools/convert_imageset.cpp
CXX tools/device_query.cpp
CXX tools/extract_features.cpp
CXX tools/finetune_net.cpp
CXX tools/net_speed_benchmark.cpp
CXX tools/test_net.cpp
CXX tools/train_net.cpp
CXX tools/upgrade_net_proto_binary.cpp
CXX tools/upgrade_net_proto_text.cpp
CXX examples/cifar10/convert_cifar_data.cpp
CXX examples/mnist/convert_mnist_data.cpp
CXX examples/siamese/convert_mnist_siamese_data.cpp
CXX .build_release/src/caffe/proto/caffe.pb.cc
AR -o .build_release/lib/libcaffe.a
LD -o .build_release/lib/libcaffe.so
clang: warning: argument unused during compilation: '-pthread'
ld: warning: directory not found for option '-L/opt/intel/mkl/lib/intel64'
Undefined symbols for architecture x86_64:
"leveldb::DB::Open(leveldb::Options const&, std::string const&, leveldb::DB**)", referenced from:
caffe::db::LevelDB::Open(std::string const&, caffe::db::Mode) in db.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [.build_release/lib/libcaffe.so] Error 1
I even tried to re-install leveldb but the problem persists. Any help appreciated
I had to revert back to opencv 2.4.11. Uninstalled brew and all its dependencies. Loaded Cuda 7.0. Also added the ENV flags in dependencies with -stdlib=libc++ option. This solved the problem for me, although I still don't know the cause.

How does CMake check for a working compiler?

When using CMake, I noticed the output messages:
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
I am just curious about how CMake checks if the compiler works and the ABI information.
You can easily see for yourself. The code is located in CMake modules CMakeDetermineCCompiler.cmake, CMakeDetermineCompilerABI.cmake etc.
You can find these modules in your_cmake_install/share/cmake-2.8/Modules.

Building Luminance HDR on Ubuntu

I'm following the INSTALL for luminance-hdr-2.3.0, building on Ubuntu 12.04, but I'm getting the following error:
root#ben-laptop:/usr/src/luminance# cmake /usr/src/luminance-hdr-2.3.0/src
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at MainWindow/CMakeLists.txt:14 (QT4_WRAP_CPP):
Unnown CMake command "QT4_WRAP_CPP".
Any ideas?

Resources