Closed wentasah closed 6 years ago
Commit 8b28efcd5c939b1d41ce02ac0c2e267d204e4e72 causes the following compile errors:
FAILED: /usr/bin/c++ -DCUFFT -DTEMPLATE_COMPLEXMAT -I/usr/include/opencv -I. -I../src -I../src/piotr_fhog -I../src/cn -I../sse2neon -I/usr/local/cuda/include -std=c++11 -Wall -Wextra -pedantic -Wno-long-long -fno-omit-frame-pointer -pthread -Wno-unknown-pragmas -O3 -DNDEBUG -MMD -MT src/CMakeFiles/kcf.dir/kcf.cpp.o -MF src/CMakeFiles/kcf.dir/kcf.cpp.o.d -o src/CMakeFiles/kcf.dir/kcf.cpp.o -c ../src/kcf.cpp In file included from ../src/complexmat.cuh:9:0, from ../src/kcf.h:9, from ../src/kcf.cpp:1: ../src/kcf.cpp: In member function ‘void KCF_Tracker::init(cv::Mat&, const Rect&, int, int)’: ../src/kcf.cpp:187:40: error: ‘gauss_corr_res’ was not declared in this scope CudaSafeCall(cudaMalloc((void**)&gauss_corr_res, (p_windows_size[0]/p_cell_size)*(p_windows_size[1]/p_cell_size)*p_num_scales*sizeof(float))); ^ ../src/cuda/cuda_error_check.cuh:7:45: note: in definition of macro ‘CudaSafeCall’ #define CudaSafeCall( err ) __cudaSafeCall( err, __FILE__, __LINE__ ) ^ ../src/kcf.cpp: In member function ‘ComplexMat KCF_Tracker::gaussian_correlation(const ComplexMat&, const ComplexMat&, double, bool)’: ../src/kcf.cpp:701:37: error: no matching function for call to ‘ComplexMat::sqr_norm() const’ float xf_sqr_norm = xf.sqr_norm(); ^ In file included from ../src/kcf.h:9:0, from ../src/kcf.cpp:1: ../src/complexmat.cuh:71:10: note: candidate: void ComplexMat::sqr_norm(float*) const void sqr_norm(float *result) const; ^ ../src/complexmat.cuh:71:10: note: candidate expects 1 argument, 0 provided ../src/kcf.cpp:702:69: error: no matching function for call to ‘ComplexMat::sqr_norm() const’ float yf_sqr_norm =auto_correlation ? xf_sqr_norm : yf.sqr_norm(); ^ In file included from ../src/kcf.h:9:0, from ../src/kcf.cpp:1: ../src/complexmat.cuh:71:10: note: candidate: void ComplexMat::sqr_norm(float*) const void sqr_norm(float *result) const; ^ ../src/complexmat.cuh:71:10: note: candidate expects 1 argument, 0 provided ../src/kcf.cpp:709:57: error: ‘gauss_corr_res’ was not declared in this scope cuda_gaussian_correlation(fft.inverse_raw(xyf), gauss_corr_res, xf_sqr_norm_d, xf_sqr_norm_d, sigma, xf.n_channels, xf.n_scales, p_roi_height, p_roi_width); ^ ../src/kcf.cpp:709:73: error: ‘xf_sqr_norm_d’ was not declared in this scope cuda_gaussian_correlation(fft.inverse_raw(xyf), gauss_corr_res, xf_sqr_norm_d, xf_sqr_norm_d, sigma, xf.n_channels, xf.n_scales, p_roi_height, p_roi_width); ^ ../src/kcf.cpp:711:57: error: ‘gauss_corr_res’ was not declared in this scope cuda_gaussian_correlation(fft.inverse_raw(xyf), gauss_corr_res, xf_sqr_norm_d, yf_sqr_norm_d, sigma, xf.n_channels, xf.n_scales, p_roi_height, p_roi_width); ^ ../src/kcf.cpp:711:73: error: ‘xf_sqr_norm_d’ was not declared in this scope cuda_gaussian_correlation(fft.inverse_raw(xyf), gauss_corr_res, xf_sqr_norm_d, yf_sqr_norm_d, sigma, xf.n_channels, xf.n_scales, p_roi_height, p_roi_width); ^ ../src/kcf.cpp:711:88: error: ‘yf_sqr_norm_d’ was not declared in this scope cuda_gaussian_correlation(fft.inverse_raw(xyf), gauss_corr_res, xf_sqr_norm_d, yf_sqr_norm_d, sigma, xf.n_channels, xf.n_scales, p_roi_height, p_roi_width); ^ ../src/kcf.cpp:713:28: error: ‘gauss_corr_res’ was not declared in this scope return fft.forward_raw(gauss_corr_res, xf.n_scales==p_num_scales); ^ ../src/kcf.cpp:702:11: warning: unused variable ‘yf_sqr_norm’ [-Wunused-variable] float yf_sqr_norm =auto_correlation ? xf_sqr_norm : yf.sqr_norm();
Sorry for closing the issue by mistake in my last commit.
Commit 8b28efcd5c939b1d41ce02ac0c2e267d204e4e72 causes the following compile errors: