nothinglo / NISwGSP

C++ implementation of the ECCV 2016 paper, Natural Image Stitching with the Global Similarity Prior.
332 stars 124 forks source link

How to config the VLFEAT_LIBRARY #27

Open Firststep2014 opened 5 years ago

Firststep2014 commented 5 years ago

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

captainfffsama commented 5 years ago

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...

sheMnapion commented 4 years ago

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!

GuangwenSi commented 4 years ago

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

BKAUTO commented 4 years ago

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.