Daikenan / ASRCF

CVPR2019 Oral
102 stars 23 forks source link

编译的问题??? #7

Closed Lee-AI-sco closed 4 years ago

Lee-AI-sco commented 5 years ago

编译环境ubuntu16.04 + GTX1660 + cuda8.0 + cudnn6.0 + opencv3.4.1 + matlab2017a. gcc和g++版本为4.9 从github上将ASRCF代码下载后。 第一步:运行install 显示以下: 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. 说明mex编译成功。

第二部:运行ASRCF_Demo.m 显示如下: 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_11InputArrayES3' 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'.

是什么原因导致这些问题?是因为opencv版本的问题吗?我用的是opencv3.4.1版本。请赐教。