Skip to main content

building phoneme for windows mobile 5 on windows

3 replies [Last post]
pengfoong
Offline
Joined: 2009-11-18
Points: 0

how do i build phoneme Feature to run on windows mobile 5 using windows xp & vs 2008?

I've managed to build a partialy working emulator version but what I need is one that I can install on windows mobile. I've made some changes to it that I want to test so i cannot download the compiled binaries. I have tried countless combinations but it just doesnt seem to work.

here is my batch file to build. when i run it, it says cannot open include file fcntl.h
when i add the [vs install path]\VC\include to the include path, there are alot of compile errors in io.h

cd c:\
set VS_INSTALL_PATH=C:\PROGRA~1\MICROS~1.0
set VS_COMMON_IDE=%VS_INSTALL_PATH%\Common7\IDE
set VS_COMMON_TOOLS=%VS_INSTALL_PATH%\Common7\Tools
set VS_VC_PACKAGES=%VS_INSTALL_PATH%\VC\VCPACK~1
set VS_CE_PATH=%VS_INSTALL_PATH%\VC\ce
set VS_BIN=%VS_CE_PATH%\bin\x86_arm
set VS_INCLUDE=%VS_INSTALL_PATH%\VC\include
set VS_LIB=%VS_INSTALL_PATH%\vc\lib
set WM5_SDK_PATH=C:\PROGRA~1\WINDOW~1.0SD\SMARTP~1
set WM5_CPU=Armv4i
set PATH=%PATH%;%VS_BIN%;%VS_COMMON_TOOLS%;%VS_COMMON_IDE%;%VS_VC_PACKAGES%
set INCLUDE=%VS_CE_PATH%\atlmfc\include;%VS_CE_PATH%\include;%WM5_SDK_PATH%\include\%WM5_CPU%;
set LIB=%VS_CE_PATH%\atlmfc\lib;%VS_CE_PATH%\include;%WM5_SDK_PATH%lib\%WM5_CPU%\;
set LIBPATH=%LIB%
set COMPONENTS_DIR=C:/phoneme
set BUILD_OUTPUT_DIR=%COMPONENTS_DIR%/build_output
set CYG4ME=C:\cyg4me
set JDK_DIR=C:/PROGRA~1/Java/JDK16~1.0_1
set PATH=%CYG4ME%\bin;%JDK_DIR%/bin;%PATH%
set BuildDir=%COMPONENTS_DIR%/javacall/configuration/phoneMEFeature/win32_x86
set JVMWorkSpace=%COMPONENTS_DIR%/cldc
set JVMBuildSpace=%BUILD_OUTPUT_DIR%/cldc
set MIDP_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/midp
set JAVACALL_DIR=%COMPONENTS_DIR%/javacall
set JAVACALL_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/javacall
set PCSL_PLATFORM=wince_arm_vc
set PCSL_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/pcsl
set TOOLS_DIR=%COMPONENTS_DIR%/tools
set TOOLS_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/tools
set CLDC_DIST_DIR=%BUILD_OUTPUT_DIR%/cldc/wince_arm_vc/dist
set PROJECT_JAVACALL_DIR=%COMPONENTS_DIR%/javacall
set JAVACALL_PLATFORM=wince_arm_vc
set USE_VS2005=true
@rem set USE_VERBOSE_MAKE=true
set VS2005_CE_ARM_PATH=C:/PROGRA~1/MICROS~1.0/VC/ce/bin/x86_arm
cls
make -C %BuildDir% clean
make -C %COMPONENTS_DIR%/pcsl clean
make -C %COMPONENTS_DIR%/midp/build/wince clean
@rem make -C %BuildDir% USE_MULTIPLE_ISOLATES=true TOOLS_DIR=%COMPONENTS_DIR%/tools USE_OUTPUT_REDIRECTION=true
make -C %COMPONENTS_DIR%/pcsl
make -C %COMPONENTS_DIR%/midp/build/wince USE_MULTIPLE_ISOLATES=true

If im not mistaken, the javacall is not needed. is it?

Message was edited by: pengfoong

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
pengfoong
Offline
Joined: 2009-11-18
Points: 0

The original build order is types, print, memory, string, file, network,escfilenames. If I move the file module to the bottom, I can see that the rest all builds fine. only the file module is giving problems
[url]http://www.cs.kuleuven.be/~davy/phoneme/?q=node/12[/url] from what i see here, i should change it to win32? but from what i see in wince_arm_vc.gmk and from the build output, it's already win32. Changing it to posix gave me the same problem

I downloaded the file anyway n replaced the original one and it worked. but now im having similar problem. While building CDLC, it complains about that it cannot find io.h. here is the output.

[code]
C:\>make -C %JVMWorkSpace%/build/wince_arm ENABLE_ISOLATES=true ENABLE_MULTIPLE
_PROFILES_SUPPORT=true
make: Entering directory `C:/phoneme3/cldc/build/wince_arm'
==================================
JVMBuildSpace = C:/phoneme3/build_output/cldc
JVMWorkSpace = C:/phoneme3/cldc
ROMIZING = true
SHELL = C:/cyg4me/bin/sh.exe
ENABLE_ISOLATES = true
ENABLE_MONET =
==================================
created C:/phoneme3/build_output/cldc/wince_arm/tools/Makefile
==============================
creating build tools...
==============================
make[1]: Entering directory `C:/phoneme3/build_output/cldc/wince_arm/tools'
C:\phoneme3\cldc\src\tools\jcc\components\ConstantPool.java:35: warning: sun.mis
c.Compare is Sun proprietary API and may be removed in a future release
import sun.misc.Compare;
^
C:\phoneme3\cldc\src\tools\jcc\components\ConstantPool.java:38: warning: sun.mis
c.Compare is Sun proprietary API and may be removed in a future release
class ConstantPool implements Compare {
^
C:\phoneme3\cldc\src\tools\jcc\components\ConstantPool.java:86: warning: sun.mis
c.Sort is Sun proprietary API and may be removed in a future release
sun.misc.Sort.quicksort(arr, this);
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 warnings
created jcc.jar
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
created buildtool.jar
make[1]: Leaving directory `C:/phoneme3/build_output/cldc/wince_arm/tools'
done
Finding .java files ...
done
created C:/phoneme3/build_output/cldc/wince_arm/loopgen/app/Makefile
==============================
creating ASM loop generator in debug mode
build flags: NO_DEBUG_SYMBOLS=true
==============================
make[1]: Entering directory `C:/phoneme3/build_output/cldc/wince_arm/loopgen/app
'
generating ../generated/Dependencies ...
reading database: C:/phoneme3/cldc/src/vm/includeDB
writing individual include files ... done (235 files.)
writing grand include file

writing dependencies file

make[1]: Leaving directory `C:/phoneme3/build_output/cldc/wince_arm/loopgen/app'

make[1]: Entering directory `C:/phoneme3/build_output/cldc/wince_arm/loopgen/app
'
mkdir -p ../bin
mkdir -p ../../dist/bin
mkdir -p ../../dist/lib
mkdir -p ../../dist/include
==============================
compiling cldc1.1 classes (103 files)...
preverifying classes...
c:\cyg4me\bin\make.exe[2]: Entering directory `C:/phoneme3/build_output/cldc/win
ce_arm/loopgen/app'
installed ../../dist/bin/preverify.exe
c:\cyg4me\bin\make.exe[2]: Leaving directory `C:/phoneme3/build_output/cldc/winc
e_arm/loopgen/app'
rm -rf C:/phoneme3/build_output/cldc/classes.zip C:/phoneme3/build_output/cldc/t
mpclasses
==============================
generating ../generated/NativesTable.cpp ...
Generating _build_pch_visCPP.obj ...
_build_pch_visCPP.cpp
C:/phoneme3/cldc/src/vm/share/utilities/GlobalDefinitions_visCPP.hpp(41) : fatal
error C1083: Cannot open include file: 'io.h': No such file or directory
make[1]: *** [_build_pch_visCPP.obj] Error 2
make[1]: Leaving directory `C:/phoneme3/build_output/cldc/wince_arm/loopgen/app'

make: *** [_loopgen] Error 2
make: Leaving directory `C:/phoneme3/cldc/build/wince_arm'
[/code]
Message was edited by: pengfoong

null

davyp
Offline
Joined: 2007-01-03
Points: 0

You don't need the javacall porting layer to build phoneME Feature for Windows
Mobile if you don't need any JSRs which require javacall. At least that is how I
build phoneME Feature, but I have never tried VS2008 though.

Do you have a build log? Without it it is kind of difficult to figure out what the problem
is with those header files you are referring to.

Davy

pengfoong
Offline
Joined: 2009-11-18
Points: 0

Sorry for not replying earlier. Can this tell why im experiencing t he problem?

C:\>make -C %COMPONENTS_DIR%/pcsl clean
make: Entering directory `C:/phoneme1/pcsl'
make: Leaving directory `C:/phoneme1/pcsl'

C:\>make -C %COMPONENTS_DIR%/midp/build/wince clean
make: Entering directory `C:/phoneme1/midp/build/wince'

... deleting directory C:/phoneme1/build_output/midp
make: Leaving directory `C:/phoneme1/midp/build/wince'

C:\>make -C %COMPONENTS_DIR%/pcsl
make: Entering directory `C:/phoneme1/pcsl'
generating config file...
building all modules...
building print module...
pcsl_print.c
Microsoft (R) Library Manager Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.

building memory port module...
pcsl_memory_port.c
building memory module...
pcsl_memory.c
pcsl_chunkheap.c
Microsoft (R) Library Manager Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.

building string util...
utf.c
building string module...
pcsl_string.c
Microsoft (R) Library Manager Version 9.00.21022.08
Copyright (C) Microsoft Corporation. All rights reserved.

building file module...
cd C:/phoneme1/pcsl/file/win32/../../memory; c:/cyg4me/bin/make.exe all
building memory port module...
make.exe[4]: Nothing to be done for `all'.
building memory module...
pcsl_win32.c
pcsl_win32.c(31) : fatal error C1083: Cannot open include file: 'fcntl.h': No su
ch file or directory
c:\cyg4me\bin\make.exe[2]: *** [C:/phoneme1/build_output/pcsl/wince_arm/obj/pcsl
_win32.o] Error 2
c:\cyg4me\bin\make.exe[1]: *** [all] Error 2
make: *** [all] Error 2
make: Leaving directory `C:/phoneme1/pcsl'