-
Notifications
You must be signed in to change notification settings - Fork 115
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 use popsift as API? #152
Comments
You have just to adapt the popsift-demo code inside your project. If you need to add popsift to your cmake project you can just check the documentation |
Hello @simogasp CMakeLists.txt file is : cmake_minimum_required(VERSION 3.0)
project(PopSift)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED True)
# Find the package from the PopSiftConfig.cmake
# in <prefix>/lib/cmake/PopSift/. Under the namespace PopSift::
# it exposes the target popsift that allows you to compile
# and link with the library
find_package(PopSift CONFIG REQUIRED)
# suppose you want to try it out in a executable
add_executable(poptest main.cpp)
# add link to the library
target_link_libraries(poptest PUBLIC PopSift::popsift) and while configuring using command : cmake .. -DPopSift_DIR=/home/surveyaan/sagar/popsift/build/src/generated/ I am getting the following error :
|
You should avoid using intree build. First install popsift in a directory of your preference (NOT a system one like /usr/local) and then make
Also note that if you are using a CUDA > 8 then the c++ standard used by popsift is 14. |
Hello @simogasp ,
I have downloaded and build popsift in ubuntu 22.04 and it working fine when i am using popsift-demo to find features but i am unable to use it as an API. Could you please suggest the proper way of using popsift as API.
Thank you.
The text was updated successfully, but these errors were encountered: