Linking Kinect Azure libraries through makefile

Home Forums AR Sandbox Forum Linking Kinect Azure libraries through makefile

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #124263
    jill
    Participant

    I’d like to link the Kinect-3.9 code with a couple libraries via the makefile so that I can write a class for the Kinect Azure. I’m not familiar with the WhyTools Build Environment. How might I amend the makefile or Packages.Kinect to link to additional libraries?

    The two libraries are located in /usr/lib/x86_64-linux-gnu and are libk4a.so.1.3.0 and libdepthengine.so.2.0

    I’ve tried hacking around the makefile to set CFLAGS, but I’m not getting it right.

    #124265
    Oliver Kreylos
    Keymaster

    You want to add a new package to Packages.Kinect like so:

    K4A_BASEDIR = /usr
    K4A_DEPENDS = 
    K4A_INCLUDE = -I$(K4A_BASEDIR)/$(INCLUDEEXT)
    K4A_LIBDIR  = -L$(K4A_BASEDIR)/$(LIBEXT)
    K4A_LIBS    = -lk4a -ldepthengine

    Then add K4A as a dependency to package MYKINECT, i.e., append it to the MYKINECT_DEPENDS list.

    #124270
    jill
    Participant

    Worked like a charm! Thanks.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Comments are closed.