nbergst / cuda_aruco

Aruco library with cuda optimizations
Other
19 stars 5 forks source link

Building on Windows, unresolved errors #4

Closed antithing closed 3 years ago

antithing commented 3 years ago

Hi, and thank you for making this code available! i am building in visual studio 2019, windows 10, and am having trouble compiling.

The cuda_aruco lib compiles fine, but the aruco lib gives me unresolved external symbol errors.

Severity    Code    Description Project File    Line    Suppression State
Error   LNK2019 unresolved external symbol "public: void __cdecl cuda_aruco::CudaProcessor::cuda_threshold(class CudaImage &,float *,unsigned __int64,class CudaImage &,double *,double)" (?cuda_threshold@CudaProcessor@cuda_aruco@@QEAAXAEAVCudaImage@@PEAM_K0PEANN@Z) referenced in function "public: void __cdecl aruco::MarkerDetector::detect(class cv::Mat const &,class std::vector<class aruco::Marker,class std::allocator<class aruco::Marker> > &,class cv::Mat,class cv::Mat,float,bool)" (?detect@MarkerDetector@aruco@@QEAAXAEBVMat@cv@@AEAV?$vector@VMarker@aruco@@V?$allocator@VMarker@aruco@@@std@@@std@@V34@2M_N@Z)  aruco   D:\Testing\cuda_aruco-master\built\src\markerdetector.obj   1   

Severity    Code    Description Project File    Line    Suppression State
Error   LNK2001 unresolved external symbol "public: __cdecl CudaImage::~CudaImage(void)" (??1CudaImage@@QEAA@XZ)    aruco   D:\Testing\cuda_aruco-master\built\src\chromaticmask.obj    1

cuda_aruco.lib is loaded as a dependency, as is cudart_static.lib. What might I be missing here?

Thank you!

antithing commented 3 years ago

Ah, as usual, user error. i had not changed the cuda_aruco build type from 'dll' to 'lib. Thanks!