Smorodov / Multitarget-tracker

Multiple Object Tracker, Based on Hungarian algorithm + Kalman filter.
Apache License 2.0
2.2k stars 652 forks source link

Can't build CarsCounting #406

Open jac-hk opened 1 year ago

jac-hk commented 1 year ago

Hello! I tried your project with JetsonNano.However, only CarsCounting could not build.

Version ubuntu:18.04 cuda:10.2 opencv+opencv_contrib:4.3.0 cudnn:8.2.1 gcc:8.4.0

The C compiler identification is GNU 8.4.0
The CXX compiler identification is GNU 8.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
Found OpenMP_C: -fopenmp (found version "4.5") 
Found OpenMP_CXX: -fopenmp (found version "4.5") 
Found OpenMP: TRUE (found version "4.5")  
Looking for pthread.h
Looking for pthread.h - found
Looking for pthread_create
Looking for pthread_create - not found
Looking for pthread_create in pthreads
Looking for pthread_create in pthreads - not found
Looking for pthread_create in pthread
Looking for pthread_create in pthread - found
Found Threads: TRUE  
Found CUDA: /usr/local/cuda (found suitable exact version "10.2") 
Found OpenCV: /usr/local (found version "4.3.0") 
Looking for C++ include filesystem
Looking for C++ include filesystem - found
Founded filesystem header
Looking for C++ include opencv2/bgsegm.hpp
Looking for C++ include opencv2/bgsegm.hpp - not found
Configuring done

cmake-1

I tried with BUILD_CARS_COUNTING=ON but it did not work. Also, Multitarget-tracker was successfully built.

I am sorry to trouble you, but I appreciate your support.

jac-hk commented 1 year ago
~/workspace/Multitarget-tracker/build$ cmake-gui
Gtk-Message: 15:46:31.083: GtkDialog mapped without a transient parent. This is discouraged.
gp-taskforce18@gptaskforce18:~/workspace/Multitarget-tracker/build$ make -j4
Scanning dependencies of target inih
[  2%] Building NVCC (Device) object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/yolo_lib_generated_network_kernels.cu.o
[  2%] Building NVCC (Device) object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/yolo_lib_generated_activation_kernels.cu.o
[  3%] Building NVCC (Device) object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/yolo_lib_generated_avgpool_layer_kernels.cu.o
[  4%] Building C object thirdparty/inih/CMakeFiles/inih.dir/ini.c.o
[  5%] Building CXX object thirdparty/inih/CMakeFiles/inih.dir/INIReader.cpp.o
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/activation_kernels.cu(263): warning: variable "MISH_THRESHOLD" was declared but never referenced

/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/network_kernels.cu(379): warning: variable "l" was declared but never referenced

[  5%] Linking CXX static library ../../libinih.a
[  5%] Built target inih
[  5%] Building NVCC (Device) object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/yolo_lib_generated_blas_kernels.cu.o
[  6%] Building NVCC (Device) object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/yolo_lib_generated_col2im_kernels.cu.o
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/blas_kernels.cu(1086): warning: variable "out_index" was declared but never referenced

/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/blas_kernels.cu(1130): warning: variable "step" was set but never used

/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/blas_kernels.cu(1736): warning: variable "stage_id" was declared but never referenced

[  7%] Building NVCC (Device) object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/yolo_lib_generated_convolutional_kernels.cu.o
[  7%] Building NVCC (Device) object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/yolo_lib_generated_crop_layer_kernels.cu.o
[  8%] Building NVCC (Device) object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/yolo_lib_generated_deconvolutional_kernels.cu.o
[  9%] Building NVCC (Device) object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/yolo_lib_generated_dropout_layer_kernels.cu.o
[  9%] Building NVCC (Device) object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/yolo_lib_generated_im2col_kernels.cu.o
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/dropout_layer_kernels.cu(140): warning: variable "cur_scale" was declared but never referenced

/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/dropout_layer_kernels.cu(245): warning: variable "cur_scale" was declared but never referenced

/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/dropout_layer_kernels.cu(262): warning: variable "block_prob" was declared but never referenced

[ 10%] Building NVCC (Device) object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/yolo_lib_generated_maxpool_layer_kernels.cu.o
Scanning dependencies of target mtracking
[ 10%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/__/common/object_types.cpp.o
[ 11%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/Ctracker.cpp.o
[ 12%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/ShortPathCalculator.cpp.o
[ 12%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/track.cpp.o
[ 13%] Building NVCC intermediate link file src/Detector/darknet/CMakeFiles/yolo_lib.dir/yolo_lib_intermediate_link.o
Scanning dependencies of target yolo_lib
[ 13%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/activation_layer.c.o
[ 14%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/activations.c.o
[ 15%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/art.c.o
[ 15%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/avgpool_layer.c.o
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Tracker/Ctracker.cpp: In constructor ‘CTracker::CTracker(const TrackerSettings&)’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Tracker/Ctracker.cpp:59:12: warning: enumeration value ‘MatchCount’ not handled in switch [-Wswitch]
     switch (m_settings.m_matchType)
            ^
[ 16%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/batchnorm_layer.c.o
[ 17%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/blas.c.o
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/blas.c: In function ‘find_sim’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/blas.c:597:59: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
         printf(" Error: find_sim(): sim isn't found: i = %d, j = %d, z = %d \n", i, j, z);
                                                          ~^                      ~
                                                          %ld
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/blas.c:597:67: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
         printf(" Error: find_sim(): sim isn't found: i = %d, j = %d, z = %d \n", i, j, z);
                                                                  ~^                 ~
                                                                  %ld
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/blas.c:597:75: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
         printf(" Error: find_sim(): sim isn't found: i = %d, j = %d, z = %d \n", i, j, z);
                                                                          ~^            ~
                                                                          %ld
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/blas.c: In function ‘find_P_constrastive’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/blas.c:611:68: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
         printf(" Error: find_P_constrastive(): P isn't found: i = %d, j = %d, z = %d \n", i, j, z);
                                                                   ~^                      ~
                                                                   %ld
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/blas.c:611:76: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
         printf(" Error: find_P_constrastive(): P isn't found: i = %d, j = %d, z = %d \n", i, j, z);
                                                                           ~^                 ~
                                                                           %ld
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/blas.c:611:84: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
         printf(" Error: find_P_constrastive(): P isn't found: i = %d, j = %d, z = %d \n", i, j, z);
                                                                                   ~^            ~
                                                                                   %ld
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/blas.c: In function ‘P_constrastive_f’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/blas.c:651:79: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
         fprintf(stderr, " Error: in P_constrastive must be i != l, while i = %d, l = %d \n", i, l);
                                                                              ~^              ~
                                                                              %ld
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/blas.c:651:87: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
         fprintf(stderr, " Error: in P_constrastive must be i != l, while i = %d, l = %d \n", i, l);
                                                                                      ~^         ~
                                                                                      %ld
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/blas.c: In function ‘P_constrastive’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/blas.c:785:79: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
         fprintf(stderr, " Error: in P_constrastive must be i != l, while i = %d, l = %d \n", i, l);
                                                                              ~^              ~
                                                                              %ld
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/blas.c:785:87: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
         fprintf(stderr, " Error: in P_constrastive must be i != l, while i = %d, l = %d \n", i, l);
                                                                                      ~^         ~
                                                                                      %ld
[ 17%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/box.c.o
[ 18%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/captcha.c.o
[ 19%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/cifar.c.o
[ 19%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/classifier.c.o
[ 20%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/Kalman.cpp.o
[ 21%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/coco.c.o
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Tracker/track.cpp: In lambda function:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Tracker/track.cpp:640:16: warning: enumeration value ‘SingleTracksCount’ not handled in switch [-Wswitch]
         switch (m_externalTrackerForLost)
                ^
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Tracker/track.cpp: In member function ‘void CTrack::RectUpdate(const CRegion&, bool, cv::UMat, cv::UMat)’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Tracker/track.cpp:739:12: warning: enumeration value ‘SingleTracksCount’ not handled in switch [-Wswitch]
     switch (m_externalTrackerForLost)
            ^
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Tracker/track.cpp: In member function ‘void CTrack::CreateExternalTracker(int)’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Tracker/track.cpp:901:12: warning: enumeration value ‘SingleTracksCount’ not handled in switch [-Wswitch]
     switch (m_externalTrackerForLost)
            ^
[ 22%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/col2im.c.o
[ 22%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/compare.c.o
[ 23%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/connected_layer.c.o
[ 24%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/conv_lstm_layer.c.o
[ 24%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/convolutional_layer.c.o
[ 25%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/cost_layer.c.o
[ 26%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/TrackerSettings.cpp.o
[ 27%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/cpu_gemm.c.o
[ 27%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/crnn_layer.c.o
[ 28%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/crop_layer.c.o
[ 29%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/dark_cuda.c.o
[ 29%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/HungarianAlg/HungarianAlg.cpp.o
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/dark_cuda.c: In function ‘pre_allocate_pinned_memory’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/dark_cuda.c:395:40: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
         printf("pre_allocate: size = %Iu MB, num_of_blocks = %Iu, block_size = %Iu MB \n",
                                      ~~^
                                      %Ilu
             size / (1024*1024), num_of_blocks, pinned_block_size / (1024 * 1024));
             ~~~~~~~~~~~~~~~~~~          
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/dark_cuda.c:395:64: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘size_t’ {aka ‘const long unsigned int’} [-Wformat=]
         printf("pre_allocate: size = %Iu MB, num_of_blocks = %Iu, block_size = %Iu MB \n",
                                                              ~~^
                                                              %Ilu
             size / (1024*1024), num_of_blocks, pinned_block_size / (1024 * 1024));
                                 ~~~~~~~~~~~~~                   
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/dark_cuda.c:395:82: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Wformat=]
         printf("pre_allocate: size = %Iu MB, num_of_blocks = %Iu, block_size = %Iu MB \n",
                                                                                ~~^
                                                                                %Ilu
             size / (1024*1024), num_of_blocks, pinned_block_size / (1024 * 1024));
                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/dark_cuda.c:405:37: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t’ {aka ‘const long unsigned int’} [-Wformat=]
                 printf(" Allocated %d pinned block \n", pinned_block_size);
                                    ~^                   ~~~~~~~~~~~~~~~~~
                                    %ld
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/dark_cuda.c: In function ‘cuda_make_array_pinned_preallocated’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/dark_cuda.c:426:43: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
             printf("\n Pinned block_id = %d, filled = %f %% \n", pinned_block_id, filled);
                                          ~^                      ~~~~~~~~~~~~~~~
                                          %ld
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/dark_cuda.c:441:64: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
             printf("Try to allocate new pinned memory, size = %d MB \n", size / (1024 * 1024));
                                                               ~^         ~~~~~~~~~~~~~~~~~~~~
                                                               %ld
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/dark_cuda.c:447:63: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
             printf("Try to allocate new pinned BLOCK, size = %d MB \n", size / (1024 * 1024));
                                                              ~^         ~~~~~~~~~~~~~~~~~~~~
                                                              %ld
[ 29%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/darknet.c.o
[ 30%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/data.c.o
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/data.c: In function ‘fill_truth_detection’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/data.c:440:33: warning: ‘%s’ directive writing up to 4095 bytes into a region of size 251 [-Wformat-overflow=]
             sprintf(buff, "echo %s \"Wrong annotation: w = %f\" >> bad_label.list", labelpath, w);
                                 ^~                                                  ~~~~~~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/data.c:440:27: note: assuming directive output of 8 bytes
             sprintf(buff, "echo %s \"Wrong annotation: w = %f\" >> bad_label.list", labelpath, w);
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/data.c:440:13: note: ‘sprintf’ output between 52 and 4461 bytes into a destination of size 256
             sprintf(buff, "echo %s \"Wrong annotation: w = %f\" >> bad_label.list", labelpath, w);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/data.c:447:33: warning: ‘%s’ directive writing up to 4095 bytes into a region of size 251 [-Wformat-overflow=]
             sprintf(buff, "echo %s \"Wrong annotation: h = %f\" >> bad_label.list", labelpath, h);
                                 ^~                                                  ~~~~~~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/data.c:447:27: note: assuming directive output of 8 bytes
             sprintf(buff, "echo %s \"Wrong annotation: h = %f\" >> bad_label.list", labelpath, h);
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/data.c:447:13: note: ‘sprintf’ output between 52 and 4461 bytes into a destination of size 256
             sprintf(buff, "echo %s \"Wrong annotation: h = %f\" >> bad_label.list", labelpath, h);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/data.c:432:33: warning: ‘%s’ directive writing up to 4095 bytes into a region of size 251 [-Wformat-overflow=]
             sprintf(buff, "echo %s \"Wrong annotation: x = %f, y = %f\" >> bad_label.list", labelpath, x, y);
                                 ^~                                                          ~~~~~~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/data.c:432:27: note: assuming directive output of 8 bytes
             sprintf(buff, "echo %s \"Wrong annotation: x = %f, y = %f\" >> bad_label.list", labelpath, x, y);
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/data.c:432:27: note: assuming directive output of 8 bytes
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/data.c:432:13: note: ‘sprintf’ output between 61 and 4784 bytes into a destination of size 256
             sprintf(buff, "echo %s \"Wrong annotation: x = %f, y = %f\" >> bad_label.list", labelpath, x, y);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/data.c:424:33: warning: ‘%s’ directive writing up to 4095 bytes into a region of size 251 [-Wformat-overflow=]
             sprintf(buff, "echo %s \"Wrong annotation: x = 0 or y = 0\" >> bad_label.list", labelpath);
                                 ^~                                                          ~~~~~~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/data.c:424:13: note: ‘sprintf’ output between 59 and 4154 bytes into a destination of size 256
             sprintf(buff, "echo %s \"Wrong annotation: x = 0 or y = 0\" >> bad_label.list", labelpath);
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/data.c:410:33: warning: ‘%s’ directive writing up to 4095 bytes into a region of size 251 [-Wformat-overflow=]
             sprintf(buff, "echo %s \"Wrong annotation: class_id = %d. But class_id should be [from 0 to %d]\" >> bad_label.list", labelpath, id, (classes-1));
                                 ^~                                                                                                ~~~~~~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/data.c:410:13: note: ‘sprintf’ output between 95 and 4210 bytes into a destination of size 256
             sprintf(buff, "echo %s \"Wrong annotation: class_id = %d. But class_id should be [from 0 to %d]\" >> bad_label.list", labelpath, id, (classes-1));
             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 31%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/deconvolutional_layer.c.o
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Tracker/Kalman.cpp: In member function ‘Point_t TKalmanFilter::GetPointPrediction()’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Tracker/Kalman.cpp:575:16: warning: enumeration value ‘KalmanCount’ not handled in switch [-Wswitch]
         switch (m_type)
                ^
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Tracker/Kalman.cpp: In member function ‘Point_t TKalmanFilter::Update(Point_t, bool)’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Tracker/Kalman.cpp:625:20: warning: enumeration value ‘KalmanCount’ not handled in switch [-Wswitch]
             switch (m_type)
                    ^
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Tracker/Kalman.cpp:677:16: warning: enumeration value ‘KalmanCount’ not handled in switch [-Wswitch]
         switch (m_type)
                ^
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Tracker/Kalman.cpp: In member function ‘cv::Rect TKalmanFilter::GetRectPrediction()’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Tracker/Kalman.cpp:732:16: warning: enumeration value ‘KalmanCount’ not handled in switch [-Wswitch]
         switch (m_type)
                ^
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Tracker/Kalman.cpp: In member function ‘cv::Rect TKalmanFilter::Update(cv::Rect, bool)’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Tracker/Kalman.cpp:796:20: warning: enumeration value ‘KalmanCount’ not handled in switch [-Wswitch]
             switch (m_type)
                    ^
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Tracker/Kalman.cpp:851:16: warning: enumeration value ‘KalmanCount’ not handled in switch [-Wswitch]
         switch (m_type)
                ^
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Tracker/Kalman.cpp: In member function ‘cv::Vec<float, 2> TKalmanFilter::GetVelocity() const’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Tracker/Kalman.cpp:924:16: warning: enumeration value ‘KalmanCount’ not handled in switch [-Wswitch]
         switch (m_type)
                ^
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Tracker/Kalman.cpp: In member function ‘void TKalmanFilter::GetPtStateAndResCov(cv::Mat&, cv::Mat&) const’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Tracker/Kalman.cpp:963:16: warning: enumeration value ‘KalmanCount’ not handled in switch [-Wswitch]
         switch (m_type)
                ^
[ 31%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/demo.c.o
[ 32%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/detection_layer.c.o
[ 33%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/detector.c.o
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/detector.c: In function ‘print_cocos’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/detector.c:486:29: warning: format not a string literal and no format arguments [-Wformat-security]
                 fprintf(fp, buff);
                             ^~~~
[ 33%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/dice.c.o
[ 34%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/dropout_layer.c.o
[ 35%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/gaussian_yolo_layer.c.o
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/gaussian_yolo_layer.c: In function ‘make_gaussian_yolo_layer’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/gaussian_yolo_layer.c:72:38: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
     if (cudaSuccess == cudaHostAlloc(&l.output, batch*l.outputs * sizeof(float), cudaHostRegisterMapped)) l.output_pinned = 1;
                                      ^~~~~~~~~
In file included from /usr/local/cuda/include/cuda_runtime.h:96,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/include/darknet.h:41,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/gaussian_yolo_layer.h:5,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/gaussian_yolo_layer.c:7:
/usr/local/cuda/include/cuda_runtime_api.h:4575:60: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                                     ~~~~~~~^~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/gaussian_yolo_layer.c:79:38: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
     if (cudaSuccess == cudaHostAlloc(&l.delta, batch*l.outputs * sizeof(float), cudaHostRegisterMapped)) l.delta_pinned = 1;
                                      ^~~~~~~~
In file included from /usr/local/cuda/include/cuda_runtime.h:96,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/include/darknet.h:41,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/gaussian_yolo_layer.h:5,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/gaussian_yolo_layer.c:7:
/usr/local/cuda/include/cuda_runtime_api.h:4575:60: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                                     ~~~~~~~^~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/gaussian_yolo_layer.c: In function ‘resize_gaussian_yolo_layer’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/gaussian_yolo_layer.c:111:42: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
         if (cudaSuccess != cudaHostAlloc(&l->output, l->batch*l->outputs * sizeof(float), cudaHostRegisterMapped)) {
                                          ^~~~~~~~~~
In file included from /usr/local/cuda/include/cuda_runtime.h:96,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/include/darknet.h:41,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/gaussian_yolo_layer.h:5,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/gaussian_yolo_layer.c:7:
/usr/local/cuda/include/cuda_runtime_api.h:4575:60: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                                     ~~~~~~~^~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/gaussian_yolo_layer.c:120:42: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
         if (cudaSuccess != cudaHostAlloc(&l->delta, l->batch*l->outputs * sizeof(float), cudaHostRegisterMapped)) {
                                          ^~~~~~~~~
In file included from /usr/local/cuda/include/cuda_runtime.h:96,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/include/darknet.h:41,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/gaussian_yolo_layer.h:5,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/gaussian_yolo_layer.c:7:
/usr/local/cuda/include/cuda_runtime_api.h:4575:60: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                                     ~~~~~~~^~~~~
[ 35%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/gemm.c.o
[ 36%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/getopt.c.o
[ 37%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/gettimeofday.c.o
[ 37%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/go.c.o
[ 38%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/dat/dat_tracker.cpp.o
[ 39%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/gru_layer.c.o
[ 40%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/im2col.c.o
[ 41%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/image.c.o
[ 42%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/tokenise.cpp.o
[ 42%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/mytree.cpp.o
[ 43%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/mygraph.cpp.o
[ 43%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/layer.c.o
[ 44%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/list.c.o
[ 45%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/local_layer.c.o
[ 45%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/lstm_layer.c.o
[ 46%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/mwbmatching.cpp.o
[ 47%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/matrix.c.o
[ 48%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/maxpool_layer.c.o
[ 48%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/mincut.cpp.o
[ 48%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/network.c.o
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/network.c: In function ‘resize_network’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/network.c:660:42: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
         if (cudaSuccess == cudaHostAlloc(&net->input_pinned_cpu, size * sizeof(float), cudaHostRegisterMapped))
                                          ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/cuda/include/cuda_runtime.h:96,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/include/darknet.h:41,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/network.c:1:
/usr/local/cuda/include/cuda_runtime_api.h:4575:60: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                                     ~~~~~~~^~~~~
[ 49%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/nightmare.c.o
[ 50%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/normalization_layer.c.o
[ 50%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/option_list.c.o
[ 51%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/parser.c.o
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/parser.c: In function ‘parse_network_cfg_custom’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/parser.c:1777:42: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
         if (cudaSuccess == cudaHostAlloc(&net.input_pinned_cpu, size * sizeof(float), cudaHostRegisterMapped)) net.input_pinned_cpu_flag = 1;
                                          ^~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/cuda/include/cuda_runtime.h:96,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/include/darknet.h:41,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/activations.h:3,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/activation_layer.h:4,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/parser.c:6:
/usr/local/cuda/include/cuda_runtime_api.h:4575:60: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                                     ~~~~~~~^~~~~
[ 52%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/gport.cpp.o
[ 53%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/region_layer.c.o
[ 54%] Building C object src/Tracker/CMakeFiles/mtracking.dir/graph/fheap.c.o
[ 55%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/bellman_ford.cpp.o
[ 55%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/reorg_layer.c.o
[ 56%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/reorg_old_layer.c.o
[ 57%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/representation_layer.c.o
[ 57%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/bfs.cpp.o
[ 57%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/rnn.c.o
[ 58%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/rnn_layer.c.o
[ 59%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/rnn_vid.c.o
[ 60%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/biconnectivity.cpp.o
[ 60%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/route_layer.c.o
[ 61%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/bid_dijkstra.cpp.o
[ 62%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/sam_layer.c.o
[ 63%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/scale_channels_layer.c.o
[ 63%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/shortcut_layer.c.o
[ 63%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/components.cpp.o
[ 64%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/softmax_layer.c.o
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/softmax_layer.c: In function ‘make_contrastive_layer’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/softmax_layer.c:203:101: warning: format ‘%d’ expects argument of type ‘int’, but argument 9 has type ‘size_t’ {aka ‘const long unsigned int’} [-Wformat=]
     fprintf(stderr, "contrastive %4d x%4d x%4d x emb_size %4d x batch: %4d  classes = %4d, step = %4d \n", w, h, l.n, l.embedding_size, batch, l.classes, step);
                                                                                                   ~~^                                                     ~~~~
                                                                                                   %4ld
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/softmax_layer.c: In function ‘forward_contrastive_layer’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/softmax_layer.c:423:71: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘size_t’ {aka ‘const long unsigned int’} [-Wformat=]
             printf(" Error: too large number of bboxes: contr_size = %d > max_contr_size  = %d \n", contr_size, max_contr_size);
                                                                      ~^                             ~~~~~~~~~~
                                                                      %ld
[ 65%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/super.c.o
[ 65%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/swag.c.o
[ 66%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/tag.c.o
[ 67%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/tree.c.o
[ 68%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/debug.cpp.o
[ 68%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/upsample_layer.c.o
[ 69%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/utils.c.o
[ 70%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/dfs.cpp.o
[ 71%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/voxel.c.o
[ 71%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/writing.c.o
[ 72%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/yolo.c.o
[ 73%] Building C object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/yolo_layer.c.o
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Tracker/graph/GTL/src/debug.cpp: In static member function ‘static void GTL::GTL_debug::debug_message(const char*, ...)’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Tracker/graph/GTL/src/debug.cpp:19:44: warning: unused parameter ‘message’ [-Wunused-parameter]
 void GTL_debug::debug_message (const char* message, ...)
                                ~~~~~~~~~~~~^~~~~~~
[ 73%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/dijkstra.cpp.o
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/yolo_layer.c: In function ‘make_yolo_layer’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/yolo_layer.c:68:38: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
     if (cudaSuccess == cudaHostAlloc(&l.output, batch*l.outputs*sizeof(float), cudaHostRegisterMapped)) l.output_pinned = 1;
                                      ^~~~~~~~~
In file included from /usr/local/cuda/include/cuda_runtime.h:96,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/include/darknet.h:41,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/activations.h:3,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/layer.h:4,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/yolo_layer.h:5,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/yolo_layer.c:1:
/usr/local/cuda/include/cuda_runtime_api.h:4575:60: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                                     ~~~~~~~^~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/yolo_layer.c:75:38: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
     if (cudaSuccess == cudaHostAlloc(&l.delta, batch*l.outputs*sizeof(float), cudaHostRegisterMapped)) l.delta_pinned = 1;
                                      ^~~~~~~~
In file included from /usr/local/cuda/include/cuda_runtime.h:96,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/include/darknet.h:41,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/activations.h:3,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/layer.h:4,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/yolo_layer.h:5,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/yolo_layer.c:1:
/usr/local/cuda/include/cuda_runtime_api.h:4575:60: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                                     ~~~~~~~^~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/yolo_layer.c: In function ‘resize_yolo_layer’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/yolo_layer.c:106:42: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
         if (cudaSuccess != cudaHostAlloc(&l->output, l->batch*l->outputs * sizeof(float), cudaHostRegisterMapped)) {
                                          ^~~~~~~~~~
In file included from /usr/local/cuda/include/cuda_runtime.h:96,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/include/darknet.h:41,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/activations.h:3,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/layer.h:4,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/yolo_layer.h:5,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/yolo_layer.c:1:
/usr/local/cuda/include/cuda_runtime_api.h:4575:60: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                                     ~~~~~~~^~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/yolo_layer.c:115:42: warning: passing argument 1 of ‘cudaHostAlloc’ from incompatible pointer type [-Wincompatible-pointer-types]
         if (cudaSuccess != cudaHostAlloc(&l->delta, l->batch*l->outputs * sizeof(float), cudaHostRegisterMapped)) {
                                          ^~~~~~~~~
In file included from /usr/local/cuda/include/cuda_runtime.h:96,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/include/darknet.h:41,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/activations.h:3,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/layer.h:4,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/yolo_layer.h:5,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/yolo_layer.c:1:
/usr/local/cuda/include/cuda_runtime_api.h:4575:60: note: expected ‘void **’ but argument is of type ‘float **’
 extern __host__ cudaError_t CUDARTAPI cudaHostAlloc(void **pHost, size_t size, unsigned int flags);
                                                     ~~~~~~~^~~~~
[ 74%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/edge.cpp.o
[ 74%] Building CXX object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/yolo_v2_class.cpp.o
[ 75%] Building CXX object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/http_stream.cpp.o
[ 76%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/embedding.cpp.o
In file included from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/layer.h:4,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/network.h:7,
                 from /home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/yolo_v2_class.cpp:4:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/activations.h: In function ‘float linear_gradient(float)’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/activations.h:102:43: warning: unused parameter ‘x’ [-Wunused-parameter]
 static inline float linear_gradient(float x){return 1;}
                                     ~~~~~~^
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/yolo_v2_class.cpp: In function ‘int detect_mat(const uint8_t*, size_t, bbox_t_container&)’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/yolo_v2_class.cpp:44:31: warning: unused parameter ‘data’ [-Wunused-parameter]
 int detect_mat(const uint8_t* data, const size_t data_length, bbox_t_container &container) {
                ~~~~~~~~~~~~~~~^~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/yolo_v2_class.cpp:44:50: warning: unused parameter ‘data_length’ [-Wunused-parameter]
 int detect_mat(const uint8_t* data, const size_t data_length, bbox_t_container &container) {
                                     ~~~~~~~~~~~~~^~~~~~~~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/yolo_v2_class.cpp:44:81: warning: unused parameter ‘container’ [-Wunused-parameter]
 int detect_mat(const uint8_t* data, const size_t data_length, bbox_t_container &container) {
                                                               ~~~~~~~~~~~~~~~~~~^~~~~~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/yolo_v2_class.cpp: In member function ‘std::vector<bbox_t> Detector::tracking_id(std::vector<bbox_t>, bool, int, int)’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/yolo_v2_class.cpp:422:40: warning: comparison of integer expressions of different signedness: ‘std::deque<std::vector<bbox_t> >::size_type’ {aka ‘long unsigned int’} and ‘const int’ [-Wsign-compare]
         if (prev_bbox_vec_deque.size() > frames_story) prev_bbox_vec_deque.pop_back();
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/yolo_v2_class.cpp:437:34: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘const int’ [-Wsign-compare]
                     if (cur_dist < max_dist && (k.track_id == 0 || dist_vec[m] > cur_dist)) {
                         ~~~~~~~~~^~~~~~~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/yolo_v2_class.cpp:461:40: warning: comparison of integer expressions of different signedness: ‘std::deque<std::vector<bbox_t> >::size_type’ {aka ‘long unsigned int’} and ‘const int’ [-Wsign-compare]
         if (prev_bbox_vec_deque.size() > frames_story) prev_bbox_vec_deque.pop_back();
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/http_stream.cpp: In member function ‘bool JSON_sender::write(const char*)’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/http_stream.cpp:225:43: warning: missing initializer for member ‘sockaddr_in::sin_port’ [-Wmissing-field-initializers]
                 SOCKADDR_IN address = { 0 };
                                           ^
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/http_stream.cpp:225:43: warning: missing initializer for member ‘sockaddr_in::sin_addr’ [-Wmissing-field-initializers]
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/http_stream.cpp:225:43: warning: missing initializer for member ‘sockaddr_in::sin_zero’ [-Wmissing-field-initializers]
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/http_stream.cpp:253:21: warning: unused variable ‘n’ [-Wunused-variable]
                 int n = _write(client, outputbuf, outlen);
                     ^
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/http_stream.cpp: In function ‘int custom_create_thread(void**, void* const*, void* (*)(void*), void*)’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/http_stream.cpp:692:71: warning: unused parameter ‘attr’ [-Wunused-parameter]
 int custom_create_thread(custom_thread_t * tid, const custom_attr_t * attr, void *(*func) (void *), void *arg)
                                                 ~~~~~~~~~~~~~~~~~~~~~~^~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/http_stream.cpp: In function ‘int custom_join(custom_thread_t, void**)’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/http_stream.cpp:700:45: warning: unused parameter ‘value_ptr’ [-Wunused-parameter]
 int custom_join(custom_thread_t tid, void **value_ptr)
                                      ~~~~~~~^~~~~~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/http_stream.cpp: In function ‘void set_track_id(detection*, int, float, float, float, int, int, int)’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/http_stream.cpp:867:27: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<detection_t>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
         for (int i = 0; i < v.size(); ++i) {
                         ~~^~~~~~~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/http_stream.cpp:875:33: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<detection_t>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
     for (int old_id = 0; old_id < old_dets.size(); ++old_id) {
                          ~~~~~~~^~~~~~~~~~~~~~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/http_stream.cpp:894:31: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<detection_t>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
     for (int index = 0; index < new_dets_num*old_dets.size(); ++index) {
                         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/http_stream.cpp:930:28: warning: comparison of integer expressions of different signedness: ‘std::deque<std::vector<detection_t> >::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare]
     if (old_dets_dq.size() > deque_size) old_dets_dq.pop_front();
         ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
[ 76%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/fm_partition.cpp.o
[ 77%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/gml_parser.cpp.o
[ 78%] Building CXX object src/Detector/darknet/CMakeFiles/yolo_lib.dir/src/image_opencv.cpp.o
[ 79%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/gml_scanner.cpp.o
[ 79%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/graph.cpp.o
[ 80%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/maxflow_ff.cpp.o
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/image_opencv.cpp: In function ‘int wait_key_cv(int)’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/image_opencv.cpp:1588:32: warning: unused parameter ‘delay’ [-Wunused-parameter]
 extern "C" int wait_key_cv(int delay) { return 0; }
                            ~~~~^~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/image_opencv.cpp: In function ‘void resize_window_cv(const char*, int, int)’:
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/image_opencv.cpp:1591:46: warning: unused parameter ‘window_name’ [-Wunused-parameter]
 extern "C" void resize_window_cv(char const* window_name, int width, int height) {}
                                  ~~~~~~~~~~~~^~~~~~~~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/image_opencv.cpp:1591:63: warning: unused parameter ‘width’ [-Wunused-parameter]
 extern "C" void resize_window_cv(char const* window_name, int width, int height) {}
                                                           ~~~~^~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/src/Detector/darknet/src/image_opencv.cpp:1591:74: warning: unused parameter ‘height’ [-Wunused-parameter]
 extern "C" void resize_window_cv(char const* window_name, int width, int height) {}
                                                                      ~~~~^~~~~~
[ 81%] Linking CXX shared library ../../../libyolo_lib.so
[ 82%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/maxflow_pp.cpp.o
[ 82%] Built target yolo_lib
Scanning dependencies of target mdetection
[ 82%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/maxflow_sap.cpp.o
[ 83%] Building CXX object src/Detector/CMakeFiles/mdetection.dir/BaseDetector.cpp.o
[ 84%] Building CXX object src/Detector/CMakeFiles/mdetection.dir/MotionDetector.cpp.o
[ 85%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/min_tree.cpp.o
[ 86%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/node.cpp.o
[ 86%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/planarity.cpp.o
[ 86%] Building CXX object src/Detector/CMakeFiles/mdetection.dir/BackgroundSubtract.cpp.o
[ 87%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/pq_node.cpp.o
[ 88%] Building CXX object src/Detector/CMakeFiles/mdetection.dir/vibe_src/vibe.cpp.o
[ 89%] Building CXX object src/Detector/CMakeFiles/mdetection.dir/Subsense/BackgroundSubtractorLBSP.cpp.o
[ 90%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/pq_tree.cpp.o
[ 90%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/ratio_cut_partition.cpp.o
[ 90%] Building CXX object src/Detector/CMakeFiles/mdetection.dir/Subsense/BackgroundSubtractorLOBSTER.cpp.o
[ 91%] Building CXX object src/Detector/CMakeFiles/mdetection.dir/Subsense/BackgroundSubtractorSuBSENSE.cpp.o
[ 92%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/st_number.cpp.o
[ 93%] Building CXX object src/Detector/CMakeFiles/mdetection.dir/Subsense/LBSP.cpp.o
[ 94%] Building CXX object src/Tracker/CMakeFiles/mtracking.dir/graph/GTL/src/topsort.cpp.o
[ 94%] Linking CXX shared library ../../libmtracking.so
[ 94%] Building CXX object src/Detector/CMakeFiles/mdetection.dir/FaceDetector.cpp.o
[ 94%] Built target mtracking
[ 95%] Building CXX object src/Detector/CMakeFiles/mdetection.dir/PedestrianDetector.cpp.o
[ 96%] Building CXX object src/Detector/CMakeFiles/mdetection.dir/pedestrians/c4-pedestrian-detector.cpp.o
[ 96%] Building CXX object src/Detector/CMakeFiles/mdetection.dir/YoloDarknetDetector.cpp.o
[ 97%] Building CXX object src/Detector/CMakeFiles/mdetection.dir/OCVDNNDetector.cpp.o
[ 98%] Linking CXX shared library ../../libmdetection.so
[ 98%] Built target mdetection
Scanning dependencies of target MultitargetTracker
[100%] Building CXX object example/CMakeFiles/MultitargetTracker.dir/main.cpp.o
[100%] Building CXX object example/CMakeFiles/MultitargetTracker.dir/CarsCounting.cpp.o
[100%] Building CXX object example/CMakeFiles/MultitargetTracker.dir/VideoExample.cpp.o
/home/gp-taskforce18/workspace/Multitarget-tracker/example/VideoExample.cpp: In member function ‘void VideoExample::AsyncProcess()’:
/home/gp-taskforce18/workspace/Multitarget-tracker/example/VideoExample.cpp:332:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
     if (thCapDet.joinable())
     ^~
/home/gp-taskforce18/workspace/Multitarget-tracker/example/VideoExample.cpp:335:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
  m_cvatAnnotationsGenerator.Save(m_inFile, m_framesCount, m_frameSize);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/gp-taskforce18/workspace/Multitarget-tracker/example/main.cpp:2:
/home/gp-taskforce18/workspace/Multitarget-tracker/example/examples.h: In member function ‘virtual bool MotionDetectorExample::InitDetector(cv::UMat)’:
/home/gp-taskforce18/workspace/Multitarget-tracker/example/examples.h:35:10: warning: enumeration value ‘Face_HAAR’ not handled in switch [-Wswitch]
   switch (detectorType)
          ^
/home/gp-taskforce18/workspace/Multitarget-tracker/example/examples.h:35:10: warning: enumeration value ‘Pedestrian_HOG’ not handled in switch [-Wswitch]
/home/gp-taskforce18/workspace/Multitarget-tracker/example/examples.h:35:10: warning: enumeration value ‘Pedestrian_C4’ not handled in switch [-Wswitch]
/home/gp-taskforce18/workspace/Multitarget-tracker/example/examples.h:35:10: warning: enumeration value ‘Yolo_Darknet’ not handled in switch [-Wswitch]
/home/gp-taskforce18/workspace/Multitarget-tracker/example/examples.h:35:10: warning: enumeration value ‘Yolo_TensorRT’ not handled in switch [-Wswitch]
/home/gp-taskforce18/workspace/Multitarget-tracker/example/examples.h:35:10: warning: enumeration value ‘DNN_OCV’ not handled in switch [-Wswitch]
/home/gp-taskforce18/workspace/Multitarget-tracker/example/examples.h:35:10: warning: enumeration value ‘DetectorsCount’ not handled in switch [-Wswitch]
In file included from /home/gp-taskforce18/workspace/Multitarget-tracker/example/main.cpp:2:
/home/gp-taskforce18/workspace/Multitarget-tracker/example/examples.h: In member function ‘virtual bool OpenCVDNNExample::InitTracker(cv::UMat)’:
/home/gp-taskforce18/workspace/Multitarget-tracker/example/examples.h:461:28: warning: unused parameter ‘frame’ [-Wunused-parameter]
  bool InitTracker(cv::UMat frame) override
                   ~~~~~~~~~^~~~~
/home/gp-taskforce18/workspace/Multitarget-tracker/example/examples.h: In member function ‘virtual bool YoloDarknetExample::InitTracker(cv::UMat)’:
/home/gp-taskforce18/workspace/Multitarget-tracker/example/examples.h:659:28: warning: unused parameter ‘frame’ [-Wunused-parameter]
  bool InitTracker(cv::UMat frame) override
                   ~~~~~~~~~^~~~~
In file included from /home/gp-taskforce18/workspace/Multitarget-tracker/example/CarsCounting.cpp:1:
/home/gp-taskforce18/workspace/Multitarget-tracker/example/CarsCounting.h: In instantiation of ‘cv::Mat GeoParams<T>::DrawTracksOnMap(const std::vector<TrackingObject>&) [with T = double]’:
/home/gp-taskforce18/workspace/Multitarget-tracker/example/CarsCounting.cpp:317:60:   required from here
/home/gp-taskforce18/workspace/Multitarget-tracker/example/CarsCounting.h:178:22: warning: variable ‘labelSize’ set but not used [-Wunused-but-set-variable]
             cv::Size labelSize = cv::getTextSize(label.str(), cv::FONT_HERSHEY_SIMPLEX, fontScale, 1, &baseLine);
                      ^~~~~~~~~
[100%] Linking CXX executable ../MultitargetTracker
[100%] Built target MultitargetTracker
Nuzhny007 commented 1 year ago

Hi! But in your output I don't seee errrors. Just now I haven't Jetson Nano, I need a text with errors from compiler

jac-hk commented 1 year ago

OK Is this it?

Determining if the pthread_create exist failed with the following output:
Change Dir: /home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_e6633/fast"
/usr/bin/make -f CMakeFiles/cmTC_e6633.dir/build.make CMakeFiles/cmTC_e6633.dir/build
make[1]: ディレクトリ '/home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp' に入ります
Building C object CMakeFiles/cmTC_e6633.dir/CheckSymbolExists.c.o
/usr/bin/cc   -fPIC    -o CMakeFiles/cmTC_e6633.dir/CheckSymbolExists.c.o   -c /home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_e6633
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e6633.dir/link.txt --verbose=1
/usr/bin/cc -fPIC     CMakeFiles/cmTC_e6633.dir/CheckSymbolExists.c.o  -o cmTC_e6633 
CMakeFiles/cmTC_e6633.dir/CheckSymbolExists.c.o: 関数 `main' 内:
CheckSymbolExists.c:(.text+0x14): `pthread_create' に対する定義されていない参照です
CheckSymbolExists.c:(.text+0x18): `pthread_create' に対する定義されていない参照です
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_e6633.dir/build.make:97: recipe for target 'cmTC_e6633' failed
make[1]: *** [cmTC_e6633] Error 1
make[1]: ディレクトリ '/home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp' から出ます
Makefile:126: recipe for target 'cmTC_e6633/fast' failed
make: *** [cmTC_e6633/fast] Error 2

File /home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_f512f/fast"
/usr/bin/make -f CMakeFiles/cmTC_f512f.dir/build.make CMakeFiles/cmTC_f512f.dir/build
make[1]: ディレクトリ '/home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp' に入ります
Building C object CMakeFiles/cmTC_f512f.dir/CheckFunctionExists.c.o
/usr/bin/cc   -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_f512f.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.10/Modules/CheckFunctionExists.c
Linking C executable cmTC_f512f
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f512f.dir/link.txt --verbose=1
/usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTC_f512f.dir/CheckFunctionExists.c.o  -o cmTC_f512f -lpthreads 
/usr/bin/ld: -lpthreads が見つかりません
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_f512f.dir/build.make:97: recipe for target 'cmTC_f512f' failed
make[1]: *** [cmTC_f512f] Error 1
make[1]: ディレクトリ '/home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp' から出ます
Makefile:126: recipe for target 'cmTC_f512f/fast' failed
make: *** [cmTC_f512f/fast] Error 2

Determining if the include file opencv2/bgsegm.hpp exists failed with the following output:
Change Dir: /home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_35b2d/fast"
/usr/bin/make -f CMakeFiles/cmTC_35b2d.dir/build.make CMakeFiles/cmTC_35b2d.dir/build
make[1]: ディレクトリ '/home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp' に入ります
Building CXX object CMakeFiles/cmTC_35b2d.dir/CheckIncludeFile.cxx.o
/usr/bin/c++    -fopenmp -Wall -Wextra -pedantic-errors -fPIC    -std=gnu++1z -o CMakeFiles/cmTC_35b2d.dir/CheckIncludeFile.cxx.o -c /home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp/CheckIncludeFile.cxx
/home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp/CheckIncludeFile.cxx:1:10: fatal error: opencv2/bgsegm.hpp: そのようなファイルやディレクトリはありません
 #include <opencv2/bgsegm.hpp>
          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/cmTC_35b2d.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_35b2d.dir/CheckIncludeFile.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_35b2d.dir/CheckIncludeFile.cxx.o] Error 1
make[1]: ディレクトリ '/home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp' から出ます
Makefile:126: recipe for target 'cmTC_35b2d/fast' failed
make: *** [cmTC_35b2d/fast] Error 2
jac-hk commented 1 year ago

Hi! The error below was resolved by adding FIND_PACKAGE(Threads) to Multitarget-tracker/CMakeLists.txt.

Determining if the pthread_create exist failed with the following output:
Change Dir: /home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_e6633/fast"
/usr/bin/make -f CMakeFiles/cmTC_e6633.dir/build.make CMakeFiles/cmTC_e6633.dir/build
make[1]: ディレクトリ '/home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp' に入ります
Building C object CMakeFiles/cmTC_e6633.dir/CheckSymbolExists.c.o
/usr/bin/cc   -fPIC    -o CMakeFiles/cmTC_e6633.dir/CheckSymbolExists.c.o   -c /home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTC_e6633
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e6633.dir/link.txt --verbose=1
/usr/bin/cc -fPIC     CMakeFiles/cmTC_e6633.dir/CheckSymbolExists.c.o  -o cmTC_e6633 
CMakeFiles/cmTC_e6633.dir/CheckSymbolExists.c.o: 関数 `main' 内:
CheckSymbolExists.c:(.text+0x14): `pthread_create' に対する定義されていない参照です
CheckSymbolExists.c:(.text+0x18): `pthread_create' に対する定義されていない参照です
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_e6633.dir/build.make:97: recipe for target 'cmTC_e6633' failed
make[1]: *** [cmTC_e6633] Error 1
make[1]: ディレクトリ '/home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp' から出ます
Makefile:126: recipe for target 'cmTC_e6633/fast' failed
make: *** [cmTC_e6633/fast] Error 2

File /home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>

int main(int argc, char** argv)
{
  (void)argv;
#ifndef pthread_create
  return ((int*)(&pthread_create))[argc];
#else
  (void)argc;
  return 0;
#endif
}

Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_f512f/fast"
/usr/bin/make -f CMakeFiles/cmTC_f512f.dir/build.make CMakeFiles/cmTC_f512f.dir/build
make[1]: ディレクトリ '/home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp' に入ります
Building C object CMakeFiles/cmTC_f512f.dir/CheckFunctionExists.c.o
/usr/bin/cc   -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_f512f.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.10/Modules/CheckFunctionExists.c
Linking C executable cmTC_f512f
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_f512f.dir/link.txt --verbose=1
/usr/bin/cc -fPIC -DCHECK_FUNCTION_EXISTS=pthread_create    CMakeFiles/cmTC_f512f.dir/CheckFunctionExists.c.o  -o cmTC_f512f -lpthreads 
/usr/bin/ld: -lpthreads が見つかりません
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_f512f.dir/build.make:97: recipe for target 'cmTC_f512f' failed
make[1]: *** [cmTC_f512f] Error 1
make[1]: ディレクトリ '/home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp' から出ます
Makefile:126: recipe for target 'cmTC_f512f/fast' failed
make: *** [cmTC_f512f/fast] Error 2
jac-hk commented 1 year ago

But I still don't know how to resolve this error.

Determining if the include file opencv2/bgsegm.hpp exists failed with the following output:
Change Dir: /home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_35b2d/fast"
/usr/bin/make -f CMakeFiles/cmTC_35b2d.dir/build.make CMakeFiles/cmTC_35b2d.dir/build
make[1]: ディレクトリ '/home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp' に入ります
Building CXX object CMakeFiles/cmTC_35b2d.dir/CheckIncludeFile.cxx.o
/usr/bin/c++    -fopenmp -Wall -Wextra -pedantic-errors -fPIC    -std=gnu++1z -o CMakeFiles/cmTC_35b2d.dir/CheckIncludeFile.cxx.o -c /home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp/CheckIncludeFile.cxx
/home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp/CheckIncludeFile.cxx:1:10: fatal error: opencv2/bgsegm.hpp: そのようなファイルやディレクトリはありません
 #include <opencv2/bgsegm.hpp>
          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
CMakeFiles/cmTC_35b2d.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_35b2d.dir/CheckIncludeFile.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_35b2d.dir/CheckIncludeFile.cxx.o] Error 1
make[1]: ディレクトリ '/home/gp-taskforce18/workspace/Multitarget-tracker/build/CMakeFiles/CMakeTmp' から出ます
Makefile:126: recipe for target 'cmTC_35b2d/fast' failed
make: *** [cmTC_35b2d/fast] Error 2
jac-hk commented 1 year ago

Above error was resolved by running sudo ln -s /usr/local/include/opencv4/opencv2 /usr/local/include/opencv2 on terminal. Again,I ran make after compiling, but the CarsCounting executable file was not created in the build folder:_(

Nuzhny007 commented 1 year ago

This file: opencv2/bgsegm.hpp It is a part of additional libraries opencv_contrib: https://github.com/opencv/opencv_contrib/tree/4.x/modules/bgsegm So, I have build opencv with opencv_contrib and in cmake set path to my build of opencv

jac-hk commented 1 year ago

Thank you. The error regarding opencv2/bgsegm.hpp has been resolved. opencv includes opencv_contrib. But still CarsCounting won't build. What file is CarsCounting output to? It's possible that I'm misunderstanding.

Nuzhny007 commented 1 year ago

On this holidays I'll try to get Nano and build project on it