etiennedub / pyk4a

Python 3 wrapper for Azure-Kinect-Sensor-SDK
MIT License
288 stars 81 forks source link

Difficulty in installing body tracking version #12

Closed dhruvapatil closed 4 years ago

dhruvapatil commented 4 years ago

I am trying to install the body tracking feature on Windows 10 from the body tracking branch using the command: pip install git+https://github.com/lpasselin/pyk4a.git@feature/body-tracking-optional --global-option="build_ext" --global-option="--enable-body-tracking" The INCLUDE and LIB paths contain the respective SDK include and lib folders. However, I am getting the following error: Screenshot (23)

Can someone please help me with this issue? Thank you!

lpasselin commented 4 years ago

You can try again, I removed the preprocessor message.

lpasselin commented 4 years ago

Thanks for the errors, I fixed my branch again. Using preprocessor like I did is not clean.

lpasselin commented 4 years ago

Ok I finally took time to compile it on my end. With the last fixes it compiles fine.

I also confirm the pip command works on linux if you have libk4abt in the LD path

pip install -e . --global-option="build_ext" --global-option="--enable-body-tracking"
dhruvapatil commented 4 years ago

I tried installing again, and got the same list of errors. I suspect I might be having a different Visual Studio version on my Windows 10 system. What version of Visual Studio are you using on Windows 10? Thanks again for your timely replies!

lpasselin commented 4 years ago

I am not on windows, I use the most recent gpp compiler on linux.

I just realized my git push did not finish. Sorry about that. Can you try again?

dhruvapatil commented 4 years ago

The installation was a success and the test script for 2d skeleton works perfectly! Thanks a lot for patiently helping me with the installation. The body tracking feature will be a useful addition to the python wrapper for Kinect.