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.
- 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.
- Decompress the package. Or automatically create a directory:Eclipse. This directory is called<Eclipseroot>.
- In the Directory<Eclipseroot>/Plugins/org. Eclipse. Platform. source_x.x.x, Find the underOrg. Eclipse. platform_x.x.xFiles under the DirectoryLaunchersrc.zip.
- Decompress the fileLaunchersrc.zip, which automatically creates a directory: Library.
- 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.
- 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.
- 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.
- 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.
- 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 ...)