-
Notifications
You must be signed in to change notification settings - Fork 17
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
cmake error #1
Comments
maybe you can try to use c++-14 in CMakeLists.txt |
thank your reply, I try it, but it did not work. can you give me the latest cmakelists.txt file? |
@Y-pandaman I can make the project. The CMakeLists.txt is like:
But when I run the code, a bug appears: maybe it can help you. And do you know how to solve this bug? |
ok, I solve this bug. change the superpoint.pt relative dir to abosute dir. |
thanks for your reply, but I did not successed, I want to know if your libtorch file is unzipped and compiled? I did not compiled it, and use it directly. I have taken out all the comments of CMakeLists, it is like:
project( set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Choose the type of build." FORCE) set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} "/home/user/thirdparty/libtorch1.6.0") set(OpenCV_DIR "/home/user/thirdparty/opencv-3.4.11/build") add_subdirectory(src) add_executable(Test main.cpp) add_executable(CreateVoca main_CreateVoca.cpp) |
Sorry for late answer. At first, "TensorOptions" was also tricky when first implemented. I think you can check whether cudatoolkit(10.2 ver) and cudnn are installed properly, If you do things right, SuperPoint2CPP's root folder's CMakeLists.txt works perfect. And Please let me know if you find any problems I missed! |
thanks for your reply, I can use libtorch1.3.0 in other program, but I have compiled it. I download libtorch1.6 using INSTALL_LIBTORCH.sh and unzip it, but I did not compiled it ,I do not know if that is the reason. |
"LibTorch ver 1.6.0 that unzipped by INSTALL_LibTorch.sh" can be used
immediately. I also uncompiled libtorch too!
…On Mon, Dec 14, 2020 at 5:26 PM pandaman ***@***.***> wrote:
thanks for your reply, I can use libtorch1.3.0 in other program, but I
have compiled it. I download libtorch1.6 using INSTALL_LIBTORCH.sh and
unzip it, but I did not compiled it ,I do not know if that is the reason.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMDKCXZVSWIR4TOYS3MRFTDSUXD3ZANCNFSM4URUYGNA>
.
|
Do you compile it with commands:
|
Umm... No. |
thanks for your reply, I try it, but it did not work. = Project binary directory to be built. --target = Build instead of default targets. May only be specified once. --config = For multi-configuration tools, choose . --clean-first = Build target 'clean' first, then build. (To clean only, use --target 'clean'.) --use-stderr = Ignored. Behavior is default in CMake >= 3.0. -- = Pass remaining options to the native tool. ./runSuperPoint.sh: 行 4: ./bin/SuperPoint: 没有那个文件或目录 |
Error messages say that you build files are messed up. And I preferred to git clone my repository newly and build again. Also, you should know that "error: ‘tensor_opts’ was not declared in this scope tensor_opts = c10::TensorOptions()" may be caused by cuda-toolkit version. But you can fix it with small coding! Thank you! |
hello, thank you for your work, when I compile the program,It shown this error :
`SPDetector.hpp:51:10: error: ‘TensorOptions’ in namespace ‘c10’ does not name a type c10::TensorOptions tensor_opts;
error: ‘tensor_opts’ was not declared in this scope tensor_opts = c10::TensorOptions()
error: ‘TensorOptions’ is not a member of ‘c10’ tensor_opts = c10::TensorOptions()`
I do not know if you have this probelm, I am looking forward your reply.
The text was updated successfully, but these errors were encountered: