rmsalinas / fbow

FBOW (Fast Bag of Words) is an extremmely optimized version of the DBow2/DBow3 libraries.
570 stars 141 forks source link

Issues when creating boost.python wrapper #32

Closed vik748 closed 4 years ago

vik748 commented 4 years ago

Hi, I am trying to create a boost.python wrapper for this library based on the pyDBoW3 wrapper created by @foxis. However, I have run into an interesting issue where I am unable to import into python when I reference any function from fbow's vocabular_creator.h.

My wrapper repo is at https://github.com/vik748/pyfbow and the full detailed description of the issue is on stackoverflow.

I suspect that there might be issues due to the compiler flags used to optimize the code using AVX, SSE and MMX. In order to address this, I also tried compiling pyfbow in the same package with the same CMakeLists.txt, but that didn't help either.

Since pyDBoW3 wrapper worked, I was hoping you can shed some light onto the subtle differences in fbow that might be causing conflicts / issues.

Thanks in advance for your help.

Cheers !

vik748 commented 4 years ago

This CMake from this repo sets the fbar_LIBS variable while my CMakeLists was reading the fbar_LIBRARIES variable which was causing issue when linking.