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

How to config the VLFEAT_LIBRARY #27

Open
Firststep2014 opened this issue Jun 20, 2019 · 4 comments
Open

How to config the VLFEAT_LIBRARY #27

Firststep2014 opened this issue Jun 20, 2019 · 4 comments

Comments

@Firststep2014
Copy link

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
Copy link

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
Copy link

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
Copy link

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

@BKAUTO
Copy link

BKAUTO commented Feb 13, 2020

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.

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

5 participants