A small demonstrator proving the ability to communicate between some C++ code and a slightly modified version of Potree.
--recursive option to ensure that the whole repository is being cloned, because it contains a submodule (a nested repository):
git clone --recursive https://github.com/Stakhan/PotreeAPI_demonstrator
Make sure you have qt5 installed with the websockets and webengine modules.
On Ubuntu 20.04 / Debian 10:
qt5-defaultlibqt5websockets5-devqtwebengine5-dev
On Manjaro Linux:
qt5-baseqt5-websocketsqt5-webengine
In the project folder, in a shell:
qmake
make
- Make sure the slightly modified version of Potree has been installed.
To install it, go to the potree folder and launch:
npm install
- Make sure Potree is running on
http://localhost:1234. The latter can easily be done by using npm in the potree folder:
npm start
Or by launching any static http server one-liner on port 1234.
- You should then be able to run the binary file called
demo.