Skip to main content

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.

Jump to: navigation, search

Difference between revisions of "How to build eSWT for Windows Mobile 6 Pro"

 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
Install Visual Studio 2005 and it will also install the .Net framework
+
=== Prerequisite ===
 +
# Install Visual Studio 2005 and it will also install the .Net framework
 +
# Install Windows Mobile 6 Professional SDK Refresh.msi for WM 5 & WM6
 +
# Install IBM Java 1.4.2 SDK
 +
# Checkout org.eclipse.ercp.swt.core.win org.eclipse.ercp.swt.expanded.win org.eclipse.ercp.swt.mobile.win from dev.eclipse.org
 +
# Checkout org.eclipse.ercp.swt.wm6pro  from dev.eclipse.org
 +
# Should download jniport.h and jni.h to your PC
  
Install Windows Mobile 6 Professional SDK Refresh.msi for WM 5 & WM6
 
Windows Mobile 6 Standard SDK Refresh.msi for WM STD 6
 
dxsdk_jun2007.exe for Win32
 
    Windows CE 5.0 STANDARD SDK.msi for WinCE 5.0 & 6.0
 
  
Install IBM Java 1.4.2 SDK
+
=== Steps of How to Resovle the Errors in org.eclipse.ercp.swt.core(expanded|mobile).win ===
 +
#Right click org.eclipse.ercp.swt.core(expanded|mobile).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 these three projects
  
Checkout org.eclipse.ercp.swt.sp2005  from dev.eclipse.org
 
org.eclipse.ercp.swt.win32
 
org.eclipse.ercp.swt.wince5
 
org.eclipse.ercp.swt.wm6pro
 
  
Modify the env.ini under converged_jar folder of org.eclipse.ercp.swt.wm6pro if you would like to build on the wm6 pro platform
+
=== Steps of How to build eswt-converge.dll ===
This required IBM 1.4.2 Java SDK to build java file, I assume you install this SDK in the default path  C:\Program Files\IBM\Java142\
+
#Go to ~\workspace\org.eclipse.ercp.swt.wm6pro\converged_dll
JAVA_COMPILER=C:\Program Files\IBM\Java142\bin\javac.exe
+
[[Image:converged_dll folder.JPG]]
JAVA_ARCHIVE=C:\Program Files\IBM\Java142\bin\jar.exe
+
#Double click eswt-converged.sln
 +
#Visual Studio bring up
 +
#Right click ugl_wince_port in right panel
 +
[[Image:ugl_wince_port_properties.JPG]]
 +
#Click Properties, it will bring up the property page
 +
[[Image:ugl_wince_port_propertiespage.JPG]]
 +
#Expand C/C++
 +
#Click General
 +
#Click the scroll-down button of the Additional Include Diectories, tt will bring up the Additional Include Directories page
 +
[[Image:Additional_Include_Directories_Page.JPG]]
 +
#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
 +
[[Image:Additional_Include_Directories_Page_NewEntry.JPG]]
 +
#Click OK and save this configuration
 +
#Choose the Windows Mobile 6 Professional SDK(ARMV4I) on top-center scroll-down menu
 +
#Choose Release mode of top-left-center scroll-down menu
 +
[[Image:Release_SDK.JPG]] 
 +
#Click Build-->Builds Solution
 +
[[Image:Build.JPG]]
 +
#Then you can build eswt-converge.dll successfully which resides in ~\workspace\org.eclipse.ercp.swt.wm6pro\os\win32\arm
  
Go to C:\Documents and Settings\Sam\IBM\rationalsdp\workspace\org.eclipse.ercp.swt.wm6pro\converged_dll
 
And launch eswt-converged.sln
 
 
This will bring Visual Studio up
 
  
Right clicking the ugl_wince_port  Properties  it will bring up the property page
+
=== Steps of How to build eswt-converge.jar ===
+
#This required IBM 1.4.2 Java SDK to build and I assume you install this SDK in the default path --> C:\Program Files\IBM\Java142\
 
+
#Modify the env.ini under ~\workspace\org.eclipse.ercp.swt.wm6pro converged_jar folder
 
+
##JAVA_COMPILER=C:\Program Files\IBM\Java142\bin\javac.exe
[[Image:Example.jpg]]
+
##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\
 
+
 
+
 
+
 
+
Expand C/C++  General  Click the scroll-down button of the Additional Include Directories  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.
+
Here I place them under D:\Job\Project\XPD 6.2.1\Junit\jni
+
PS: Developer should get the jniport.h and jni.h by themselves.
+
+
 
+
 
+
Click OK and save this configuration
+
 
+
Choose the wanted platform SDK to build and choose Release mode of left side scroll-down menu
+
+
 
+
Click Build  Builds Solution
+
+
 
+
[[Image:[[Image:Example.jpg]]]]
+

Latest revision as of 05:14, 3 November 2008

Prerequisite

  1. Install Visual Studio 2005 and it will also install the .Net framework
  2. Install Windows Mobile 6 Professional SDK Refresh.msi for WM 5 & WM6
  3. Install IBM Java 1.4.2 SDK
  4. Checkout org.eclipse.ercp.swt.core.win org.eclipse.ercp.swt.expanded.win org.eclipse.ercp.swt.mobile.win from dev.eclipse.org
  5. Checkout org.eclipse.ercp.swt.wm6pro from dev.eclipse.org
  6. Should download jniport.h and jni.h to your PC


Steps of How to Resovle the Errors in org.eclipse.ercp.swt.core(expanded|mobile).win

  1. Right click org.eclipse.ercp.swt.core(expanded|mobile).win in your IDE
  2. Click Propertis
  3. Click Java Build Path
  4. Click Libraries
  5. Remove all default jar/lib path
  6. Add Library
  7. Choose JRE System Library
  8. Click Next and Point to the Device JRE
  9. Then we should resolve the errors in these three projects


Steps of How to build eswt-converge.dll

  1. Go to ~\workspace\org.eclipse.ercp.swt.wm6pro\converged_dll

Converged dll folder.JPG

  1. Double click eswt-converged.sln
  2. Visual Studio bring up
  3. Right click ugl_wince_port in right panel

Ugl wince port properties.JPG

  1. Click Properties, it will bring up the property page

Ugl wince port propertiespage.JPG

  1. Expand C/C++
  2. Click General
  3. Click the scroll-down button of the Additional Include Diectories, tt will bring up the Additional Include Directories page

Additional Include Directories Page.JPG

  1. Click New Line, it will generate a new entry
  2. Click the scroll-down button on the right hand side again
  3. Point to the folder which jniport.h and jni.h resides

Additional Include Directories Page NewEntry.JPG

  1. Click OK and save this configuration
  2. Choose the Windows Mobile 6 Professional SDK(ARMV4I) on top-center scroll-down menu
  3. Choose Release mode of top-left-center scroll-down menu

Release SDK.JPG

  1. Click Build-->Builds Solution

Build.JPG

  1. 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

  1. This required IBM 1.4.2 Java SDK to build and I assume you install this SDK in the default path --> C:\Program Files\IBM\Java142\
  2. Modify the env.ini under ~\workspace\org.eclipse.ercp.swt.wm6pro converged_jar folder
    1. JAVA_COMPILER=C:\Program Files\IBM\Java142\bin\javac.exe
    2. JAVA_ARCHIVE=C:\Program Files\IBM\Java142\bin\jar.exe
  3. Double click main.bat
  4. Then you can build eswt-converge.jar successfully which resides in ~\workspace\org.eclipse.ercp.swt.wm6pro\ws\win32\

Back to the top