Celebrandil / CudaSift

A CUDA implementation of SIFT for NVidia GPUs (1.2 ms on a GTX 1060)
MIT License
856 stars 287 forks source link

library conflict #59

Closed bigdimboom closed 5 years ago

bigdimboom commented 5 years ago

System: win32-vc140-debug nvcc 8.0

geomFuncs.obj : error LNK2019: unresolved external symbol "void cdecl cv::fastFree(void *)" (?fastFree@cv@@YAXPAX@Z) referenced in function "public: thiscall cv::Mat::~Mat(void)" (??1Mat@cv@@QAE@XZ) 2>mainSift.obj : error LNK2001: unresolved external symbol "void cdecl cv::fastFree(void )" (?fastFree@cv@@YAXPAX@Z) 2>geomFuncs.obj : error LNK2019: unresolved external symbol "private: char thiscall cv::String::allocate(unsigned int)" (?allocate@String@cv@@AAEPADI@Z) referenced in function "public: thiscall cv::String::String(char const )" (??0String@cv@@QAE@PBD@Z) 2>mainSift.obj : error LNK2001: unresolved external symbol "private: char thiscall cv::String::allocate(unsigned int)" (?allocate@String@cv@@AAEPADI@Z) 2>geomFuncs.obj : error LNK2019: unresolved external symbol "private: void thiscall cv::String::deallocate(void)" (?deallocate@String@cv@@AAEXXZ) referenced in function "public: thiscall cv::String::~String(void)" (??1String@cv@@QAE@XZ) 2>mainSift.obj : error LNK2001: unresolved external symbol "private: void thiscall cv::String::deallocate(void)" (?deallocate@String@cv@@AAEXXZ) 2>geomFuncs.obj : error LNK2019: unresolved external symbol "void cdecl cv::error(int,class cv::String const &,char const ,char const ,int)" (?error@cv@@YAXHABVString@1@PBD1H@Z) referenced in function "public: double & thiscall cv::Mat::at(int)" (??$at@N@Mat@cv@@QAEAANH@Z) 2>geomFuncs.obj : error LNK2019: unresolved external symbol "public: class cv::Mat & thiscall cv::Mat::operator=(class cv::Scalar const &)" (??4Mat@cv@@QAEAAV01@ABV?$Scalar@N@1@@Z) referenced in function "int cdecl ImproveHomography(struct SiftData &,float *,int,float,float,float)" (?ImproveHomography@@YAHAAUSiftData@@PAMHMMM@Z) 2>geomFuncs.obj : error LNK2019: unresolved external symbol "public: void thiscall cv::Mat::create(int,int const ,int)" (?create@Mat@cv@@QAEXHPBHH@Z) referenced in function "public: void thiscall cv::Mat::create(int,int,int)" (?create@Mat@cv@@QAEXHHH@Z) 2>geomFuncs.obj : error LNK2019: unresolved external symbol "public: void thiscall cv::Mat::deallocate(void)" (?deallocate@Mat@cv@@QAEXXZ) referenced in function "public: void thiscall cv::Mat::release(void)" (?release@Mat@cv@@QAEXXZ) 2>mainSift.obj : error LNK2001: unresolved external symbol "public: void thiscall cv::Mat::deallocate(void)" (?deallocate@Mat@cv@@QAEXXZ) 2>geomFuncs.obj : error LNK2019: unresolved external symbol "class cv::MatExpr __cdecl cv::operator(class cv::Mat const &,double)" (??Dcv@@YA?AVMatExpr@0@ABVMat@0@N@Z) referenced in function "int cdecl ImproveHomography(struct SiftData &,float *,int,float,float,float)" (?ImproveHomography@@YAHAAUSiftData@@PAMHMMM@Z) 2>geomFuncs.obj : error LNK2019: unresolved external symbol "class cv::MatExpr cdecl cv::operator(class cv::MatExpr const &,double)" (??Dcv@@YA?AVMatExpr@0@ABV10@N@Z) referenced in function "int __cdecl ImproveHomography(struct SiftData &,float ,int,float,float,float)" (?ImproveHomography@@YAHAAUSiftData@@PAMHMMM@Z) 2>geomFuncs.obj : error LNK2019: unresolved external symbol "bool cdecl cv::solve(class cv::debug_build_guard::_InputArray const &,class cv::debug_build_guard::_InputArray const &,class cv::debug_build_guard::_OutputArray const &,int)" (?solve@cv@@YA_NABV_InputArray@debug_build_guard@1@0ABV_OutputArray@31@H@Z) referenced in function "int cdecl ImproveHomography(struct SiftData &,float *,int,float,float,float)" (?ImproveHomography@@YAHAAUSiftData@@PAMHMMM@Z) 2>mainSift.obj : error LNK2019: unresolved external symbol "public: void thiscall cv::Mat::convertTo(class cv::debug_build_guard::_OutputArray const &,int,double,double)const " (?convertTo@Mat@cv@@QBEXABV_OutputArray@debug_build_guard@2@HNN@Z) referenced in function _main 2>mainSift.obj : error LNK2019: unresolved external symbol "class cv::Mat __cdecl cv::imread(class cv::String const &,int)" (?imread@cv@@YA?AVMat@1@ABVString@1@H@Z) referenced in function _main 2>mainSift.obj : error LNK2019: unresolved external symbol "bool cdecl cv::imwrite(class cv::String const &,class cv::debug_build_guard::_InputArray const &,class std::vector<int,class std::allocator > const &)" (?imwrite@cv@@YA_NABVString@1@ABV_InputArray@debug_build_guard@1@ABV?$vector@HV?$allocator@H@std@@@std@@@Z) referenced in function _main

bigdimboom commented 5 years ago

I think host function signatures are conflicting to device function signature. How should I fix that?

bigdimboom commented 5 years ago

so I changed a little bit build config and it builds now. But the result of running siftmain.cpp on sample data is 0 matches? uh?