dependencies
OpenSSL: https://my.oschina.net/u/1250206/blog/1591396
libpng: https://my.oschina.net/u/1250206/blog/1591467
libvncserver cross compile
Start cmake-gui, select the source directory and build directory
The first startup will ask to configure the generator, select Specify Options for corss-compiling
Operating system selection linux
Processor select arm
Configure the cross-compilation tool Compilers
Target Root selects the dependency path
After the configuration is complete, click Configure
Then modify CMAKE_INSTALL_PREFIX to /usr/arm-none-linux-gnueabi, here is the configuration installation path
After modification, click Configure to confirm
Click Generate to generate the build file
Go to the build directory and open a terminal
make
make install