-
Notifications
You must be signed in to change notification settings - Fork 23
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
How to run the ASRCF_Demo. #8
Comments
Install opencv 2.4 and add this line in your bashrc. |
Thanks a lot,I have done it. |
Hello, I also encountered the problem of opencv when using ubuntu20.04 today. Can I just install opencv2.4 on the computer? Is there any need to pay attention to the version of gcc? Thank you very much for your reply |
I think it's hard to install opencv 2.4, because it only support cuda 8.0 or a lower version , but GPUs now such as GTX 3090 need cuda 11.1 or higher version. So I think the only way to run it is changing the version of opencv that the ASRCF uses. Honestly, I don't know how to change it. So I want to ask the author this question. |
Environment: ubuntu16.04 + GTX1660 + cuda8.0 + cudnn6.0 + opencv3.4.1 + matlab2017a.
The version of gcc and g++: 4.9
I have downloaded the code from github.
First step: run the install
the result is:
Trying to compile MatConvNet with GPU support
/home/lr/code/github/ASRCF/external_libs/matconvnet/matlab/src/bits/nnnormalize.cu(32): warning: unrecognized GCC pragma
/home/lr/code/github/ASRCF/external_libs/matconvnet/matlab/src/bits/nnnormalize.cu(33): warning: unrecognized GCC pragma
/home/lr/code/github/ASRCF/external_libs/matconvnet/matlab/src/bits/nnnormalize.cu(32): warning: unrecognized GCC pragma
/home/lr/code/github/ASRCF/external_libs/matconvnet/matlab/src/bits/nnnormalize.cu(33): warning: unrecognized GCC pragma
Building with 'g++'.
MEX completed successfully.
Building with 'g++'.
MEX completed successfully.
Building with 'g++'.
MEX completed successfully.
Building with 'g++'.
MEX completed successfully.
Building with 'g++'.
MEX completed successfully.
Building with 'gcc'.
MEX completed successfully.
Building with 'gcc'.
MEX completed successfully.
Building with 'gcc'.
MEX completed successfully.
Building with 'gcc'.
MEX completed successfully.
Building with 'gcc'.
MEX completed successfully.
Building with 'gcc'.
MEX completed successfully.
Building with 'gcc'.
MEX completed successfully.
Building with 'gcc'.
MEX completed successfully.
Building with 'gcc'.
MEX completed successfully.
Building with 'gcc'.
MEX completed successfully.
Building with 'gcc'.
MEX completed successfully.
Building with 'gcc'.
MEX completed successfully.
Building with 'gcc'.
MEX completed successfully.
------------------------------->Compile the mex is successful
Second step:
the result is:
Invalid MEX-file '/home/lr/code/github/ASRCF/utils/mexResize.mexa64': Missing dependent
shared libraries:
'libopencv_core.so.2.4' required by '/home/lr/code/github/ASRCF/utils/mexResize.mexa64'
'libopencv_imgproc.so.2.4' required by '/home/lr/code/github/ASRCF/utils/mexResize.mexa64'
Missing symbol '_ZN2cv11_InputArrayC1ERKd' required by
'/home/lr/code/github/ASRCF/utils/mexResize.mexa64'
Missing symbol '_ZN2cv11_InputArrayC1ERKNS_3MatE' required by
'/home/lr/code/github/ASRCF/utils/mexResize.mexa64'
Missing symbol '_ZN2cv12_OutputArrayC1ERNS_3MatE' required by
'/home/lr/code/github/ASRCF/utils/mexResize.mexa64'
Missing symbol '_ZN2cv22SparseMatConstIteratorC1EPKNS_9SparseMatE' required by
'/home/lr/code/github/ASRCF/utils/mexResize.mexa64'
Missing symbol '_ZN2cv22SparseMatConstIteratorppEv' required by
'/home/lr/code/github/ASRCF/utils/mexResize.mexa64'
Missing symbol '_ZN2cv3Mat10deallocateEv' required by
'/home/lr/code/github/ASRCF/utils/mexResize.mexa64'
Missing symbol 'ZN2cv3Mat5setToERKNS_11_InputArrayES3' required by
'/home/lr/code/github/ASRCF/utils/mexResize.mexa64'
Missing symbol '_ZN2cv3Mat6createEiPKii' required by
'/home/lr/code/github/ASRCF/utils/mexResize.mexa64'
Missing symbol 'ZN2cv3Mat8copySizeERKS0' required by
'/home/lr/code/github/ASRCF/utils/mexResize.mexa64'
Missing symbol '_ZN2cv3MatC1EiPKiiPvPKm' required by
'/home/lr/code/github/ASRCF/utils/mexResize.mexa64'
Missing symbol '_ZN2cv5mergeERKSt6vectorINS_3MatESaIS1_EERKNS_12_OutputArrayE' required by
'/home/lr/code/github/ASRCF/utils/mexResize.mexa64'
Missing symbol '_ZN2cv5splitERKNS_3MatERSt6vectorIS0_SaIS0_EE' required by
'/home/lr/code/github/ASRCF/utils/mexResize.mexa64'
Missing symbol '_ZN2cv6resizeERKNS_11_InputArrayERKNS_12_OutputArrayENS_5Size_IiEEddi'
required by '/home/lr/code/github/ASRCF/utils/mexResize.mexa64'
Missing symbol '_ZN2cv7compareERKNS_11_InputArrayES2_RKNS_12_OutputArrayEi' required by
'/home/lr/code/github/ASRCF/utils/mexResize.mexa64'
Missing symbol '_ZN2cv8fastFreeEPv' required by
'/home/lr/code/github/ASRCF/utils/mexResize.mexa64'
Missing symbol '_ZN2cv9SparseMat3ptrEiibPm' required by
'/home/lr/code/github/ASRCF/utils/mexResize.mexa64'
Missing symbol '_ZN2cv9SparseMat6createEiPKii' required by
'/home/lr/code/github/ASRCF/utils/mexResize.mexa64'
Missing symbol '_ZNK2cv3Mat1tEv' required by
'/home/lr/code/github/ASRCF/utils/mexResize.mexa64'
Missing symbol '_ZNK2cv3Mat9convertToERKNS_12_OutputArrayEidd' required by
'/home/lr/code/github/ASRCF/utils/mexResize.mexa64'.
I do not how to slove the problem,the version of opencv is 3.4.1 on my computer,and I know the version of ASRCF is opencv2.4.1.maybe is the version of opencv ,but I have configured many projects with opencv3.4.1,so I don't want to remove the opencv3.4.1 ,Can you help you.
Thank you very much.
The text was updated successfully, but these errors were encountered: