Sorry I didn’t notice this thread before.
I don’t know if anyone still needs a fix.
I have encountered the same issue and found a solution here.
Long story short:
I fixed the issue by installing libxcb-cursor-dev with the command:
sudo apt install libxcb-cursor-dev