Celebrandil / CudaSift

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

trouble running mainsift #78

Open aliikram97 opened 3 years ago

aliikram97 commented 3 years ago

i am having trouble running the mainsift file i am a bit new to cuda developing any help in this will be much appreciated

(base) hw12@hw12-OptiPlex-9020:~/visual studio project/CudaSift-Pascal$ nvcc mainSift.cpp -o output pkg-config --cflags --libs opencv /tmp/tmpxft_00006d02_00000000-5_mainSift.o: In function main': mainSift.cpp:(.text+0x40f): undefined reference toInitCuda(int)' mainSift.cpp:(.text+0x41e): undefined reference to CudaImage::CudaImage()' mainSift.cpp:(.text+0x42d): undefined reference toCudaImage::CudaImage()' mainSift.cpp:(.text+0x446): undefined reference to iAlignUp(int, int)' mainSift.cpp:(.text+0x474): undefined reference toCudaImage::Allocate(int, int, int, bool, float, float)' mainSift.cpp:(.text+0x491): undefined reference to iAlignUp(int, int)' mainSift.cpp:(.text+0x4bf): undefined reference toCudaImage::Allocate(int, int, int, bool, float, float)' mainSift.cpp:(.text+0x4d2): undefined reference to CudaImage::Download()' mainSift.cpp:(.text+0x4e1): undefined reference toCudaImage::Download()' mainSift.cpp:(.text+0x532): undefined reference to InitSiftData(SiftData&, int, bool, bool)' mainSift.cpp:(.text+0x550): undefined reference toInitSiftData(SiftData&, int, bool, bool)' mainSift.cpp:(.text+0x56d): undefined reference to AllocSiftTempMemory(int, int, int, bool)' mainSift.cpp:(.text+0x5cc): undefined reference toExtractSift(SiftData&, CudaImage&, int, double, float, float, bool, float)' mainSift.cpp:(.text+0x60a): undefined reference to `ExtractSift(SiftData&, CudaImage&, int, double, float, float, bool, float)' mainSift.cpp:(.text+0x625): undefined reference to FreeSiftTempMemory(float*)' mainSift.cpp:(.text+0x651): undefined reference toMatchSiftData(SiftData&, SiftData&)' mainSift.cpp:(.text+0x68d): undefined reference to FindHomography(SiftData&, float*, int*, int, float, float, float)' mainSift.cpp:(.text+0x6bc): undefined reference toImproveHomography(SiftData&, float*, int, float, float, float)' mainSift.cpp:(.text+0x8f6): undefined reference to FreeSiftData(SiftData&)' mainSift.cpp:(.text+0x905): undefined reference toFreeSiftData(SiftData&)' mainSift.cpp:(.text+0x914): undefined reference to CudaImage::~CudaImage()' mainSift.cpp:(.text+0x923): undefined reference toCudaImage::~CudaImage()' mainSift.cpp:(.text+0xa80): undefined reference to CudaImage::~CudaImage()' mainSift.cpp:(.text+0xa94): undefined reference toCudaImage::~CudaImage()'

this is the error and the command used to run the code