The swt faq Chinese (4)

Source: Internet
Author: User
Tags gtk

Http://www.eclipse.org/swt/faq.php)

Frank (frank@zijinshi.cn)

Version: Version 0.9

The SWT FAQ

7. Q: How to compile the eclipse execution file for my platform?
A: eclipse is loaded by binary executable files. After the binary file is executed, a progress screen is displayed to load the virtual machine. For different window systems, operating systems, and hardware architectures, We must compile different binary files for them. Either compile from the CVS code base or from the downloaded eclipse SDK.

Use the eclipse SDK to compile executable files.

  1. In order to compile and run eclipse, you need JDK, version requirements 1.4.2 or higher, you can download Eclipse: http://www.eclipse.org/downloads/index.php from this web page.
  2. Decompress the package. Or automatically create a directory:Eclipse. This directory is called<Eclipseroot>.
  3. In the Directory<Eclipseroot>/Plugins/org. Eclipse. Platform. source_x.x.x, Find the underOrg. Eclipse. platform_x.x.xFiles under the DirectoryLaunchersrc.zip.
  4. Decompress the fileLaunchersrc.zip, which automatically creates a directory: Library.
  5. Enter the DirectoryLibrary/WS, HereWSIs the name of the window system, such as Win32, motif, GTK, photon, or carbon. Find in the appropriate. Mak FileEvery _ homeTo make the path correct.
  6. RunBuildCommand (in UNIX and LinuxSh build. ShIn WindowsBuild. bat). In this way,The binary file of Eclipse. Move the eclipse binary execution file to the directory <Eclipseroot>.

The original content described above is provided by Colin R devilbiss.

8. Q: How to compile a 64-bit swt gtk?
Follow these steps to extract the 64-bit swt gtk source code and produce your own build. Follow these steps to extract the 64-bit swt gtk source code for compilation.

  1. Open eclipse and download the following projects from dev.eclipse.org: org. Eclipse. SWT, org. Eclipse. SWT. GTK. Linux. x86_64, and org. Eclipse. SWT. Tools.
  2. Open the file build. XML in the org. Eclipse. SWT. GTK. Linux. x86_64 folder and run ant to execute the uild. nativelibraries task defined in the build. xml file.
  3. Update org. Eclipse. SWT. GTK. Linux. x86_64.

Project org. Eclipse. SWT. GTK. Linux. x86_64 now includes a 64-bit local library. The 64-bit Java and C code has been copied to the org. Eclipse. SWT. GTK. Linux. x86_64/src directory.

 

(To be continued ...)

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.