Skip to main content

Problem while building MIDP for phomeME Advanced on Windows Mobile

10 replies [Last post]
amarjyotinath
Offline
Joined: 2009-10-13
Points: 0

Hi,
I am new to this topic.i have build the foundation profile.While building MIDP, i get the following error, which i am listing below:-

$ sh build-midp.sh
bash: line 0: cd: ../../build/win32-arm-wm5/cdc-midp: No such file or directory
../share/rules.mk:552: ../../build/win32-arm-wm5/cdc-midp/generated/empty.mk: No
such file or directory
... mkdir ../../build/win32-arm-wm5/cdc-midp/generated/javavm/runtime
... mkdir ../../build/win32-arm-wm5/cdc-midp/generated/javavm/runtime/jit
... mkdir ../../build/win32-arm-wm5/cdc-midp/generated/classes
touch ../../build/win32-arm-wm5/cdc-midp/generated/empty.mk
MAKEFLAGS = USE_MIDP=true USE_JPEG=true CVM_BUILD_SUBDIR_NAME=cdc-midp CVM_PREL
OAD_LIB=true CVM_JIT=true J2ME_CLASSLIB=foundation JDK_HOME=C:/j2sdk1.4.2_12
CVM_HOST = i686-cygwin-win32
CVM_TARGET = win32-arm-wm5
SHELL = bash
HOST_CC = /usr/bin/cc
HOST_CCC = /usr/bin/g++
ZIP = /usr/bin/zip
FLEX = /usr/bin/flex
BISON = /usr/bin/bison
CVM_JAVA = C:/j2sdk1.4.2_12/bin/java
CVM_JAVAC = C:/j2sdk1.4.2_12/bin/javac
CVM_JAVAH = C:/j2sdk1.4.2_12/bin/javah
CVM_JAR = C:/j2sdk1.4.2_12/bin/jar
TARGET_CC = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x8
6_arm/CL.EXE
TARGET_CCC = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x8
6_arm/CL.EXE
TARGET_AS = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x8
6_arm/ARMASM.EXE
TARGET_LD = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x8
6_arm/LINK.EXE
TARGET_AR = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x8
6_arm/LINK.EXE
TARGET_RANLIB = /usr/bin/ranlib
LINKFLAGS = /implib:cdc-midp/bin/cvmi.lib /nologo /map /dll /incremental:yes /
subsystem:windowsce,5.01 /base:0x00100000 /entry:_DllMainCRTStartup /export:jio
_snprintf /export:CVMexpandStack /export:CVMtimeMillis /export:CVMIDprivate_allo
cateLocalRootUnsafe /export:CVMglobals /export:CVMsystemPanic /export:CVMcsRende
zvous /export:CVMconsolePrintf
LINKLIBS = commctrl.lib coredll.lib corelibc.lib ddraw.lib wininet.lib winsock
.lib /LIBPATH:C:/Program Files/Microsoft Visual Studio 8/VC/ce/lib/armv4i /LIB
PATH:C:/Program Files/Microsoft Visual Studio 8/VC/ce/atlmfc/lib/armv4i /libpath
:C:/pmea/cdc/build/win32-arm-wm5/cdc-midp/midp/pcsl_fb/wince_arm/lib /nodefaultl
ib:libc.lib /nodefaultlib:libcd.lib /nodefaultlib:libcmt.lib /nodefaultlib:libcm
td.lib /nodefaultlib:msvcrt.lib /nodefaultlib:msvcrtd.lib /nodefaultlib:oldnames
.lib libpcsl_file.lib libpcsl_memory.lib libpcsl_print.lib libpcsl_string.lib li
bpcsl_network.lib Ws2.lib gx.lib aygshell.lib
ASM_FLAGS = -CPU StrongARM1 -32 -NOTerse -WIdth 132 -list .lst .i
CCCFLAGS =
CCFLAGS_SPEED = /nologo /c /W2 /GS- /Fdcdc-midp/cvm.pdb /O2 /Ob2 /Ot -DNDEBUG
CCFLAGS_SPACE = /nologo /c /W2 /GS- /Fdcdc-midp/cvm.pdb /O1 /Ob1 -DNDEBUG
CCFLAGS_LOOP = /nologo /c /W2 /GS- /Fdcdc-midp/cvm.pdb /O2 /Ob2 /Ot -DNDEBUG

CCFLAGS_FDLIB = /nologo /c /W2 /GS- /Fdcdc-midp/cvm.pdb -DNDEBUG /Od
JAVAC_OPTIONS = -g:none -J-Xms32m -J-Xmx128m -encoding iso8859-1 -source 1.4 -t
arget 1.4
CVM_DEFINES = -DCVM_OPTIMIZED -DCVM_DEBUG_STACKTRACES -DNDEBUG -DCVM_CLASSLOA
DING -DCVM_SERIALIZATION -DCVM_REFLECT -DCVM_DYNAMIC_LINKING -DCVM_JIT -DCVM_DUA
L_STACK -DCVM_JIT_REGISTER_LOCALS -DCVM_TIMESTAMPING -DCVM_PRELOAD_LIB -DCVM_STA
TICLINK_LIBS -DJ2ME_CLASSLIB=foundation -DTARGET_CPU_FAMILY=arm -DCVM_JIT_COPY_C
CMCODE_TO_CODECACHE -DHAVE_64_BIT_IO -DNDEBUG -DARM -D_ARM -D__RVCT__ -DWINCE -D
WIN32_LEAN_AND_MEAN -DWIN32_PLATFORM_PSPC -DUNICODE -D_UNICODE -DUNDER_CE=500 -D
_WIN32_WCE=500 -D_ARM_ -DEDB -DPOCKETPC
host uname = CYGWIN_NT-5.1 si-amarj 1.5.25(0.156/4/2) 2008-04-17 12:11 i6
86 Cygwin
TARGET_CC version = Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50725
for ARM
HOST_CC version = 3.4.4 i686-pc-cygwin
CVM_JAVA version = java version 1.4.2_15
TOOLS_DIR = /pmea/tools
SDK_DIR = C:/Program Files/Windows CE Tools
VC_PATH = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC
PLATFORM_SDK_DIR = C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.
0 Pocket PC SDK
PLATFORM_TOOLS_PATH = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/
bin/x86_arm
COMMON_TOOLS_PATH = /cygdrive/c/Program Files/Microsoft Visual Studio 8/Common
7/Tools/Bin
MIDP_DIR = /pmea/midp
PCSL_DIR = /pmea/pcsl
... mkdir ../../build/win32-arm-wm5/cdc-midp/generated/flags
Flag CVM_AGENTLIB changed. Cleaning up.
Flag CVM_AOT changed. Cleaning up.
Flag CVM_CCM_COLLECT_STATS changed. Cleaning up.
Flag CVM_CLASSLIB_JCOV changed. Cleaning up.
Flag CVM_CLASSLOADING changed. Cleaning up.
Flag CVM_CSTACKANALYSIS changed. Cleaning up.
Flag CVM_DEBUG changed. Cleaning up.
Flag CVM_DEBUG_ASSERTS changed. Cleaning up.
Flag CVM_DEBUG_CLASSINFO changed. Cleaning up.
Flag CVM_DEBUG_DUMPSTACK changed. Cleaning up.
Flag CVM_DEBUG_STACKTRACES changed. Cleaning up.
Flag CVM_DUAL_STACK changed. Cleaning up.
Flag CVM_DYNAMIC_LINKING changed. Cleaning up.
Flag CVM_EMBEDDED_HOOK changed. Cleaning up.
Flag CVM_GCCHOICE changed. Cleaning up.
Flag CVM_GCOV changed. Cleaning up.
Flag CVM_GPROF changed. Cleaning up.
Flag CVM_GPROF_NO_CALLGRAPH changed. Cleaning up.
Flag CVM_HOST changed. Cleaning up.
Flag CVM_INCLUDE_COMMCONNECTION changed. Cleaning up.
Flag CVM_INSPECTOR changed. Cleaning up.
Flag CVM_INSTRUCTION_COUNTING changed. Cleaning up.
Flag CVM_INTERPRETER_LOOP changed. Cleaning up.
Flag CVM_JAVAC_DEBUG changed. Cleaning up.
Flag CVM_JIT changed. Cleaning up.
Flag CVM_JIT_COLLECT_STATS changed. Cleaning up.
Flag CVM_JIT_COPY_CCMCODE_TO_CODECACHE changed. Cleaning up.
Flag CVM_JIT_DEBUG changed. Cleaning up.
Flag CVM_JIT_ESTIMATE_COMPILATION_SPEED changed. Cleaning up.
Flag CVM_JIT_PATCHED_METHOD_INVOCATIONS changed. Cleaning up.
Flag CVM_JIT_PROFILE changed. Cleaning up.
Flag CVM_JIT_REGISTER_LOCALS changed. Cleaning up.
Flag CVM_JIT_USE_FP_HARDWARE changed. Cleaning up.
Flag CVM_JVMPI changed. Cleaning up.
Flag CVM_JVMPI_TRACE_INSTRUCTION changed. Cleaning up.
Flag CVM_JVMTI changed. Cleaning up.
Flag CVM_KNI changed. Cleaning up.
Flag CVM_LVM changed. Cleaning up.
Flag CVM_MP_SAFE changed. Cleaning up.
Flag CVM_MTASK changed. Cleaning up.
Flag CVM_NO_CODE_COMPACTION changed. Cleaning up.
Flag CVM_NO_LOSSY_OPCODES changed. Cleaning up.
Flag CVM_OPTIMIZED changed. Cleaning up.
Flag CVM_PRELOAD_LIB changed. Cleaning up.
Flag CVM_PRELOAD_TEST changed. Cleaning up.
Flag CVM_PRODUCT changed. Cleaning up.
Flag CVM_REFLECT changed. Cleaning up.
Flag CVM_SERIALIZATION changed. Cleaning up.
Flag CVM_SPLIT_VERIFY changed. Cleaning up.
Flag CVM_STATICLINK_LIBS changed. Cleaning up.
Flag CVM_SYMBOLS changed. Cleaning up.
Flag CVM_TEST_GC changed. Cleaning up.
Flag CVM_TEST_GENERATION_GC changed. Cleaning up.
Flag CVM_THREAD_SUSPENSION changed. Cleaning up.
Flag CVM_TIMESTAMPING changed. Cleaning up.
Flag CVM_TRACE changed. Cleaning up.
Flag CVM_TRACE_JIT changed. Cleaning up.
Flag CVM_USE_CVM_MEMALIGN changed. Cleaning up.
Flag CVM_USE_MEM_MGR changed. Cleaning up.
Flag CVM_USE_NATIVE_TOOLS changed. Cleaning up.
Flag CVM_VERIFY_HEAP changed. Cleaning up.
Flag CVM_XRUN changed. Cleaning up.
Flag J2ME_CLASSLIB changed. Cleaning up.
Flag OPT_PKGS changed. Cleaning up.
Flag USE_GCI changed. Cleaning up.
Flag USE_JUMP changed. Cleaning up.
Flag USE_MIDP changed. Cleaning up.
... generating ../../build/win32-arm-wm5/cdc-midp/generated/javavm/include/build
_defs.h

/*** Definitions generated at build time ***/
#ifndef _BUILD_DEFS_H
#define _BUILD_DEFS_H

#define CVM_BUILD_OPTIONS \
"CVM_AGENTLIB=false\n" \
"CVM_AOT=false\n" \
"CVM_CCM_COLLECT_STATS=false\n" \
"CVM_CLASSLIB_JCOV=false\n" \
"CVM_CLASSLOADING=true\n" \
"CVM_CSTACKANALYSIS=false\n" \
"CVM_DEBUG=false\n" \
"CVM_DEBUG_ASSERTS=false\n" \
"CVM_DEBUG_CLASSINFO=false\n" \
"CVM_DEBUG_DUMPSTACK=false\n" \
"CVM_DEBUG_STACKTRACES=true\n" \
"CVM_DUAL_STACK=true\n" \
"CVM_DYNAMIC_LINKING=true\n" \
"CVM_EMBEDDED_HOOK=false\n" \
"CVM_GCCHOICE=generational\n" \
"CVM_GCOV=false\n" \
"CVM_GPROF=false\n" \
"CVM_GPROF_NO_CALLGRAPH=true\n" \
"CVM_HOST=i686-cygwin-win32\n" \
"CVM_INCLUDE_COMMCONNECTION=false\n" \
"CVM_INSPECTOR=false\n" \
"CVM_INSTRUCTION_COUNTING=false\n" \
"CVM_INTERPRETER_LOOP=Standard\n" \
"CVM_JAVAC_DEBUG=false\n" \
"CVM_JIT=true\n" \
"CVM_JIT_COLLECT_STATS=\n" \
"CVM_JIT_COPY_CCMCODE_TO_CODECACHE=true\n" \
"CVM_JIT_DEBUG=false\n" \
"CVM_JIT_ESTIMATE_COMPILATION_SPEED=false\n" \
"CVM_JIT_PATCHED_METHOD_INVOCATIONS=false\n" \
"CVM_JIT_PROFILE=false\n" \
"CVM_JIT_REGISTER_LOCALS=true\n" \
"CVM_JIT_USE_FP_HARDWARE=false\n" \
"CVM_JVMPI=false\n" \
"CVM_JVMPI_TRACE_INSTRUCTION=false\n" \
"CVM_JVMTI=\n" \
"CVM_KNI=true\n" \
"CVM_LVM=false\n" \
"CVM_MP_SAFE=false\n" \
"CVM_MTASK=false\n" \
"CVM_NO_CODE_COMPACTION=false\n" \
"CVM_NO_LOSSY_OPCODES=\n" \
"CVM_OPTIMIZED=true\n" \
"CVM_PRELOAD_LIB=true\n" \
"CVM_PRELOAD_TEST=false\n" \
"CVM_PRODUCT=premium\n" \
"CVM_REFLECT=true\n" \
"CVM_SERIALIZATION=true\n" \
"CVM_SPLIT_VERIFY=false\n" \
"CVM_STATICLINK_LIBS=true\n" \
"CVM_SYMBOLS=false\n" \
"CVM_TEST_GC=false\n" \
"CVM_TEST_GENERATION_GC=false\n" \
"CVM_THREAD_SUSPENSION=false\n" \
"CVM_TIMESTAMPING=true\n" \
"CVM_TRACE=false\n" \
"CVM_TRACE_JIT=false\n" \
"CVM_USE_CVM_MEMALIGN=false\n" \
"CVM_USE_MEM_MGR=false\n" \
"CVM_USE_NATIVE_TOOLS=true\n" \
"CVM_VERIFY_HEAP=false\n" \
"CVM_XRUN=false\n" \
"J2ME_CLASSLIB=foundation\n" \
"OPT_PKGS=\n" \
"USE_GCI=false\n" \
"USE_JUMP=false\n" \
"USE_MIDP=true\n" \

#define CVM_PROP_JAVA_VERSION "phoneme_advanced_mr2-b34"
#define CVM_PROP_JAVA_VENDOR "Sun Microsystems Inc."
#define CVM_PROP_JAVA_VENDOR_URL "http://java.sun.com/"
#define CVM_PROP_JAVA_VENDOR_URL_BUG "http://java.sun.com/cgi-bin/bugreport.c
gi"
#define CVM_PROP_JAVA_SPEC_NAME "Foundation Profile Specification"
#define CVM_PROP_JAVA_SPEC_VERSION "1.1"
#define CVM_PROP_JAVA_SPEC_VENDOR "Sun Microsystems Inc."
#define CVM_PROP_JAVA_CLASS_VERSION "47.0"
#define CVM_PROP_JAVA_VM_NAME "CVM"
#define CVM_PROP_JAVA_VM_VERSION "phoneme_advanced_mr2-b34"
#define CVM_PROP_SUN_MISC_PRODUCT "phoneME Advanced"
#define CVM_PROP_JAVA_VM_INFO "mixed mode"
#define CVM_PROP_JAVA_VM_VENDOR "Sun Microsystems Inc."
#define CVM_PROP_JAVA_VM_SPEC_NAME "Java Virtual Machine Specification"
#define CVM_PROP_JAVA_VM_SPEC_VERSION "1.0"
#define CVM_PROP_JAVA_VM_SPEC_VENDOR "Sun Microsystems Inc."
#define CVM_CLASSLIB_JAR_NAME "foundation.jar"
#define CVM_JARFILES CVM_CLASSLIB_JAR_NAME

#endif /* _BUILD_DEFS_H */

updating ../../build/win32-arm-wm5/cdc-midp/generated/build_defs.mk ...
... mkdir ../../build/win32-arm-wm5/cdc-midp/obj
... mkdir ../../build/win32-arm-wm5/cdc-midp/bin
... mkdir ../../build/win32-arm-wm5/cdc-midp/generated/javavm/runtime/opcodecons
ts
... mkdir ../../build/win32-arm-wm5/cdc-midp/generated/classes/sun/misc
... mkdir ../../build/win32-arm-wm5/cdc-midp/generated/jni
... mkdir ../../build/win32-arm-wm5/cdc-midp/generated/cni
... mkdir ../../build/win32-arm-wm5/cdc-midp/generated/offsets
... mkdir ../../build/win32-arm-wm5/cdc-midp/btclasses
... mkdir ../../build/win32-arm-wm5/cdc-midp/testclasses
... mkdir ../../build/win32-arm-wm5/cdc-midp/democlasses
... mkdir ../../build/win32-arm-wm5/cdc-midp/lib
... mkdir ../../build/win32-arm-wm5/cdc-midp/lib/security
... mkdir ../../build/win32-arm-wm5/cdc-midp/classes.tools
... mkdir ../../build/win32-arm-wm5/cdc-midp/generated/javavm/include/jit
... mkdir ../../build/win32-arm-wm5/cdc-midp/jcs
... mkdir ../../build/win32-arm-wm5/cdc-midp/generated/classes/java/util
... mkdir ../../build/win32-arm-wm5/cdc-midp/classes.jcc
====> start pcsl build
generating config file...
building all modules...
cd /pmea/pcsl/types; make all
cd /pmea/pcsl/print; make all
building print module...
cd /pmea/pcsl/print/file/../..//file; make all
cd /pmea/pcsl/file/..//string; make all
cd /pmea/pcsl/string/../types; make all
building string util...
cd /pmea/pcsl/string/util/../../types; make all
/cl.exe: not found
make[6]: *** [/pmea/cdc/build/win32-arm-wm5/cdc-midp/midp/pcsl_fb/wince_arm/obj/
utf.o] Error 127
make[5]: *** [all] Error 2
make[4]: *** [string] Error 2
make[3]: *** [file] Error 2
make[2]: *** [all] Error 2
make[1]: *** [all] Error 2
make: *** [initbuild_profile] Error 2

If you have any suggestion, please help me out.
Thanks in advance.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
amarjyotinath
Offline
Joined: 2009-10-13
Points: 0

Anybody has any solution to the above problem...........If nobody has faced the above problem, do anybody have any idea regarding building MIDP for phoneME Advanced mr2.

Regards,
Amar

amarjyotinath
Offline
Joined: 2009-10-13
Points: 0

Hi all,

The above "cl.exe not found" error has gone now.But a new error , i am facing which i am listing below:

MAKEFLAGS = PCSL_PLATFORM=win32_i386_vc USE_MIDP=true USE_JPEG=true CVM_BUILD_S
UBDIR_NAME=cdc-midp CVM_PRELOAD_LIB=true CVM_JIT=true J2ME_CLASSLIB=foundation J
DK_HOME=C:/j2sdk1.4.2_12
CVM_HOST = i686-cygwin-win32
CVM_TARGET = win32-arm-wm5
SHELL = bash
HOST_CC = /usr/bin/cc
HOST_CCC = /usr/bin/g++
ZIP = /usr/bin/zip
FLEX = /usr/bin/flex
BISON = /usr/bin/bison
CVM_JAVA = C:/j2sdk1.4.2_12/bin/java
CVM_JAVAC = C:/j2sdk1.4.2_12/bin/javac
CVM_JAVAH = C:/j2sdk1.4.2_12/bin/javah
CVM_JAR = C:/j2sdk1.4.2_12/bin/jar
TARGET_CC = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x8
6_arm/CL.EXE
TARGET_CCC = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x8
6_arm/CL.EXE
TARGET_AS = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x8
6_arm/ARMASM.EXE
TARGET_LD = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x8
6_arm/LINK.EXE
TARGET_AR = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x8
6_arm/LINK.EXE
TARGET_RANLIB = /usr/bin/ranlib
LINKFLAGS = /implib:cdc-midp/bin/cvmi.lib /nologo /map /dll /incremental:yes /
subsystem:windowsce,5.01 /base:0x00100000 /entry:_DllMainCRTStartup /export:jio
_snprintf /export:CVMexpandStack /export:CVMtimeMillis /export:CVMIDprivate_allo
cateLocalRootUnsafe /export:CVMglobals /export:CVMsystemPanic /export:CVMcsRende
zvous /export:CVMconsolePrintf
LINKLIBS = commctrl.lib coredll.lib corelibc.lib ddraw.lib wininet.lib winsock
.lib C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft V
isual Studio 8\VC\ATLMFC\LIB /LIBPATH:C:/Program Files/Microsoft Visual Studio 8
/VC/ce/lib/armv4i /LIBPATH:C:/Program Files/Microsoft Visual Studio 8/VC/ce/atlm
fc/lib/armv4i /libpath:C:/pmea/cdc/build/win32-arm-wm5/cdc-midp/midp/pcsl_fb/win
ce_arm/lib /nodefaultlib:libc.lib /nodefaultlib:libcd.lib /nodefaultlib:libcmt.l
ib /nodefaultlib:libcmtd.lib /nodefaultlib:msvcrt.lib /nodefaultlib:msvcrtd.lib
/nodefaultlib:oldnames.lib libpcsl_file.lib libpcsl_memory.lib libpcsl_print.lib
libpcsl_string.lib libpcsl_network.lib Ws2.lib gx.lib aygshell.lib
ASM_FLAGS = -CPU StrongARM1 -32 -NOTerse -WIdth 132 -list .lst .i
CCCFLAGS =
CCFLAGS_SPEED = /nologo /c /W2 /GS- /Fdcdc-midp/cvm.pdb /O2 /Ob2 /Ot -DNDEBUG
CCFLAGS_SPACE = /nologo /c /W2 /GS- /Fdcdc-midp/cvm.pdb /O1 /Ob1 -DNDEBUG
CCFLAGS_LOOP = /nologo /c /W2 /GS- /Fdcdc-midp/cvm.pdb /O2 /Ob2 /Ot -DNDEBUG

CCFLAGS_FDLIB = /nologo /c /W2 /GS- /Fdcdc-midp/cvm.pdb -DNDEBUG /Od
JAVAC_OPTIONS = -g:none -J-Xms32m -J-Xmx128m -encoding iso8859-1 -source 1.4 -t
arget 1.4
CVM_DEFINES = -DCVM_OPTIMIZED -DCVM_DEBUG_STACKTRACES -DNDEBUG -DCVM_CLASSLOA
DING -DCVM_SERIALIZATION -DCVM_REFLECT -DCVM_DYNAMIC_LINKING -DCVM_JIT -DCVM_DUA
L_STACK -DCVM_JIT_REGISTER_LOCALS -DCVM_TIMESTAMPING -DCVM_PRELOAD_LIB -DCVM_STA
TICLINK_LIBS -DJ2ME_CLASSLIB=foundation -DTARGET_CPU_FAMILY=arm -DCVM_JIT_COPY_C
CMCODE_TO_CODECACHE -DHAVE_64_BIT_IO -DNDEBUG -DARM -D_ARM -D__RVCT__ -DWINCE -D
WIN32_LEAN_AND_MEAN -DWIN32_PLATFORM_PSPC -DUNICODE -D_UNICODE -DUNDER_CE=500 -D
_WIN32_WCE=500 -D_ARM_ -DEDB -DPOCKETPC
host uname = CYGWIN_NT-5.1 si-amarj 1.5.25(0.156/4/2) 2008-04-17 12:11 i6
86 Cygwin
TARGET_CC version = Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50725
for ARM
HOST_CC version = 3.4.4 i686-pc-cygwin
CVM_JAVA version = java version 1.4.2_15
TOOLS_DIR = /pmea/tools
SDK_DIR = C:/Program Files/Windows CE Tools
VC_PATH = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC
PLATFORM_SDK_DIR = C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.
0 Pocket PC SDK
PLATFORM_TOOLS_PATH = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/
bin/x86_arm
COMMON_TOOLS_PATH = /cygdrive/c/Program Files/Microsoft Visual Studio 8/Common
7/Tools/Bin
MIDP_DIR = /pmea/midp
PCSL_DIR = /pmea/pcsl
updating ../../build/win32-arm-wm5/cdc-midp/generated/build_defs.mk ...
====> start pcsl build
generating config file...
building all modules...
cd /pmea/pcsl/types; make all
cd /pmea/pcsl/print; make all
building print module...
cd /pmea/pcsl/memory; make all
building memory port module...
building memory module...
cd /pmea/pcsl/file; make all
cd /pmea/pcsl/file/..//string; make all
cd /pmea/pcsl/string/../types; make all
building string util...
cd /pmea/pcsl/string/util/../../types; make all
building string module...
cd /pmea/pcsl/string/utf16/../../memory; make all
building memory port module...
building memory module...
Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50725 for ARM
Copyright (C) Microsoft Corporation. All rights reserved.

pcsl_string.c
pcsl_string.c(33) : fatal error C1083: Cannot open include file: 'errno.h': No s
uch file or directory
make[4]: *** [/pmea/cdc/build/win32-arm-wm5/cdc-midp/midp/pcsl_fb/win32_i386/obj
/pcsl_string.o] Error 2
make[3]: *** [all] Error 2
make[2]: *** [string] Error 2
make[1]: *** [all] Error 2
make: *** [initbuild_profile] Error 2

Anybody has any idea, how to solve this problem???

Thanx in advance.
Regards,
Amar

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

That header does not exist for WinCE, so you can safely remove references to the
errno.h header file or create a dummy one.

Davy

amarjyotinath
Offline
Joined: 2009-10-13
Points: 0

Hi davy,

On commenting the line:- #include , i get the following error:

MAKEFLAGS = PCSL_PLATFORM=win32_i386_vc USE_MIDP=true USE_JPEG=true CVM_BUILD_S
UBDIR_NAME=cdc-midp CVM_PRELOAD_LIB=true CVM_JIT=true J2ME_CLASSLIB=foundation J
DK_HOME=C:/j2sdk1.4.2_12
CVM_HOST = i686-cygwin-win32
CVM_TARGET = win32-arm-wm5
SHELL = bash
HOST_CC = /usr/bin/cc
HOST_CCC = /usr/bin/g++
ZIP = /usr/bin/zip
FLEX = /usr/bin/flex
BISON = /usr/bin/bison
CVM_JAVA = C:/j2sdk1.4.2_12/bin/java
CVM_JAVAC = C:/j2sdk1.4.2_12/bin/javac
CVM_JAVAH = C:/j2sdk1.4.2_12/bin/javah
CVM_JAR = C:/j2sdk1.4.2_12/bin/jar
TARGET_CC = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x8
6_arm/CL.EXE
TARGET_CCC = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x8
6_arm/CL.EXE
TARGET_AS = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x8
6_arm/ARMASM.EXE
TARGET_LD = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x8
6_arm/LINK.EXE
TARGET_AR = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x8
6_arm/LINK.EXE
TARGET_RANLIB = /usr/bin/ranlib
LINKFLAGS = /implib:cdc-midp/bin/cvmi.lib /nologo /map /dll /incremental:yes /
subsystem:windowsce,5.01 /base:0x00100000 /entry:_DllMainCRTStartup /export:jio
_snprintf /export:CVMexpandStack /export:CVMtimeMillis /export:CVMIDprivate_allo
cateLocalRootUnsafe /export:CVMglobals /export:CVMsystemPanic /export:CVMcsRende
zvous /export:CVMconsolePrintf
LINKLIBS = commctrl.lib coredll.lib corelibc.lib ddraw.lib wininet.lib winsock
.lib C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft V
isual Studio 8\VC\ATLMFC\LIB /LIBPATH:C:/Program Files/Microsoft Visual Studio 8
/VC/ce/lib/armv4i /LIBPATH:C:/Program Files/Microsoft Visual Studio 8/VC/ce/atlm
fc/lib/armv4i /libpath:C:/pmea/cdc/build/win32-arm-wm5/cdc-midp/midp/pcsl_fb/win
ce_arm/lib /nodefaultlib:libc.lib /nodefaultlib:libcd.lib /nodefaultlib:libcmt.l
ib /nodefaultlib:libcmtd.lib /nodefaultlib:msvcrt.lib /nodefaultlib:msvcrtd.lib
/nodefaultlib:oldnames.lib libpcsl_file.lib libpcsl_memory.lib libpcsl_print.lib
libpcsl_string.lib libpcsl_network.lib Ws2.lib gx.lib aygshell.lib
ASM_FLAGS = -CPU StrongARM1 -32 -NOTerse -WIdth 132 -list .lst .i
CCCFLAGS =
CCFLAGS_SPEED = /nologo /c /W2 /GS- /Fdcdc-midp/cvm.pdb /O2 /Ob2 /Ot -DNDEBUG
CCFLAGS_SPACE = /nologo /c /W2 /GS- /Fdcdc-midp/cvm.pdb /O1 /Ob1 -DNDEBUG
CCFLAGS_LOOP = /nologo /c /W2 /GS- /Fdcdc-midp/cvm.pdb /O2 /Ob2 /Ot -DNDEBUG

CCFLAGS_FDLIB = /nologo /c /W2 /GS- /Fdcdc-midp/cvm.pdb -DNDEBUG /Od
JAVAC_OPTIONS = -g:none -J-Xms32m -J-Xmx128m -encoding iso8859-1 -source 1.4 -t
arget 1.4
CVM_DEFINES = -DCVM_OPTIMIZED -DCVM_DEBUG_STACKTRACES -DNDEBUG -DCVM_CLASSLOA
DING -DCVM_SERIALIZATION -DCVM_REFLECT -DCVM_DYNAMIC_LINKING -DCVM_JIT -DCVM_DUA
L_STACK -DCVM_JIT_REGISTER_LOCALS -DCVM_TIMESTAMPING -DCVM_PRELOAD_LIB -DCVM_STA
TICLINK_LIBS -DJ2ME_CLASSLIB=foundation -DTARGET_CPU_FAMILY=arm -DCVM_JIT_COPY_C
CMCODE_TO_CODECACHE -DHAVE_64_BIT_IO -DNDEBUG -DARM -D_ARM -D__RVCT__ -DWINCE -D
WIN32_LEAN_AND_MEAN -DWIN32_PLATFORM_PSPC -DUNICODE -D_UNICODE -DUNDER_CE=500 -D
_WIN32_WCE=500 -D_ARM_ -DEDB -DPOCKETPC
host uname = CYGWIN_NT-5.1 si-amarj 1.5.25(0.156/4/2) 2008-04-17 12:11 i6
86 Cygwin
TARGET_CC version = Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50725
for ARM
HOST_CC version = 3.4.4 i686-pc-cygwin
CVM_JAVA version = java version 1.4.2_15
TOOLS_DIR = /pmea/tools
SDK_DIR = C:/Program Files/Windows CE Tools
VC_PATH = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC
PLATFORM_SDK_DIR = C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.
0 Pocket PC SDK
PLATFORM_TOOLS_PATH = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/
bin/x86_arm
COMMON_TOOLS_PATH = /cygdrive/c/Program Files/Microsoft Visual Studio 8/Common
7/Tools/Bin
MIDP_DIR = /pmea/midp
PCSL_DIR = /pmea/pcsl
updating ../../build/win32-arm-wm5/cdc-midp/generated/build_defs.mk ...
====> start pcsl build
generating config file...
building all modules...
cd /pmea/pcsl/types; make all
cd /pmea/pcsl/print; make all
building print module...
cd /pmea/pcsl/memory; make all
building memory port module...
building memory module...
cd /pmea/pcsl/file; make all
cd /pmea/pcsl/file/..//string; make all
cd /pmea/pcsl/string/../types; make all
building string util...
cd /pmea/pcsl/string/util/../../types; make all
building string module...
cd /pmea/pcsl/string/utf16/../../memory; make all
building memory port module...
building memory module...
Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50725 for ARM
Copyright (C) Microsoft Corporation. All rights reserved.

pcsl_string.c
Microsoft (R) Library Manager Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.

building file module...
cd /pmea/pcsl/file/win32/../../memory; make all
building memory port module...
building memory module...
Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50725 for ARM
Copyright (C) Microsoft Corporation. All rights reserved.

pcsl_win32.c
C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK/Includ
e/Armv4i\winnt.h(2976) : error C2061: syntax error : identifier 'PCONTEXT'
C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK/Includ
e/Armv4i\winnt.h(2977) : error C2059: syntax error : '}'
C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK/Includ
e/Armv4i\winbase.h(1414) : error C2061: syntax error : identifier 'LPCONTEXT'
C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK/Includ
e/Armv4i\winbase.h(1414) : error C2059: syntax error : ';'
C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK/Includ
e/Armv4i\winbase.h(2117) : error C2146: syntax error : missing ')' before identi
fier 'lpContext'
C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK/Includ
e/Armv4i\winbase.h(2117) : error C2081: 'LPCONTEXT' : name in formal parameter l
ist illegal
C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK/Includ
e/Armv4i\winbase.h(2117) : error C2061: syntax error : identifier 'lpContext'
C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK/Includ
e/Armv4i\winbase.h(2117) : error C2059: syntax error : ';'
C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK/Includ
e/Armv4i\winbase.h(2118) : error C2059: syntax error : ')'
C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK/Includ
e/Armv4i\winbase.h(2125) : error C2143: syntax error : missing ')' before '*'
C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK/Includ
e/Armv4i\winbase.h(2125) : error C2143: syntax error : missing '{' before '*'
C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK/Includ
e/Armv4i\winbase.h(2126) : error C2059: syntax error : ')'
pcsl_win32.c(29) : fatal error C1083: Cannot open include file: 'fcntl.h': No su
ch file or directory
make[3]: *** [/pmea/cdc/build/win32-arm-wm5/cdc-midp/midp/pcsl_fb/win32_i386/obj
/pcsl_win32.o] Error 2
make[2]: *** [all] Error 2
make[1]: *** [all] Error 2
make: *** [initbuild_profile] Error 2

What can be the solution??????

Regards,
Amar

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

There are some issues with the pcsl/file implementation for Windows CE. Try the 3 files from this branch instead:

https://phoneme.dev.java.net/source/browse/phoneme/components/pcsl/branc...

That should do the trick. References to fcntl.h can be removed as well.

Davy

amarjyotinath
Offline
Joined: 2009-10-13
Points: 0

Hi davy,

I tried the 3 files that you said, but i am still getting error which i am listing below:-

MAKEFLAGS = PCSL_PLATFORM=win32_i386_vc USE_MIDP=true USE_JPEG=true CVM_BUILD_
UBDIR_NAME=cdc-midp CVM_PRELOAD_LIB=true CVM_JIT=true J2ME_CLASSLIB=foundation
DK_HOME=C:/j2sdk1.4.2_12
CVM_HOST = i686-cygwin-win32
CVM_TARGET = win32-arm-wm5
SHELL = bash
HOST_CC = /usr/bin/cc
HOST_CCC = /usr/bin/g++
ZIP = /usr/bin/zip
FLEX = /usr/bin/flex
BISON = /usr/bin/bison
CVM_JAVA = C:/j2sdk1.4.2_12/bin/java
CVM_JAVAC = C:/j2sdk1.4.2_12/bin/javac
CVM_JAVAH = C:/j2sdk1.4.2_12/bin/javah
CVM_JAR = C:/j2sdk1.4.2_12/bin/jar
TARGET_CC = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x
6_arm/CL.EXE
TARGET_CCC = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x
6_arm/CL.EXE
TARGET_AS = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x
6_arm/ARMASM.EXE
TARGET_LD = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x
6_arm/LINK.EXE
TARGET_AR = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce/bin/x
6_arm/LINK.EXE
TARGET_RANLIB = /usr/bin/ranlib
LINKFLAGS = /implib:cdc-midp/bin/cvmi.lib /nologo /map /dll /incremental:yes
subsystem:windowsce,5.01 /base:0x00100000 /entry:_DllMainCRTStartup /export:ji
_snprintf /export:CVMexpandStack /export:CVMtimeMillis /export:CVMIDprivate_all
cateLocalRootUnsafe /export:CVMglobals /export:CVMsystemPanic /export:CVMcsRend
zvous /export:CVMconsolePrintf
LINKLIBS = commctrl.lib coredll.lib corelibc.lib ddraw.lib wininet.lib winsoc
.lib C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727;C:\Program Files\Microsoft
isual Studio 8\VC\ATLMFC\LIB /LIBPATH:C:/Program Files/Microsoft Visual Studio
/VC/ce/lib/armv4i /LIBPATH:C:/Program Files/Microsoft Visual Studio 8/VC/ce/atl
fc/lib/armv4i /libpath:C:/pmea/cdc/build/win32-arm-wm5/cdc-midp/midp/pcsl_fb/wi
ce_arm/lib /nodefaultlib:libc.lib /nodefaultlib:libcd.lib /nodefaultlib:libcmt.
ib /nodefaultlib:libcmtd.lib /nodefaultlib:msvcrt.lib /nodefaultlib:msvcrtd.lib
/nodefaultlib:oldnames.lib libpcsl_file.lib libpcsl_memory.lib libpcsl_print.li
libpcsl_string.lib libpcsl_network.lib Ws2.lib gx.lib aygshell.lib
ASM_FLAGS = -CPU StrongARM1 -32 -NOTerse -WIdth 132 -list .lst .i
CCCFLAGS =
CCFLAGS_SPEED = /nologo /c /W2 /GS- /Fdcdc-midp/cvm.pdb /O2 /Ob2 /Ot -DNDEBUG
CCFLAGS_SPACE = /nologo /c /W2 /GS- /Fdcdc-midp/cvm.pdb /O1 /Ob1 -DNDEBUG
CCFLAGS_LOOP = /nologo /c /W2 /GS- /Fdcdc-midp/cvm.pdb /O2 /Ob2 /Ot -DNDEBUG

CCFLAGS_FDLIB = /nologo /c /W2 /GS- /Fdcdc-midp/cvm.pdb -DNDEBUG /Od
JAVAC_OPTIONS = -g:none -J-Xms32m -J-Xmx128m -encoding iso8859-1 -source 1.4 -
arget 1.4
CVM_DEFINES = -DCVM_OPTIMIZED -DCVM_DEBUG_STACKTRACES -DNDEBUG -DCVM_CLASSLO
DING -DCVM_SERIALIZATION -DCVM_REFLECT -DCVM_DYNAMIC_LINKING -DCVM_JIT -DCVM_DU
L_STACK -DCVM_JIT_REGISTER_LOCALS -DCVM_TIMESTAMPING -DCVM_PRELOAD_LIB -DCVM_ST
TICLINK_LIBS -DJ2ME_CLASSLIB=foundation -DTARGET_CPU_FAMILY=arm -DCVM_JIT_COPY_
CMCODE_TO_CODECACHE -DHAVE_64_BIT_IO -DNDEBUG -DARM -D_ARM -D__RVCT__ -DWINCE -
WIN32_LEAN_AND_MEAN -DWIN32_PLATFORM_PSPC -DUNICODE -D_UNICODE -DUNDER_CE=500 -
_WIN32_WCE=500 -D_ARM_ -DEDB -DPOCKETPC
host uname = CYGWIN_NT-5.1 si-amarj 1.5.25(0.156/4/2) 2008-04-17 12:11 i
86 Cygwin
TARGET_CC version = Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50725
for ARM
HOST_CC version = 3.4.4 i686-pc-cygwin
CVM_JAVA version = java version 1.4.2_15
TOOLS_DIR = /pmea/tools
SDK_DIR = C:/Program Files/Windows CE Tools
VC_PATH = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC
PLATFORM_SDK_DIR = C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5
0 Pocket PC SDK
PLATFORM_TOOLS_PATH = /cygdrive/c/Program Files/Microsoft Visual Studio 8/VC/ce
bin/x86_arm
COMMON_TOOLS_PATH = /cygdrive/c/Program Files/Microsoft Visual Studio 8/Commo
7/Tools/Bin
MIDP_DIR = /pmea/midp
PCSL_DIR = /pmea/pcsl
updating ../../build/win32-arm-wm5/cdc-midp/generated/build_defs.mk ...
====> start pcsl build
generating config file...
building all modules...
cd /pmea/pcsl/types; make all
cd /pmea/pcsl/print; make all
building print module...
cd /pmea/pcsl/memory; make all
building memory port module...
building memory module...
cd /pmea/pcsl/file; make all
cd /pmea/pcsl/file/..//string; make all
cd /pmea/pcsl/string/../types; make all
building string util...
cd /pmea/pcsl/string/util/../../types; make all
building string module...
cd /pmea/pcsl/string/utf16/../../memory; make all
building memory port module...
building memory module...
building file module...
cd /pmea/pcsl/file/win32/../../memory; make all
building memory port module...
building memory module...
Microsoft (R) C/C++ Optimizing Compiler Version 14.00.50725 for ARM
Copyright (C) Microsoft Corporation. All rights reserved.

pcsl_win32.c
C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK/Inclu
e/Armv4i\winnt.h(2976) : error C2061: syntax error : identifier 'PCONTEXT'
C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK/Inclu
e/Armv4i\winnt.h(2977) : error C2059: syntax error : '}'
C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK/Inclu
e/Armv4i\winbase.h(1414) : error C2061: syntax error : identifier 'LPCONTEXT'
C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK/Inclu
e/Armv4i\winbase.h(1414) : error C2059: syntax error : ';'
C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK/Inclu
e/Armv4i\winbase.h(2117) : error C2146: syntax error : missing ')' before ident
fier 'lpContext'
C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK/Inclu
e/Armv4i\winbase.h(2117) : error C2081: 'LPCONTEXT' : name in formal parameter
ist illegal
C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK/Inclu
e/Armv4i\winbase.h(2117) : error C2061: syntax error : identifier 'lpContext'
C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK/Inclu
e/Armv4i\winbase.h(2117) : error C2059: syntax error : ';'
C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK/Inclu
e/Armv4i\winbase.h(2118) : error C2059: syntax error : ')'
C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK/Inclu
e/Armv4i\winbase.h(2125) : error C2143: syntax error : missing ')' before '*'
C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK/Inclu
e/Armv4i\winbase.h(2125) : error C2143: syntax error : missing '{' before '*'
C:/Program Files/Windows CE Tools/wce500/Windows Mobile 5.0 Pocket PC SDK/Inclu
e/Armv4i\winbase.h(2126) : error C2059: syntax error : ')'
make[3]: *** [/pmea/cdc/build/win32-arm-wm5/cdc-midp/midp/pcsl_fb/win32_i386/ob
/pcsl_win32.o] Error 2
make[2]: *** [all] Error 2
make[1]: *** [all] Error 2
make: *** [initbuild_profile] Error 2

Please reply, if u have any solution.

Regards,
Amar

amarjyotinath
Offline
Joined: 2009-10-13
Points: 0

If anybody has any suggestion regarding solving the above problem, then please reply.

Regards,
Amar

amarjyotinath
Offline
Joined: 2009-10-13
Points: 0

If anybody has encountered the above problem, plz. provide me the solution immediately as it is very urgent.

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

Look at the line that says:
/cl.exe: not found

Your compiler cannot be found. You probably have not configured the environment
variable EVC_ARCH_PATH. Have a look at the file pcsl/makefiles/share/evc.gmk
and set the variables you need depending on your build environment.

Davy

amarjyotinath
Offline
Joined: 2009-10-13
Points: 0

Thanx for ur reply.

But i have no idea what path EVC_ARCH_PATH is assigned. How to check that.
I am providing the contents of the file( pcsl/makefiles/share/evc.gmk) below:-

ifeq ($(USE_VS2005), true)
ifeq ($(PCSL_CPU), arm)
EVC_LIB_PATH = $(VS2005_CE_ARM_LIB)
EVC_INCLUDE_PATH= $(VS2005_CE_ARM_INCLUDE)
EVC_ARCH_PATH = $(VS2005_CE_ARM_PATH)
CC = cl.exe
else
EVC_LIB_PATH = $(VS2005_CE_I386_LIB)
EVC_INCLUDE_PATH= $(VS2005_CE_I386_INCLUDE)
EVC_ARCH_PATH = $(VS2005_CE_I386_PATH)
CC = cl.exe
endif

CPP := $(EVC_ARCH_PATH)/$(CC)
CC := $(EVC_ARCH_PATH)/$(CC)
LD := $(EVC_ARCH_PATH)/link.exe
AR := $(EVC_ARCH_PATH)/lib.exe

CFLAGS += -D_WIN32_WCE=0x501 -DUNDER_CE=0x501 /GS-
else
ifeq ($(PCSL_CPU), arm)
EVC_LIB_PATH = $(EVC_ARM_LIB)
EVC_INCLUDE_PATH= $(EVC_ARM_INCLUDE)
EVC_ARCH_PATH = $(EVC_ARM_PATH)
CC = clarm.exe
else
EVC_LIB_PATH = $(EVC_I386_LIB)
EVC_INCLUDE_PATH= $(EVC_I386_INCLUDE)
EVC_ARCH_PATH = $(EVC_I386_PATH)
CC = cl.exe
endif

CPP := $(EVC_ARCH_PATH)/$(CC)
CC := $(EVC_ARCH_PATH)/$(CC)
LD := $(EVC_ARCH_PATH)/link.exe
AR := $(EVC_ARCH_PATH)/lib.exe
CFLAGS += -D_WIN32_WCE=400 -DUNDER_CE=400
endif

# Flag descriptions:
#
# /WX ??
# /c ??
# /W3 ??
# -Zi ??
# -Od ??
# -MDd debug on
#
ifeq ($(USE_DEBUG), true)
CFLAGS += -Zi -Od /DPCSL_DEBUG=1
else
CFLAGS += /Os
endif

CFLAGS += /X /I"${EVC_INCLUDE_PATH}"

ifeq ($(PCSL_CPU), i386)
CFLAGS += -D_X86_ -D_X86 -Dx86
else
CFLAGS += -DARM -D_ARM -D_ARM_
endif

CFLAGS += /c /W3 -DUNICODE -D_UNICODE /nologo

LD_FLAGS=

CC_OUTPUT=/Fo
AR_OUTPUT=/OUT:
LD_OUTPUT=/OUT:

LIB_EXT=.lib

Plz. say me how to check the path assigned to the environment variable.