-
Notifications
You must be signed in to change notification settings - Fork 84
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
Cannot install KORTEX API #172
Comments
Hi @TomSAVU, This is not an error with our API, it seems like you are not using the C++ We provide instructions on how to build and setup your environment : https://github.com/Kinovarobotics/kortex/tree/master/api_cpp/examples If you follow these instructions and tell me where you get stuck, I could maybe help you more. There is very little I can do to help you if you are using Clion, that I do not use, and it doesn't work. Best, |
Thanks Felix, |
In Visual Studio 2022 it shows me 25 similar errors, first one in hash.h line 241, which is There is a Key before {, but can't write it here The first error is Next error is |
For you error in CLion, it looks like this issue : https://stackoverflow.com/questions/4798936/numeric-limits-was-not-declared-in-this-scope-no-matching-function-for-call-t Try adding For your VisualStudio errors, I do not understand what you are talking about. hash.h is not a file in our repository and What version of cmake, make, gcc and g++ are you using? |
I'm using Microsoft Visual Studio Community 2022 (64-bit) - Version 17.6.2. |
Did you download the C++ API zip archive msvc 2019 mingw (make sure to take the one for your architecture). If you disabled conan and you are trying to build manually, the API must be located at the correct path in the kortex_api folder This is where it will look for the library by default |
Hi, @felixmaisonneuve I am also getting the same issue as @TomSAVU when I build any of the examples. The following errors coming from the hash.h file found in the Kortex_Api in "./kortex_api/include/google/stubs/hash.h": C2143: syntax error: missing ',' before '<' Line 241 And a few more. I have downloaded the msvc 2019 API archive mentioned in your comment above and followed all the steps in the C++ guide. The CMake generation completes without error and it shows it is using the right folder for the kortex_api but building any example fails. Would you have any ideas? Let me know if you need more information. |
Description
I'm receiving errors when trying to build in CLion
Version
KortexAPI : 2.5.0
Kortex Device : Windows 10 64 bit
Steps to reproduce
Performed all the steps in https://www.youtube.com/watch?v=JparQ69LMzY&list=PLz1XwEYRuku5rZjJWBr6SDi93jgWZ4FHL&index=3
Any other information
The error I receive when trying to build is
D:/KINOVA/kortex-master/api_cpp/examples/thirdParty/cxxopts/cxxopts.hpp: In member function 'void cxxopts::values::detail::SignedCheck<T, true>::operator()(bool, U, const string&)':
D:/KINOVA/kortex-master/api_cpp/examples/thirdParty/cxxopts/cxxopts.hpp:471:42: error: 'numeric_limits' is not a member of 'std'
471 | if (u > static_cast(-std::numeric_limits::min()))
| ^~~~~~~~~~~~~~
D:/KINOVA/kortex-master/api_cpp/examples/thirdParty/cxxopts/cxxopts.hpp:471:58: error: expected primary-expression before '>' token
471 | if (u > static_cast(-std::numeric_limits::min()))
| ^
D:/KINOVA/kortex-master/api_cpp/examples/thirdParty/cxxopts/cxxopts.hpp:471:61: error: '::min' has not been declared; did you mean 'std::min'?
471 | if (u > static_cast(-std::numeric_limits::min()))
| ^~~
| std::min
The text was updated successfully, but these errors were encountered: