VNC transplant succeeds VNC porting to arm Development Board (4.1.3)

Source: Internet
Author: User

VNC Transplant Process

Using the system Ubuntu


Porting a good package download address http://download.csdn.net/detail/guoqianqian5812/8948849


Porting the ARM library download address http://download.csdn.net/detail/guoqianqian5812/8948885


First, preparatory work

1, download VNC source package, here is the transplant is VNC-4_1_3-UNIXSRC


Download Address http://www.realvnc.com/download/open/4.0/

2, Cross compiler: ARM-LINUX-GCC-4.5.1-V6-VFP

Second, the common directory of source code configure and make process

1, unzip the download good source package

2, access to the directory, and view the source code package files

3, into the common directory./configure

4, modify the directory under the Config.cache as follows

5, again./configure

6, into the common directory zlib change makefile file (the inside of the GCC to ARM-LINUX-GCC), and then make

7, enter the common directory make will appear the following error

Error reason: The Atoi function is called in the Tcpsocket.cxx file under Vnc-4_1_3-unixsrc/common/network, but there is no header file for the Life atoi function

Workaround: Open tcpsocket.cxx file add #include<stdio.h> and #include <stdlib.h>

Go back to common directory continue make

Third, the UNIX directory of source code configure and make process

1, into the UNIX directory compilation

./configure--with-installed-zlib

2. Modify and modify the Config.cache under this catalogue

And then again./configure--with-installed-zlib

3, then make error is as follows

Error reason: You can tell from the wrong hint that the location of the search header file at compile time is Commo, and you can see at the Red Line

There are two kinds of solutions: 1 will cp-rf/usr/include/x11/. /common/, this is the path to place the header file on the compile-time search

2 Enter makefile Modify search path

Continue make after the modification is complete

The cause of the error and 7 in (b) are the same

Continue make after the modification is complete

The reason for the error may be: 1, the Cross compiler did not find the dynamic Library 2, the cross compiler found the type of library is wrong, he is not arm type of dynamic Library 3, cross-compilation requires this library but you did not add

Solution: For the solution that did not find the dynamic library is to specify the correct path in the makefile, the solution to the type of library is to recompile the library file that you need, the platform here is arm, so all the libraries must be arm, The third error only needs to be added to the appropriate location.

The-l/usr/testlib here is the path to my dynamic library.

Then continue make

Cause of the error: This is the third case where the library file that called the call is not invoked

The resulting error is generally

Solution:

All the other mistakes are the same, and the solution is the same.

After the completion of the compilation will be in the UNIX directory under the Vncviewer and X0vncserver directory to find the appropriate executable file


We'll take a picture of the effect later.

If you have any questions, you can contact me.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.