opencv2.4.5 64位 配置

来源:互联网 发布:虚拟币交易软件 编辑:程序博客网 时间:2024/05/01 09:36

常规配置不罗嗦

常规配置完成后编译仍出现错误

????? C:\jtc\ShowImageDll\Debug\ShowImageDll.lib ??? C:\ShowImageDll\Debug\ShowImageDll.exp1>ShowImageDll.obj : error LNK2019: ????????? _cvWaitKey,?????? "void __cdecl showImage(int)" (?showImage@@YAXH@Z) ????1>ShowImageDll.obj : error LNK2019: ????????? "void __cdecl cv::imshow(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class cv::_InputArray const &)" (?imshow@cv@@YAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV_InputArray@1@@Z),?????? "void __cdecl showImage(int)" (?showImage@@YAXH@Z) ????1>ShowImageDll.obj : error LNK2019: ????????? "public: __thiscall cv::_InputArray::_InputArray(class cv::Mat const &)" (??0_InputArray@cv@@QAE@ABVMat@1@@Z),?????? "void __cdecl showImage(int)" (?showImage@@YAXH@Z) ????1>ShowImageDll.obj : error LNK2019: ????????? "void __cdecl cv::fastFree(void *)" (?fastFree@cv@@YAXPAX@Z),?????? "public: __thiscall cv::Mat::~Mat(void)" (??1Mat@cv@@QAE@XZ) ????1>ShowImageDll.obj : error LNK2019: ????????? "public: void __thiscall cv::Mat::create(int,int const *,int)" (?create@Mat@cv@@QAEXHPBHH@Z),?????? "public: void __thiscall cv::Mat::create(int,int,int)" (?create@Mat@cv@@QAEXHHH@Z) ????1>ShowImageDll.obj : error LNK2019: ????????? "public: void __thiscall cv::Mat::deallocate(void)" (?deallocate@Mat@cv@@QAEXXZ),?????? "public: void __thiscall cv::Mat::release(void)" (?release@Mat@cv@@QAEXXZ) ????1>ShowImageDll.obj : error LNK2019: ????????? "int __cdecl cv::_interlockedExchangeAdd(int *,int)" (?_interlockedExchangeAdd@cv@@YAHPAHH@Z),?????? "public: void __thiscall cv::Mat::release(void)" (?release@Mat@cv@@QAEXXZ) ????1>C:\ShowImageDll\Debug\ShowImageDll.dll : fatal error LNK1120: 7 ??????????
这是因为vs2010的编译平台是x86所致。解决方法:点击F5旁边的“Debug”,在下拉链表里边选择“配置管理器”。进入配置管理器后,把Win32改成X64  OK
                                             
0 0
原创粉丝点击