Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get erro when run make #16

Open
zhuhongyue opened this issue Dec 9, 2018 · 1 comment
Open

get erro when run make #16

zhuhongyue opened this issue Dec 9, 2018 · 1 comment

Comments

@zhuhongyue
Copy link

Here is the log:

[ 33%] Automatic moc for target compute_flow
[ 33%] Built target compute_flow_automoc
Scanning dependencies of target compute_flow
[ 66%] Building CXX object CMakeFiles/compute_flow.dir/compute_flow.o
/home/mzy/zero-shot4video/gpu_flow/compute_flow.cpp: In function ‘int main(int, char**)’:
/home/mzy/zero-shot4video/gpu_flow/compute_flow.cpp:263:11: warning: unused variable ‘fx’ [-Wunused-variable]
FILE fx = fopen(outfile.c_str(),"wb");
^
/home/mzy/zero-shot4video/gpu_flow/compute_flow.cpp:282:44: warning: variable ‘width_out’ set but not used [-Wunused-but-set-variable]
int nframes = 0, width = 0, height = 0, width_out = 0, height_out = 0;
^
/home/mzy/zero-shot4video/gpu_flow/compute_flow.cpp:282:59: warning: variable ‘height_out’ set but not used [-Wunused-but-set-variable]
int nframes = 0, width = 0, height = 0, width_out = 0, height_out = 0;
^
/home/mzy/zero-shot4video/gpu_flow/compute_flow.cpp: In function ‘void cv::DefaultDeleter::operator()(Y
) const [with Y = cv::flann::KDTreeIndexParams]’:
/home/mzy/zero-shot4video/gpu_flow/compute_flow.cpp:473:1: note: file /home/mzy/zero-shot4video/gpu_flow/build/CMakeFiles/compute_flow.dir/compute_flow.gcda not found, execution counts estimated
}
^
[100%] Building CXX object CMakeFiles/compute_flow.dir/compute_flow_automoc.o
Linking CXX executable compute_flow
CMakeFiles/compute_flow.dir/compute_flow.o: In function ~GpuMat': /usr/local/include/opencv2/core/gpumat.hpp:374: undefined reference to cv::gpu::GpuMat::release()'
/usr/local/include/opencv2/core/gpumat.hpp:374: undefined reference to cv::gpu::GpuMat::release()' /usr/local/include/opencv2/core/gpumat.hpp:374: undefined reference to cv::gpu::GpuMat::release()'
/usr/local/include/opencv2/core/gpumat.hpp:374: undefined reference to cv::gpu::GpuMat::release()' /usr/local/include/opencv2/core/gpumat.hpp:374: undefined reference to cv::gpu::GpuMat::release()'
CMakeFiles/compute_flow.dir/compute_flow.o:/usr/local/include/opencv2/core/gpumat.hpp:374: more undefined references to cv::gpu::GpuMat::release()' follow CMakeFiles/compute_flow.dir/compute_flow.o: In function main':
/home/mzy/zero-shot4video/gpu_flow/compute_flow.cpp:169: undefined reference to cv::gpu::setDevice(int)' /home/mzy/zero-shot4video/gpu_flow/compute_flow.cpp:173: undefined reference to cv::gpu::getDevice()'
/home/mzy/zero-shot4video/gpu_flow/compute_flow.cpp:173: undefined reference to cv::gpu::printShortCudaDeviceInfo(int)' /home/mzy/zero-shot4video/gpu_flow/compute_flow.cpp:177: undefined reference to cv::gpu::OpticalFlowDual_TVL1_GPU::OpticalFlowDual_TVL1_GPU()'
/home/mzy/zero-shot4video/gpu_flow/compute_flow.cpp:352: undefined reference to cv::gpu::GpuMat::upload(cv::Mat const&)' /home/mzy/zero-shot4video/gpu_flow/compute_flow.cpp:353: undefined reference to cv::gpu::GpuMat::upload(cv::Mat const&)'
/home/mzy/zero-shot4video/gpu_flow/compute_flow.cpp:354: undefined reference to cv::gpu::OpticalFlowDual_TVL1_GPU::operator()(cv::gpu::GpuMat const&, cv::gpu::GpuMat const&, cv::gpu::GpuMat&, cv::gpu::GpuMat&)' /home/mzy/zero-shot4video/gpu_flow/compute_flow.cpp:357: undefined reference to cv::gpu::GpuMat::download(cv::Mat&) const'
/home/mzy/zero-shot4video/gpu_flow/compute_flow.cpp:358: undefined reference to cv::gpu::GpuMat::download(cv::Mat&) const' /home/mzy/zero-shot4video/gpu_flow/compute_flow.cpp:348: undefined reference to cv::gpu::GpuMat::upload(cv::Mat const&)'
/home/mzy/zero-shot4video/gpu_flow/compute_flow.cpp:349: undefined reference to cv::gpu::GpuMat::upload(cv::Mat const&)' CMakeFiles/compute_flow.dir/compute_flow.o: In function main':
/usr/local/include/opencv2/gpu/gpu.hpp:1742: undefined reference to cv::gpu::Stream::Null()' CMakeFiles/compute_flow.dir/compute_flow.o: In function main':
/home/mzy/zero-shot4video/gpu_flow/compute_flow.cpp:350: undefined reference to cv::gpu::BroxOpticalFlow::operator()(cv::gpu::GpuMat const&, cv::gpu::GpuMat const&, cv::gpu::GpuMat&, cv::gpu::GpuMat&, cv::gpu::Stream&)' CMakeFiles/compute_flow.dir/compute_flow.o: In function ~GpuMat':
/usr/local/include/opencv2/core/gpumat.hpp:374: undefined reference to cv::gpu::GpuMat::release()' /usr/local/include/opencv2/core/gpumat.hpp:374: undefined reference to cv::gpu::GpuMat::release()'
/usr/local/include/opencv2/core/gpumat.hpp:374: undefined reference to cv::gpu::GpuMat::release()' /usr/local/include/opencv2/core/gpumat.hpp:374: undefined reference to cv::gpu::GpuMat::release()'
/usr/local/include/opencv2/core/gpumat.hpp:374: undefined reference to cv::gpu::GpuMat::release()' CMakeFiles/compute_flow.dir/compute_flow.o:/usr/local/include/opencv2/core/gpumat.hpp:374: more undefined references to cv::gpu::GpuMat::release()' follow
/home/mzy/anaconda3/lib/libQt5Core.so.5.9.5: undefined reference to __cxa_throw_bad_array_new_length@CXXABI_1.3.8' /home/mzy/anaconda3/lib/libQt5Core.so.5.9.5: undefined reference to operator delete(void*, unsigned long)@CXXABI_1.3.9'
/home/mzy/anaconda3/lib/libQt5Core.so.5.9.5: undefined reference to `operator delete[](void*, unsigned long)@CXXABI_1.3.9'
collect2: error: ld returned 1 exit status
make[2]: *** [compute_flow] Error 1
make[1]: *** [CMakeFiles/compute_flow.dir/all] Error 2
make: *** [all] Error 2

Any solution for this issue?

@Chelgan
Copy link

Chelgan commented Aug 22, 2019

Do you have a solution now?I am also facing this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants