Giter VIP home page Giter VIP logo

Comments (8)

76328 avatar 76328 commented on August 28, 2024

and when i use "ik" it showed undefined

from ik.

TheComet avatar TheComet commented on August 28, 2024

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.

76328 avatar 76328 commented on August 28, 2024

#include <ik/ik.h> int main() { struct ik_solver_t* solver = ik.solver.create(IK_FABRIK); return 0; }

VSCode on ubuntu16.04

from ik.

76328 avatar 76328 commented on August 28, 2024

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.

76328 avatar 76328 commented on August 28, 2024

OK I have solved this problem

from ik.

76328 avatar 76328 commented on August 28, 2024

when I run the example code in Readme A new problem has occured :Exception has occurred.
Segmentation fault

from ik.

TheComet avatar TheComet commented on August 28, 2024

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.

TheComet avatar TheComet commented on August 28, 2024

I'm going to assume it worked for you, so I'll close this issue now :)

from ik.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.