etiennedub / pyk4a

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

Cannot install pyk4a #24

Closed robinfays12 closed 4 years ago

robinfays12 commented 4 years ago

Hello,

When I'm using this command from your code in Jupyterlab :

pip install pyk4a --global-option=build_ext --global-option="-IC:\Program Files\Azure Kinect SDK v1.3.0\sdk\include" --global-option="-LC:\Program Files\Azure Kinect SDK v1.3.0\sdk\windows-desktop\amd64\release\lib"

I have this answer : image

Do you know what can be the problem ? I added the folder to my path variables like this : image

Thanks for your answer !

Robin Fays

lpasselin commented 4 years ago

Hi, the error message says to use -std=c++11 did you try this?

robinfays12 commented 4 years ago

Hi, do you know how to do it ?

lpasselin commented 4 years ago

edit: See here for a solution if you cannot modify the environment variable. You would need to modify the setup.py file.

Otherwise on linux iirc I set the envvariable export CPPFLAGS="-std=gnu++11" before installing.

robinfays12 commented 4 years ago

I did it, and I had this answer (I'm working on Windows):

image

lpasselin commented 4 years ago

I updated my comment above, can you try that?

robinfays12 commented 4 years ago

Do you mean to try this one ?

image

Is it on my terminal ?

lpasselin commented 4 years ago

The export command will not work on windows. I don't know the alternative but I am sure there is one.

As for the other solution in the linked stack overflow answer, you would need to modify the setup.py extra_compile_args

robinfays12 commented 4 years ago

Ok, thank you !