Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trouble running mainsift #78

Open
aliikram97 opened this issue Sep 17, 2021 · 0 comments
Open

trouble running mainsift #78

aliikram97 opened this issue Sep 17, 2021 · 0 comments

Comments

@aliikram97
Copy link

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 to InitCuda(int)'
mainSift.cpp:(.text+0x41e): undefined reference to CudaImage::CudaImage()' mainSift.cpp:(.text+0x42d): undefined reference to CudaImage::CudaImage()'
mainSift.cpp:(.text+0x446): undefined reference to iAlignUp(int, int)' mainSift.cpp:(.text+0x474): undefined reference to CudaImage::Allocate(int, int, int, bool, float*, float*)'
mainSift.cpp:(.text+0x491): undefined reference to iAlignUp(int, int)' mainSift.cpp:(.text+0x4bf): undefined reference to CudaImage::Allocate(int, int, int, bool, float*, float*)'
mainSift.cpp:(.text+0x4d2): undefined reference to CudaImage::Download()' mainSift.cpp:(.text+0x4e1): undefined reference to CudaImage::Download()'
mainSift.cpp:(.text+0x532): undefined reference to InitSiftData(SiftData&, int, bool, bool)' mainSift.cpp:(.text+0x550): undefined reference to InitSiftData(SiftData&, int, bool, bool)'
mainSift.cpp:(.text+0x56d): undefined reference to AllocSiftTempMemory(int, int, int, bool)' mainSift.cpp:(.text+0x5cc): undefined reference to ExtractSift(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 to MatchSiftData(SiftData&, SiftData&)' mainSift.cpp:(.text+0x68d): undefined reference to FindHomography(SiftData&, float*, int*, int, float, float, float)'
mainSift.cpp:(.text+0x6bc): undefined reference to ImproveHomography(SiftData&, float*, int, float, float, float)' mainSift.cpp:(.text+0x8f6): undefined reference to FreeSiftData(SiftData&)'
mainSift.cpp:(.text+0x905): undefined reference to FreeSiftData(SiftData&)' mainSift.cpp:(.text+0x914): undefined reference to CudaImage::~CudaImage()'
mainSift.cpp:(.text+0x923): undefined reference to CudaImage::~CudaImage()' mainSift.cpp:(.text+0xa80): undefined reference to CudaImage::~CudaImage()'
mainSift.cpp:(.text+0xa94): undefined reference to `CudaImage::~CudaImage()'

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant