VNC Transplant Process
The system used Ubuntu
Transplant Good Package http://download.csdn.net/detail/guoqianqian5812/8948849
Ported Arm Library http://download.csdn.net/detail/guoqianqian5812/8948885
First, the preparatory work
1, download the vnc Source Package, here is the transplant VNC-4_1_3-UNIXSRC
http://www.realvnc.com/download/open/4.0/
2. Cross compiler:ARM-LINUX-GCC-4.5.1-V6-VFP
Second, thecommon directory under the source code Configure and make process
1, unzip the download good source package
2, enter the directory, and view the source code package files
3.Enter the common directory ./configure
4, modify the directory under the Config.cache as follows
5, again ./configure
6.Enter the directory under common zlib Change the Makefile file ( the gcc instead ARM-LINUX-GCC ), and then Make
7, enter the common directory make will appear the following error
Error reason: atoi function was called in tcpsocket.cxx file under Vnc-4_1_3-unixsrc/common/network , but no life atoi header file of the function
Workaround: Open a tcpsocket.cxx file to add #include <stdio.h> and #include <stdlib.h >
Go back to the common directory to continue make
Third, theUnix directory under the source code Configure and make process
1. Enter UNIX directory compilation
./configure--with-installed-zlib
2. Modify and modify the Config.cache under this directory
And then again./configure--with-installed-zlib
3. Then make error follows
Error reason: From the wrong hint can know at compile time search header file location is Commo , at the red Line can see
There are two types of solutions:1 will cp-rf/usr/include/x11/. /common/, this is the path where the header files are searched at compile time
2 Enter makefile to modify the search path
Continue make after modification is complete
The cause of the error is the same as in (ii) 7
Continue make after modification is complete
The cause of the error could be:1, the cross-compiler did not find the dynamic library 2, the cross-compiler found the wrong type of library, he is not an ARM type dynamic library 3 , cross-compiling requires this library but you did not add
Workaround: For a workaround that does not find a dynamic library is to specify the correct path in Makefile , the workaround for the type of library is to recompile the library file you need, the platform is arm , so all the libraries must be Arm , the third type of error only needs to be added in the appropriate location.
The -l/usr/testlib here is the path to my dynamic library.
Then continue make
Error reason: This is the third case, there is no library file that calls the call
The resulting error is generally
Workaround:
The other mistakes are the same, and the solution is the same.
The executable file will be found in the Vncviewer and X0vncserver directories under the UNIX directory After the compilation is completed.
We'll take a picture later.
If you have any questions, you can contact me.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
VNC Transplant successfully VNC ported to ARM Development Board (4.1.3)