-
Notifications
You must be signed in to change notification settings - Fork 71
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
Running the example code #11
Comments
Hey! The wiki is wrong, the arguments are the other way around. It should be Doing the following seems to work: #include "ik/ik.h"
int main() {
/* do your stuff here */
} And then compiling with:
This should produce a binary cmake_minimum_required (VERSION 2.8)
project ("example" LANGUAGES C)
find_package (IK REQUIRED)
add_executable (example "main.c")
target_link_libraries (example PRIVATE ik) And then:
I recommend using the version that's on master for now, because the API for 2.0 is still fluctuating. Let me know if you have any other problems. |
Hey! Thank your for your fast response. I tried both of your suggestions, they appear to break on some undefined references. First of all i changed the error:
So in changed Next step was this command
After this I tried your cmake suggestion. this runs smoothly until i run the make command, this gave a similar error:
I take it you did not have these errors? Mabey i am using the wrong gcc or cmake version. I use |
I would recommend using cmake if you can because it handles all of this for you. But the error you're getting there has something to do with link order and how
Also note that you can use |
Hi!
I would like to try to use your software in my school project. For this project in need to make a robot arm move to a specific coordinate. After ready the wiki i wanted to try out the example code form the README file. I ran into some issue's
sudo g++ -o mytest test.cpp
It did not comple an gave the following errors:
I tried fixing it, but no succes.
This gave these errors:
the list goes on.
I probably made a mistake while setting everything up. mabey i have to put the file i want to compile somewhere specific?
Could you tell me how i can compile one of the examples?
The text was updated successfully, but these errors were encountered: