I am tryint to use OrbitControls in THREE.js. If I removed the line let cameraControl = new OrbitControls(camera) from below, there will be no error. But now, I have “Uncaught TypeError: Cannot read property ‘addEventListener’ of undefined” I tried to change OrbitControls(camera) to THREE.OrbitControls(camera), and then I had “Uncaught TypeError: THREE.OrbitControls is not a constructor”. I tried to import OrbitControls.js
Tag: computer-vision
Building OpenCV.js fails. CMake can’t find installed compilers?
I have the following directory structure: I am trying to build OpenCV.js I do Which results in: Both gcc and g++ are installed in the system. Prior of running this I went to ~/emsdk and ran: I am not sure why this is failing. I am trying to follow this [tutorial][1]. EDIT: I am doing this on Ubuntu, if it