Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "How to build eSWT for WM 5/WM 6 Pro/WM 6 STD/Win32"
(New page: === Prerequisite === *Install '''Visual Studio 2005''' and it will also install the''' .Net framework''' *Install '''Required SDK''' for different platform **Install '''Windows Mobile 6 P...) |
(→Prerequisite) |
||
Line 1: | Line 1: | ||
=== Prerequisite === | === Prerequisite === | ||
− | *Install '''Visual Studio | + | *Install '''Visual Studio 2003''' or '''Visual Studio 2005''' for Windows Mobile DLL building |
*Install '''Required SDK''' for different platform | *Install '''Required SDK''' for different platform | ||
− | **Install '''Windows Mobile | + | **Install '''Windows Mobile 5 Professional SDK Refresh.msi''' for''' Windows Mobile 5''' |
− | **Install '''Windows Mobile 6 | + | **Install '''Windows Mobile 6 Professional SDK Refresh.msi''' for''' Windows Mobile 6 Pro''' |
− | **Install ''' | + | **Install '''Windows Mobile 6 Standard SDK Refresh.msi''' for '''Window Mobile 6 STD''' |
− | *Install '''Java SDK''', such as IBM 1.4.2 or Sun | + | **Install '''DirectX SDK''' for '''Windows related platform''' (DirectX 2007 August is recommended for Windows XP) |
− | *Checkout '''org.eclipse.ercp.swt.core.win org.eclipse.ercp.swt.expanded.win org.eclipse.ercp.swt.mobile.win | + | *Install '''Java SDK''', such as IBM Java 1.4.2 or Sun Java SDK |
− | *Checkout '''required build project''' from '''dev.eclipse.org''' | + | *Checkout following eSWT source projects from '''dev.eclipse.org''' -> '''/cvsroot/dsdp''' repository |
− | **'''org.eclipse.ercp.swt.wm6pro''' for''' | + | **'''org.eclipse.ercp.swt.core.win''' |
− | **'''org.eclipse.ercp.swt.sp2005''' for ''' | + | **'''org.eclipse.ercp.swt.expanded.win''' |
− | **'''org.eclipse.ercp.swt.win32''' for ''' | + | **'''org.eclipse.ercp.swt.mobile.win''' |
− | *Developer should | + | *Checkout '''required build project''' from '''dev.eclipse.org''' -> '''/cvsroot/dsdp''' repository |
− | + | **'''org.eclipse.ercp.swt.wm6pro''' for''' Windows Mobile 5 or Windows Mobile 6 Pro''' | |
+ | **'''org.eclipse.ercp.swt.sp2005''' for '''Window Mobile 6 STD''' | ||
+ | **'''org.eclipse.ercp.swt.win32''' for '''Windows related platform''' | ||
+ | *Developer should have '''Java JNI tool''' including ''' jniport.h''' and '''jni.h''' for compiling native DLL. | ||
=== Steps of How to Resovle the Errors in org.eclipse.ercp.swt.core(expanded|mobile).win === | === Steps of How to Resovle the Errors in org.eclipse.ercp.swt.core(expanded|mobile).win === |
Revision as of 22:30, 3 November 2008
Contents
Prerequisite
- Install Visual Studio 2003 or Visual Studio 2005 for Windows Mobile DLL building
- Install Required SDK for different platform
- Install Windows Mobile 5 Professional SDK Refresh.msi for Windows Mobile 5
- Install Windows Mobile 6 Professional SDK Refresh.msi for Windows Mobile 6 Pro
- Install Windows Mobile 6 Standard SDK Refresh.msi for Window Mobile 6 STD
- Install DirectX SDK for Windows related platform (DirectX 2007 August is recommended for Windows XP)
- Install Java SDK, such as IBM Java 1.4.2 or Sun Java SDK
- Checkout following eSWT source projects from dev.eclipse.org -> /cvsroot/dsdp repository
- org.eclipse.ercp.swt.core.win
- org.eclipse.ercp.swt.expanded.win
- org.eclipse.ercp.swt.mobile.win
- Checkout required build project from dev.eclipse.org -> /cvsroot/dsdp repository
- org.eclipse.ercp.swt.wm6pro for Windows Mobile 5 or Windows Mobile 6 Pro
- org.eclipse.ercp.swt.sp2005 for Window Mobile 6 STD
- org.eclipse.ercp.swt.win32 for Windows related platform
- Developer should have Java JNI tool including jniport.h and jni.h for compiling native DLL.
Steps of How to Resovle the Errors in org.eclipse.ercp.swt.core(expanded|mobile).win
- Right click org.eclipse.ercp.swt.core.win in your IDE
- Click Propertis
- Click Java Build Path
- Click Libraries
- Remove all default jar/lib path
- Add Library
- Choose JRE System Library
- Click Next and Point to the Device JRE
- Then we should resolve the errors in the project
- Do the same steps for expanded.win and mobile.win to resolve the errors
Steps of How to build eswt-converge.dll
- Go to ~\workspace\org.eclipse.ercp.swt.{platform}\converged_dll
- Double click eswt-converged.sln
- Visual Studio will bring up
- Right click ugl_wince_port in right panel
- Click Properties, it will bring up the property page
- Expand C/C++
- Click General
- Click the scroll-down button of the Additional Include Diectories, it will bring up the Additional Include Directories page
- Click New Line, it will generate a new entry
- Click the scroll-down button on the right hand side again
- Point to the folder which jniport.h and jni.h resides
- Click OK and save this configuration
- Choose the corresponding platform SDK on top-center scroll-down menu
- Choose Release mode of top-left-center scroll-down menu
- Click Build-->Builds Solution
- Then you can build eswt-converge.dll successfully which resides in ~\workspace\org.eclipse.ercp.swt.wm6pro\os\win32\arm
Steps of How to build eswt-converge.jar
- This required Java SDK to build and here I install this SDK as following C:\Program Files\IBM\Java142\
- Modify the env.ini under ~\workspace\org.eclipse.ercp.swt.{platform}\converged_jar folder
- JAVA_COMPILER=C:\Program Files\IBM\Java142\bin\javac.exe
- JAVA_ARCHIVE=C:\Program Files\IBM\Java142\bin\jar.exe
- Double click main.bat
- Then you can build eswt-converge.jar successfully which resides in ~\workspace\org.eclipse.ercp.swt.wm6pro\ws\win32\