NISwGSP icon indicating copy to clipboard operation
NISwGSP copied to clipboard

How to config the VLFEAT_LIBRARY

Open Firststep2014 opened this issue 5 years ago • 4 comments

you've mentioned here like this use the CMake to configure the project and make sure set the VLFEAT_LIBRARY with the "./vlfeat-0.9.20/bin/(the name depend on you system)/libvl"* I don't quite understand how to configure,while I change the CMakeLists.txt like this set(VLFEAT_LIBRARY ./vlfeat-0.9.20/bin/glnxa64/libvl), it turns to be /usr/bin/ld: cannot find -l./vlfeat-0.9.20/bin/glnxa64/libvl

Firststep2014 avatar Jun 20 '19 16:06 Firststep2014

I use the cmake-gui to configure the VLFEAT_LIBRARY successfully. firstly:

cd ./vlfeat-0.9.20/
make

If make success,in your vlfeat-0.9.20 dir you can find bin folder the just run cmake-gui and configure VLFEAT_LIBRARY with ./vlfeat-0.9.20/bin/(the name depend on you system)/libvl then click configure button,after it done,close the cmake-gui and continue run the cmake and make...

captainfffsama avatar Sep 11 '19 07:09 captainfffsama

Hi, I face exactly the same question on a Ubuntu 16.04 machine, but when I make under ./vlfeat-0.9.20, there doesn't seem to be a CMakeLists.txt to configure VLFEAT_LIBRARY on cmake-gui. Could you please offer more details about your solution? Thanks a lot!

sheMnapion avatar Oct 28 '19 14:10 sheMnapion

ok i have faced the same question, if you solved the problem please tell me

GuangwenSi avatar Jan 09 '20 07:01 GuangwenSi

I ran into the same issue and got it fixed. After finishing making the vlfeat-0.9.20, you can simply go to UglyMan_NISwGSP_Stitching/CMakeLists.txt and modify the last line to this: target_link_libraries(NISwGSP ${OpenCV_LIBS} "/the full path to your vlfeat bin/libvl.so")

For me, it is like: target_link_libraries(NISwGSP ${OpenCV_LIBS} "/home/wbk/Desktop/UG_Thesis/NISwGSP-master/UglyMan_NISwGSP_Stitching/UglyMan_NISwGSP_Stitching/vlfeat-0.9.20/bin/glnxa64/libvl.so")

This is a simple way to link the VLFEAT library to the project if you're not so familiar with CMake.

BKAUTO avatar Feb 13 '20 12:02 BKAUTO