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

How to run the ASRCF_Demo. #8

Open
Lee-AI-sco opened this issue Aug 23, 2019 · 4 comments
Open

How to run the ASRCF_Demo. #8

Lee-AI-sco opened this issue Aug 23, 2019 · 4 comments

Comments

@Lee-AI-sco
Copy link

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.

@Daikenan
Copy link
Owner

Daikenan commented Aug 23, 2019

Install opencv 2.4 and add this line in your bashrc.
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libstdc++.so.6:/usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4
You can install multiple versions of opencv and then specify the path to the version you need.

@Lee-AI-sco
Copy link
Author

Thanks a lot,I have done it.

@Wangbiao2
Copy link

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

@NoRealBlank
Copy link

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.

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

4 participants