Comments (8)
and when i use "ik" it showed undefined
from ik.
Can you show the code you're trying to compile that causes this error?
Please also say which OS you're on and which branch you checked out.
from ik.
#include <ik/ik.h> int main() { struct ik_solver_t* solver = ik.solver.create(IK_FABRIK); return 0; }
VSCode on ubuntu16.04
from ik.
and i use terminal to build
g++ ik-master-test.c -L /usr/local/lib -I /usr/local/include/ik
/tmp/ccf6dLel.o:在函数‘main’中:
ik-master-test.c:(.text+0xb):对‘ik’未定义的引用 (Undefined reference)
collect2: error: ld returned 1 exit status
from ik.
OK I have solved this problem
from ik.
when I run the example code in Readme A new problem has occured :Exception has occurred.
Segmentation fault
from ik.
You need to call ik.init();
first before using any other functions:
#include <ik/ik.h>
int main() {
if (ik.init() != IK_OK)
perror("ik.init failed");
struct ik_solver_t* solver = ik.solver.create(IK_FABRIK);
/* main loop here */
ik.deinit();
return 0;
}
from ik.
I'm going to assume it worked for you, so I'll close this issue now :)
from ik.
Related Issues (20)
- How to set and get the rotation of each joint HOT 7
- Running the example code HOT 3
- Correct sample
- How work "eff->target_position"? HOT 3
- IK_TWO_BONE work, IK_FABRIK - failed HOT 4
- Need some samples with constraint HOT 6
- Obtaining Joint Angles
- mark
- Solved
- the algorithm is diffcult to use HOT 1
- How to implement Hinge Constraints? HOT 1
- should iterate_affected_nodes be used ? HOT 1
- SetLocalPosition undefined HOT 1
- where is the v2.0 code HOT 1
- Target has an offset when setting chain_length HOT 2
- Better Documentation for Building HOT 1
- Cannot compile sample code HOT 4
- Remove lib prefix only if IK_PYTHON=ON
- Is your project related to effector? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ik.