Skip to main content

make command

38 replies [Last post]
wrappingduke
Offline
Joined: 2008-01-23

Hello,

Forgive me for this question, but I'm having difficulty running the make cmd from win xp machine.

I'm little confused on how the path should be specified for the build directory, i.e. cd build/. Or, if I override the SDK directory, how it should be specified from in the cygwin shell.

any help is appreciated.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kopcil
Offline
Joined: 2008-02-13

Dear Hinkmond,

please forgive my forwardness, but I have similar problem with building phoneme on Windows XP.
When I follow this thread, I get some partial success, but there is still problem with paths.
I run all commands from cygwin shell, with right PATH etc.

$cd /cygdrive/e/phoneme_advanced/trunk/build/win-arm-ppc03
$make USE_VERBOSE_MAKE=true SDK_DIR=/cygdrive/e/Windows\ CE\ Tools VC_PATH=/cygdrive/e/Microsoft\ eMbedded\ C++\ 4.0/ J2ME_CLASSLIB=foundation JDK_HOME=/cygdrive/e/j2sdk1.4.2_16
...
...
cc /phoneme_advanced/trunk/src/share/javavm/runtime/gc/generational/gen_semispace.c
CLARM.EXE /nologo /c /W2 /MC -D__STDC__ /O2 /Ob2 /Ot -DNDEBUG -DCVM_OPTIMIZED -DCVM_DEBUG_STACKTRACES -DNDEBUG -DCVM_CLASSLOADING -DCVM_SERIALIZATION -DCVM_REFLECT -DCVM_DYNAMIC_LINKING -DCVM_JIT -DCVM_JIT_REGISTER_LOCALS -DCVM_TIMESTAMPING -DJ2ME_CLASSLIB=foundation -DTARGET_CPU_FAMILY=arm -DCVM_JIT_COPY_CCMCODE_TO_CODECACHE -DCVM_DLL -DHAVE_64_BIT_IO -DNDEBUG -DARM -D_ARM -D__RVCT__ -DWINCE -DWIN32_LEAN_AND_MEAN -DWIN32_PLATFORM_PSPC -DUNICODE -D_UNICODE -DUNDER_CE=300 -D_WIN32_WCE=300 -DPOCKETPC -Ie:/phoneme_advanced/trunk/src/share -Ie:/phoneme_advanced/trunk/build/win32-arm-ppc03/ -Ie:/phoneme_advanced/trunk/src/share/javavm/export -Ie:/phoneme_advanced/trunk/src/share/native/common -Ie:/phoneme_advanced/trunk/src/share/native/java/lang -Ie:/phoneme_advanced/trunk/src/share/native/java/lang/fdlibm/include -Ie:/phoneme_advanced/trunk/src/share/native/java/net -Ie:/phoneme_advanced/trunk/src/share/native/java/io -Ie:/phoneme_advanced/trunk/src/share/native/java/util/zip -Ie:/phoneme_advanced/trunk/src/share/native/java/util/zip/zlib-1.1.3 -Ie:/phoneme_advanced/trunk/build/win32-arm-ppc03/generated/jni -Ie:/phoneme_advanced/trunk/src/arm -Ie:/phoneme_advanced/trunk/src/portlibs/jit/risc -Ie:/phoneme_advanced/trunk/src -Ie:/phoneme_advanced/trunk/src/win32 -Ie:/phoneme_advanced/trunk/src/win32/native/java/net -Ie:/phoneme_advanced/trunk/src/win32/native/java/util -Ie:/phoneme_advanced/trunk/src/win32/native/common -Ie:/phoneme_advanced/trunk/src/win32-arm -Ie:/phoneme_advanced/trunk/src/win32/javavm/include/ansi /Foe:/phoneme_advanced/trunk/build/win32-arm-ppc03/obj/gen_semispace.o e:/phoneme_advanced/trunk/src/share/javavm/runtime/gc/generational/gen_semispace.c
gen_semispace.c
e:\phoneme_advanced\trunk\src\win32\javavm\include\win32\windows.h(33) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
make: *** [/phoneme_advanced/trunk/build/win32-arm-ppc03/./obj/gen_semispace.o] Error 2

windows.h on specified path exists,
$ls -l e:\phoneme_advanced\trunk\src\win32\javavm\include\win32\windows.h
-rwxr-xr-x 1 Administrator None 1339 Feb 12 17:20 e:/phoneme_advanced/trunk/src/win32/javavm/include/win32/windows.h

$cc -v get:
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /usr/build/package/orig/test.respin/gcc-3.4.4-3/configure --verbose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-languages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-included-gettext --enable-version-specific-runtime-libs --without-x --enable-libgcj --disable-java-awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-threads=posix --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptions --enable-hash-synchronization --enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)

I can send whole log, but it's long, so I don't send it to forum now.
Your help will be very appreciated.

Vladimir Kopcil

cjplummer
Offline
Joined: 2006-10-16

> $cd
> /cygdrive/e/phoneme_advanced/trunk/build/win-arm-ppc03
>
> $make USE_VERBOSE_MAKE=true
> SDK_DIR=/cygdrive/e/Windows\ CE\ Tools
> VC_PATH=/cygdrive/e/Microsoft\ eMbedded\ C++\ 4.0/
> J2ME_CLASSLIB=foundation
> JDK_HOME=/cygdrive/e/j2sdk1.4.2_16

SDK_DIR need to be a DOS path. Try SDK_DIR=E:/Windows\ CE\ Tools. Also, look at the start log output to see if it reported any problems with SDK_DIR.

> $cc -v get:
> Reading specs from
> /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
>

cc is not the problem. It is the Visual Studio configuration.

Chris

kopcil
Offline
Joined: 2008-02-13

Thank you very much for your help!

1) For ppc03 it's works. I must clean directory structure and rebuild with DOS like SDK_DIR.
Start of log looks fine for me in both settings.

first (bad) case:
TOOLS_DIR = /phoneme_advanced/tools
SDK_DIR = /cygdrive/e/Windows CE Tools
VC_PATH = /cygdrive/e/Microsoft eMbedded C++ 4.0/
PLATFORM_SDK_DIR = /cygdrive/e/Windows CE Tools/wce420/POCKET PC 2003
PLATFORM_TOOLS_PATH = /cygdrive/e/Microsoft eMbedded C++ 4.0//EVC/wce420/bin

second (working) case:
TOOLS_DIR = /phoneme_advanced/tools
SDK_DIR = e:/Windows CE Tools
VC_PATH = /cygdrive/e/Microsoft eMbedded C++ 4.0/
PLATFORM_SDK_DIR = e:/Windows CE Tools/wce420/POCKET PC 2003
PLATFORM_TOOLS_PATH = /cygdrive/e/Microsoft eMbedded C++ 4.0//EVC/wce420/bin

2) Bad there is something wrong, when I try build for win32-mips-wince42
I used STANDARDSDK_420 from Microsoft eMbedded C++ 4.0. Is it OK?

...
as /phoneme_advanced/trunk/src/mips/javavm/runtime/jit/jit_cpu.S
CLMIPS.EXE -D_ASM -DMIPSIV -DMIPSIV_FP -DMIPSFP -DMIPS64 -D_MIPS64 -DWINCE41 -DUNDER_CE=410 -D_WIN32_WCE=410 -DCVM_OPTIMIZED -DCVM_DEBUG_STACKTRACES -DNDEBUG -DCVM_CLASSLOADING -DCVM_SERIALIZATION -DCVM_REFLECT -DCVM_DYNAMIC_LINKING -DCVM_JIT -DCVM_JIT_USE_FP_HARDWARE -DCVM_JIT_REGISTER_LOCALS -DCVM_TIMESTAMPING -DJ2ME_CLASSLIB=foundation -DTARGET_CPU_FAMILY=mips -DCVM_JIT_COPY_CCMCODE_TO_CODECACHE -DCVM_DLL -DHAVE_64_BIT_IO -DNDEBUG -DMIPS -D_MIPS_ -DWINCE_MIPS -DWINCE -DWIN32_LEAN_AND_MEAN -DWIN32_PLATFORM_PSPC -DUNICODE -D_UNICODE
...
-TC -P -EP e:/phoneme_advanced/trunk/src/mips/javavm/runtime/jit/jit_cpu.S
jit_cpu.S
e:\phoneme_advanced\trunk\src\mips\javavm\runtime\jit\jit_cpu.s(75) : fatal error C1017: invalid integer constant expression
make: *** [/phoneme_advanced/trunk/build/win32-mips-wince42/./obj/jit_cpu.o] Error 2

3) For sure, I ask generally: what build must I use for this device?
Windows Mobile 2003 Second Edition Version 4.21.1088
Processor: Intel PXA270

Thank you for your time,

Vladimir

cjplummer
Offline
Joined: 2006-10-16

Are you building for mips, arm, or both?

For wince/mips, it's probably been years since we've built this code. It's possible the mips assembler is having problems with the syntax of the #if. If would suggest changing it to a #if 1 for now since it is only a buildtime error check, and see if you run into more problems.

For ARM, I don't know that there are specific device requirements. If you have a device and a wince SDK to match it, probably CDC-HI will build and run on on it.

Chris

cjplummer
Offline
Joined: 2006-10-16

> Hello,
>
> same result w/ "bin" removed from cmd.

Make sure you are using JDK_HOME, not CVM_JAVABIN.

Chris

wrappingduke
Offline
Joined: 2008-01-23

Hello,

I think I ran into another problem. Here's the result of the changed command:

$ cd cdc/build/win32-arm-ppc03

$ make JDK_HOME=/cygdrive/c/j2sdk1.4.2_16 J2ME_CLASSLIB=personal AWT_PEERSET=po
cketpc
../share/rules.mk:556: ../../build/win32-arm-ppc03/./generated/empty.mk: No such
file or directory
... mkdir ../../build/win32-arm-ppc03/./generated/javavm/runtime
... mkdir ../../build/win32-arm-ppc03/./generated/javavm/runtime/jit
... mkdir ../../build/win32-arm-ppc03/./generated/classes
touch ../../build/win32-arm-ppc03/./generated/empty.mk
MAKEFLAGS = AWT_PEERSET=pocketpc J2ME_CLASSLIB=personal JDK_HOME=/cygdrive/c/j2
sdk1.4.2_16
CVM_HOST = i686-cygwin-win32
CVM_TARGET = win32-arm-ppc03
SHELL = bash -e
HOST_CC = /usr/bin/cc
HOST_CCC = which: no g++ in (/cygdrive/c/Program Files/Microsoft eMbedded C++
4.0/EVC/wce420/bin:/cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/Common/E
VC/Bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system32:
/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem)
ZIP = /usr/bin/zip
FLEX = /usr/bin/flex
BISON = /usr/bin/bison
CVM_JAVA = /cygdrive/c/j2sdk1.4.2_16/bin/java
CVM_JAVAC = /cygdrive/c/j2sdk1.4.2_16/bin/javac
CVM_JAVAH = /cygdrive/c/j2sdk1.4.2_16/bin/javah
CVM_JAR = /cygdrive/c/j2sdk1.4.2_16/bin/jar
TARGET_CC = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/CLARM.EXE
TARGET_CCC = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/CLARM.EXE
TARGET_AS = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/ARMASM.EXE
TARGET_LD = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/LINK.EXE
TARGET_AR = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/LINK.EXE
TARGET_RANLIB = /usr/bin/ranlib
LINKFLAGS = /incremental:no /nologo /map /subsystem:windowsce,3.00 /MACHINE:AR
M
LINKLIBS = -lpthread -ldl
ASM_FLAGS = -CPU StrongARM1 -32 -NOTerse -WIdth 132 -list .lst .i
CCCFLAGS =
CCFLAGS_SPEED = /nologo /c /W2 /MC -D__STDC__ /O2 /Ob2 /Ot -DNDEBUG
CCFLAGS_SPACE = /nologo /c /W2 /MC -D__STDC__ /O1 /Ob1 -DNDEBUG
CCFLAGS_LOOP = /nologo /c /W2 /MC -D__STDC__ /O2 /Ob2 /Ot -DNDEBUG
CCFLAGS_FDLIB = /nologo /c /W2 /MC -D__STDC__ -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_JIT
_REGISTER_LOCALS -DCVM_TIMESTAMPING -DJ2ME_CLASSLIB=personal -DTARGET_CPU_FAMILY
=arm -DCVM_JIT_COPY_CCMCODE_TO_CODECACHE -DCVM_DLL -DHAVE_64_BIT_IO -DNDEBUG -DA
RM -D_ARM -D__RVCT__ -DWINCE -DWIN32_LEAN_AND_MEAN -DWIN32_PLATFORM_PSPC -DUNICO
DE -D_UNICODE -DUNDER_CE=300 -D_WIN32_WCE=300 -DPOCKETPC -Dpocketpc
host uname = CYGWIN_NT-5.1 D4VFHSC1 1.5.25(0.156/4/2) 2007-12-14 19:21 i6
86 Cygwin
TARGET_CC version = Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 f
or ARM
HOST_CC version = 3.4.4 i686-pc-cygwin
CVM_JAVA version = java version 1.4.2_16
TOOLS_DIR = /home/OHI/tools
SDK_DIR = C:/Program Files/Windows CE Tools
VC_PATH = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0
PLATFORM_SDK_DIR = C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003
PLATFORM_TOOLS_PATH = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/w
ce420/bin
COMMON_TOOLS_PATH = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/Commo
n/EVC/Bin
INCLUDE = C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/In
clude/Armv4;C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Mfc/include;
C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Atl/include
LIB = C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Li
b/Armv4;C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Mfc/lib/armv4;C:
/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Atl/lib/armv4
AWT_LIB_LIBS = ../../build/win32-arm-ppc03/./bin/wcecompat.lib aygshell.li
b
AWT_IMPLEMENTATION = peer_based
AWT_PEERSET = pocketpc
... mkdir ../../build/win32-arm-ppc03/./generated/flags
Flag AWT_IMPLEMENTATION changed. Cleaning up.
Flag AWT_PEERSET changed. Cleaning up.
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_CREATE_RTJAR 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_DLL 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_JVMTI_ROM 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 EXCLUDE_XLET_RUNNER changed. Cleaning up.
Flag J2ME_CLASSLIB changed. Cleaning up.
Flag OPT_PKGS changed. Cleaning up.
Flag POCKETPC_MENUS 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-ppc03/./generated/javavm/include/build_defs
.h

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

#define CVM_BUILD_OPTIONS \
"AWT_IMPLEMENTATION=peer_based\n" \
"AWT_PEERSET=pocketpc\n" \
"CVM_AGENTLIB=false\n" \
"CVM_AOT=false\n" \
"CVM_CCM_COLLECT_STATS=false\n" \
"CVM_CLASSLIB_JCOV=false\n" \
"CVM_CLASSLOADING=true\n" \
"CVM_CREATE_RTJAR=false\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_DLL=true\n" \
"CVM_DUAL_STACK=false\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=false\n" \
"CVM_JVMTI_ROM=false\n" \
"CVM_KNI=false\n" \
"CVM_LVM=false\n" \
"CVM_MP_SAFE=false\n" \
"CVM_MTASK=false\n" \
"CVM_NO_CODE_COMPACTION=false\n" \
"CVM_NO_LOSSY_OPCODES=false\n" \
"CVM_OPTIMIZED=true\n" \
"CVM_PRELOAD_LIB=false\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=false\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" \
"EXCLUDE_XLET_RUNNER=false\n" \
"J2ME_CLASSLIB=personal\n" \
"OPT_PKGS=\n" \
"POCKETPC_MENUS=true\n" \
"USE_GCI=false\n" \
"USE_JUMP=false\n" \
"USE_MIDP=false\n" \

#define CVM_PROP_JAVA_VERSION "phoneme_advanced_mr2-b57"
#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 "Personal 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-b57"
#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 "personal.jar"
#define CVM_JARFILES CVM_CLASSLIB_JAR_NAME,

#endif /* _BUILD_DEFS_H */

updating ../../build/win32-arm-ppc03/./generated/build_defs.mk ...
... mkdir ../../build/win32-arm-ppc03/./obj
... mkdir ../../build/win32-arm-ppc03/./bin
... mkdir ../../build/win32-arm-ppc03/./generated/javavm/runtime/opcodeconsts
... mkdir ../../build/win32-arm-ppc03/./generated/classes/sun/misc
... mkdir ../../build/win32-arm-ppc03/./generated/jni
... mkdir ../../build/win32-arm-ppc03/./generated/cni
... mkdir ../../build/win32-arm-ppc03/./generated/offsets
... mkdir ../../build/win32-arm-ppc03/./btclasses
... mkdir ../../build/win32-arm-ppc03/./testclasses
... mkdir ../../build/win32-arm-ppc03/./democlasses
... mkdir ../../build/win32-arm-ppc03/./lib
... mkdir ../../build/win32-arm-ppc03/./lib/security
... mkdir ../../build/win32-arm-ppc03/./classes.tools
... mkdir ../../build/win32-arm-ppc03/./personal_classes
... mkdir ../../build/win32-arm-ppc03/./generated/javavm/include/jit
... mkdir ../../build/win32-arm-ppc03/./jcs
... mkdir ../../build/win32-arm-ppc03/./generated/classes/java/util
... mkdir ../../build/win32-arm-ppc03/./classes.jcc
Checking for build-time classes to compile ...
... generating BuildFlags.java
... ../../build/win32-arm-ppc03/./generated/classes/sun/misc/BuildFlags.java
... generating sun.misc.DefaultLocaleList.java
... ../../build/win32-arm-ppc03/./generated/classes/sun/misc/DefaultLocaleList.j
ava
... /home/OHI/tools/output/Configurator.manifest
... building CodeTransformer
... /home/OHI/tools/output/Configurator.jar
... generating PackageManager.java
Compiling build-time classes...
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
... /home/OHI/cdc/build/win32-arm-ppc03/btclasses.zip
Checking for phoneME Advanced classes to compile ...
make: *** No rule to make target `../../build/win32-arm-ppc03/./personal_classes
/sun/awt/pocketpc/PPCRobotHelper.class', needed by `../../build/win32-arm-ppc03/
./.libclasses.plist'. Stop.

Your help is appreciated

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hello,
>
> I think I ran into another problem. Here's the result of the changed command:
>
> $ cd cdc/build/win32-arm-ppc03
>
> $ make JDK_HOME=/cygdrive/c/j2sdk1.4.2_16 J2ME_CLASSLIB=personal AWT_PEERSET=po
> cketpc
> ../share/rules.mk:556: ../../build/win32-arm-ppc03/./generated/empty.mk: No such
> file or directory
> ... mkdir ../../build/win32-arm-ppc03/./generated/javavm/runtime
> ... mkdir ../../build/win32-arm-ppc03/./generated/javavm/runtime/jit
> ... mkdir ../../build/win32-arm-ppc03/./generated/classes
> touch ../../build/win32-arm-ppc03/./generated/empty.mk
> MAKEFLAGS = AWT_PEERSET=pocketpc J2ME_CLASSLIB=personal JDK_HOME=/cygdrive/c/j2
> sdk1.4.2_16
> ...
> ... /home/OHI/cdc/build/win32-arm-ppc03/btclasses.zip
> Checking for phoneME Advanced classes to compile ...
> make: *** No rule to make target `../../build/win32-arm-ppc03/./personal_classes
> /sun/awt/pocketpc/PPCRobotHelper.class', needed by `../../build/win32-arm-ppc03/
> ./.libclasses.plist'. Stop.
>

I forgot you cannot build the Personal Profile build for PocketPC
(WinMobile/ARM) currently in the main trunk:

J2ME_CLASSLIB=personal AWT_PEERSET=pocketpc

Try this instead:

make JDK_HOME=/cygdrive/c/j2sdk1.4.2_16 J2ME_CLASSLIB=foundation

Does that work for you?

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23

sorry for the late response. out w/ the flu. but that worked! thx for both your patience and help. it's greatly appreciated!

sincerely

wrappingduke
Offline
Joined: 2008-01-23

Hello Hinkmond,

Unfortunately, the only directory or folder created when the phoneMe is checked out is "trunk". The tools folder is missing.

Here's the way I'm going about it:

From the Dos prompt, I change to the directory where svn is located, e.g. c:\cygwin\bin, to execute svn, i.e. checkout source.

I've been using this method the whole since I getting svn from Cygwin.

I have also tried downloading from svn from site you suggested where I posted the question about checking out files:
http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91
svn-1.4.5-setup.exe

but I have to follow the method above, since I can't start the client w/ this version. Maybe I'm going about starting the client wrong? If I simply click on the svn, the client will not start. Is there another way to start the client when I download subversion from tigris?

your help is appreciated.

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hello Hinkmond,
>
> Unfortunately, the only directory or folder created when the phoneMe is checked out is "trunk". The tools folder is missing.
>
> Here's the way I'm going about it:
>
> From the Dos prompt, I change to the directory where svn is located, e.g. c:\cygwin\bin, to execute svn, i.e. checkout source.
>
> I've been using this method the whole since I getting svn from Cygwin.
>
> I have also tried downloading from svn from site you suggested where I posted the question about checking out files:
> http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91
> svn-1.4.5-setup.exe
>
> but I have to follow the method above, since I can't start the client w/ this version. Maybe I'm going about starting the client wrong? If I simply click on the svn, the client will not start. Is there another way to start the client when I download subversion from tigris?

With cygwin, you do everything on a shell command line instead of
clicking on icons. It's the UNIX way of doing things, not the Windows way.

So to use subversion from the tigris site, first double-click on the
cygwin icon (to start a cygwin terminal shell window).

Inside that shell window, you type command lines.

For example, type this command line in that cygwin window:

svn ls https://phoneme.dev.java.net/svn/phoneme/components

Does that work for you OK? If it does, it means you are using the SVN
client correctly and then can checkout the cdc trunk and tools trunk
directories.

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23

Hinkmond,

Unfortunately, that did not work either. Here's the result of ls command:

$ svn ls https://phoneme.dev.java.net/svn/phoneme/components
Error validating server certificate for 'https://phoneme.dev.java.net:443':
- The certificate is not issued by a trusted authority. Use the
fingerprint to validate the certificate manually!
Certificate information:
- Hostname: *.dev.java.net
- Valid: from Thu, 09 Aug 2007 06:44:32 GMT until Sat, 09 Aug 2008 06:44:32 GMT

- Issuer: Equifax Secure Inc., US
- Fingerprint: e9:12:f6:a0:36:fe:7d:b0:07:dd:8b:d6:c3:b6:29:ff:ba:02:03:46
(R)eject, accept (t)emporarily or accept (p)ermanently? p
Authentication realm: CollabNet Subversion Re
pository
Password for 'OHI':
Authentication realm: CollabNet Subversion Re
pository
Username: wrappingduke
Password for 'wrappingduke': *******
abstractions/
cdc/
cldc/
javacall/
jpeg/
jsr120/
jsr135/
jsr172/
jsr177/
jsr211/
jsr239/
jump/
kdp/
midp/
midp_abb/
pcsl/
pisces/
preverifier/
restricted_crypto/
tools/

If "svn co" is ran afterwards, then only the trunk folder is created in the home folder of cygwin directory (using tigris subversion). The tools folder is missing. In a previous reply, you wrote that the Step #5 was incorrect and that I needed to change to the parent directory of trunk of cdc. I'm not sure that I follow.

If subversion from cygwin installation, the result is the same, only the trunk folder is created, but in the location where svn exists (i.e. bin folder).

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hinkmond,
>
> Unfortunately, that did not work either. Here's the result of ls command:
>
> $ svn ls https://phoneme.dev.java.net/svn/phoneme/components
> ...
> abstractions/
> cdc/
> cldc/
> javacall/
> jpeg/
> jsr120/
> jsr135/
> jsr172/
> jsr177/
> jsr211/
> jsr239/
> jump/
> kdp/
> midp/
> midp_abb/
> pcsl/
> pisces/
> preverifier/
> restricted_crypto/
> tools/
>

The above is actually correct! Looks good.

> If "svn co" is ran afterwards, then only the trunk folder is created in the home folder of cygwin directory (using tigris subversion). The tools folder is missing. In a previous reply, you wrote that the Step #5 was incorrect and that I needed to change to the parent directory of trunk of cdc. I'm not sure that I follow.
>

Now that we know svn works for you in a cygwin window, here is the
corrected step (do this in a cygwin shell window on a command line):

cd
svn co https://phoneme.dev.java.net/svn/phoneme/components/cdc/trunk cdc
svn co https://phoneme.dev.java.net/svn/phoneme/components/tools/trunk tools
cd cdc/build/win32-arm-wm5

make \
J2ME_CLASSLIB=foundation \
CVM_JIT=true \
CVM_DEBUG=true \
CVM_PRELOAD_LIB=true

Does that work OK?

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23

Hello Hinkmond,

After executing the make cmd, I could find the jre in the bin or lib folders. However, an error occurred due to missing javac(???) albeit it's in the same directory (bin of j2sdk1.4.2_16) as java.exe.

Here's the result of the make I used to build the jre for ppc03:

$ cd cdc/build/win32-arm-ppc03

$ make CVM_JAVABIN=/cygdrive/c/j2sdk1.4.2_16/bin J2ME_CLASSLIB=personal AWT_PEE
RSET=pocketpc
MAKEFLAGS = AWT_PEERSET=pocketpc J2ME_CLASSLIB=personal CVM_JAVABIN=/cygdrive/c
/j2sdk1.4.2_16/bin
CVM_HOST = i686-cygwin-win32
CVM_TARGET = win32-arm-ppc03
SHELL = bash -e
HOST_CC = /usr/bin/cc
HOST_CCC = /usr/bin/g++
ZIP = /usr/bin/zip
FLEX = /usr/bin/flex
BISON = /usr/bin/bison
CVM_JAVA = /cygdrive/c/WINDOWS/system32/java
CVM_JAVAC = which: no javac in (/cygdrive/c/Program Files/Microsoft eMbedded C+
+ 4.0/EVC/wce420/bin:/cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/Common
/EVC/Bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system3
2:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem)
CVM_JAVAH = which: no javah in (/cygdrive/c/Program Files/Microsoft eMbedded C+
+ 4.0/EVC/wce420/bin:/cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/Common
/EVC/Bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system3
2:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem)
CVM_JAR = which: no jar in (/cygdrive/c/Program Files/Microsoft eMbedded C++
4.0/EVC/wce420/bin:/cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/Common/E
VC/Bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system32:
/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem)
TARGET_CC = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/CLARM.EXE
TARGET_CCC = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/CLARM.EXE
TARGET_AS = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/ARMASM.EXE
TARGET_LD = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/LINK.EXE
TARGET_AR = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/wce420/
bin/LINK.EXE
TARGET_RANLIB = /usr/bin/ranlib
LINKFLAGS = /incremental:no /nologo /map /subsystem:windowsce,3.00 /MACHINE:AR
M
LINKLIBS = -lpthread -ldl
ASM_FLAGS = -CPU StrongARM1 -32 -NOTerse -WIdth 132 -list .lst .i
CCCFLAGS =
CCFLAGS_SPEED = /nologo /c /W2 /MC -D__STDC__ /O2 /Ob2 /Ot -DNDEBUG
CCFLAGS_SPACE = /nologo /c /W2 /MC -D__STDC__ /O1 /Ob1 -DNDEBUG
CCFLAGS_LOOP = /nologo /c /W2 /MC -D__STDC__ /O2 /Ob2 /Ot -DNDEBUG
CCFLAGS_FDLIB = /nologo /c /W2 /MC -D__STDC__ -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_JIT
_REGISTER_LOCALS -DCVM_TIMESTAMPING -DJ2ME_CLASSLIB=personal -DTARGET_CPU_FAMILY
=arm -DCVM_JIT_COPY_CCMCODE_TO_CODECACHE -DCVM_DLL -DHAVE_64_BIT_IO -DNDEBUG -DA
RM -D_ARM -D__RVCT__ -DWINCE -DWIN32_LEAN_AND_MEAN -DWIN32_PLATFORM_PSPC -DUNICO
DE -D_UNICODE -DUNDER_CE=300 -D_WIN32_WCE=300 -DPOCKETPC -Dpocketpc
host uname = CYGWIN_NT-5.1 OHBC1-CYBER04 1.5.25(0.156/4/2) 2007-12-14 19:
21 i686 Cygwin
TARGET_CC version = Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 f
or ARM
HOST_CC version = 3.4.4 i686-pc-cygwin
CVM_JAVA version = java version 1.6.0_01
TOOLS_DIR = /home/OHI/tools
SDK_DIR = C:/Program Files/Windows CE Tools
VC_PATH = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0
PLATFORM_SDK_DIR = C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003
PLATFORM_TOOLS_PATH = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/EVC/w
ce420/bin
COMMON_TOOLS_PATH = /cygdrive/c/Program Files/Microsoft eMbedded C++ 4.0/Commo
n/EVC/Bin
INCLUDE = C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/In
clude/Armv4;C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Mfc/include;
C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Atl/include
LIB = C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Li
b/Armv4;C:/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Mfc/lib/armv4;C:
/Program Files/Windows CE Tools/wce420/POCKET PC 2003/Atl/lib/armv4
AWT_LIB_LIBS = ../../build/win32-arm-ppc03/./bin/wcecompat.lib aygshell.li
b
AWT_IMPLEMENTATION = peer_based
AWT_PEERSET = pocketpc
updating ../../build/win32-arm-ppc03/./generated/build_defs.mk ...
Checking for build-time classes to compile ...
... building CodeTransformer
bash: javac: command not found
make: *** [/home/OHI/tools/output/Configurator.jar] Error 127

cjplummer
Offline
Joined: 2006-10-16

Use the following. Note there is no "bin" at the end.

JDK_HOME=/cygdrive/c/j2sdk1.4.2_16

Chris

wrappingduke
Offline
Joined: 2008-01-23

Hello,

same result w/ "bin" removed from cmd.

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hello,
>
> same result w/ "bin" removed from cmd.
>
>

I think you also have to add $JDK_HOME/bin to your PATH.

Like this:

JDK_HOME=/cygdrive/c/j2sdk1.4.2_16
echo $JDK_HOME
export PATH=$PATH:$JDK_HOME/bin
which javac

You should see it respond:

/cygdrive/c/Java/j2sdk1.4.2_16/bin/javac

If it responds the above, try your same make command again in the same
window as above.

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23

I'm not sure I follow. how should the make md go?

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> I'm not sure I follow. how should the make md go?
>
>

As Chris pointed out, don't set CVM_JAVABIN:

make J2ME_CLASSLIB=personal AWT_PEERSET=pocketpc

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23

Hinkmond,

I don't think he wrote I had to replace but I had to "add" JDK_HOME to my path. Nevertheless, I will give what you both suggested a shot.

I appreciate the help from both of you guys.

Message was edited by: wrappingduke

wrappingduke
Offline
Joined: 2008-01-23

Gary,

Sorry, actually it's Dos window via batch file (cygwin.bat).

Gary Adams - Client Systems Group

MIDP_DIR also defaults to $COMPONENTS_DIR/midp, now.

\gra

Hinkmond Wong wrote:
> Dean Long wrote:
>> Hinkmond, isn't that Twiki page out-of-date? We simplified
>> the build so that fewer variables need to be set.
>
> I think you're right, but it looks like it is only off by 1 extra line
> (PCSL_DIR=...). I'm cc'ing Terrence Barr and Dan Sears who have been
> kind enough to create and update that TWiki page.
>
> Terrence, can you update the make line to be:
>
> http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedGSGWinMob...
>
>
> make \
> J2ME_CLASSLIB=foundation \
> CVM_JIT=true \
> CVM_DEBUG=true \
> CVM_PRELOAD_LIB=true \
> USE_JPEG=true \
> JPEG_DIR=$TOP_DIR/jpeg \
> USE_MIDP=true \
> MIDP_DIR=$TOP_DIR/midp
>
>
> (No need for
>
> PCSL_DIR=$TOP_DIR/pcsl \
>
> )
>
>
> Thanks,
>
> Hinkmond
>
>
>> And I believe VS8_DIR should be using DOS syntax:
>>
>> C:/Program Files/Microsoft Visual Studio 8
>>
>> wrappingduke, if you want to override the SDK on the
>> command-line, try something like:
>>
>> % make VS8_DIR="C:/Program Files/Microsoft Visual Studio 8"
>>
>> with DOS syntax but /'s instead of \'s.
>>
>> Hinkmond Wong wrote:
>>> phonemeadvanced@mobileandembedded.org wrote:
>>>> Hi,
>>>>
>>>> Yes, I would like to think that I am. I'm confused on the build dir.
>>>> Is this the file location of the pocket pc and if so, how should I
>>>> specify the path in the shell for spaces and slashes.
>>>>
>>>>
>>>
>>> In the middle of the page of instructions at our Wiki site:
>>>
>>> See:
>>> http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedGSGWinMob...
>>>
>>>
>>>
>>> It says this:
>>>
>>> cd cdc/build/win32-arm-wm5
>>>
>>>
>>> Do you have problems with that instruction line on your Windows PC in
>>> a cygwin shell as the instructions leading up to that line get you to
>>> that point?
>>>
>>>
>>>
>>> Hinkmond
>>>
>>>
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
>>> For additional commands, e-mail: advanced-help@phoneme.dev.java.net
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
>> For additional commands, e-mail: advanced-help@phoneme.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
> For additional commands, e-mail: advanced-help@phoneme.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23

Hello,

i apologize for the late response, but I had to try what Hinkmond suggested before responding only to realize that the page maybe out of date.

Actually, I was initially using the instructions from the following link:

http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedPlatforms...

I'm having trouble w/ the cd build/ command:
I have Pocket PC 2003 on a win xp machine.

The error rec'd is "no such file or directory"

I tried both "cd build/" as well as "cd cdc build/", but to no avail.

any help is appreciated.

Gary Adams - Client Systems Group

Are you using a DOS Command window or a cygwin shell?

phonemeadvanced@mobileandembedded.org wrote:
> Hello,
>
> i apologize for the late response, but I had to try what Hinkmond suggested before responding only to realize that the page maybe out of date.
>
> Actually, I was initially using the instructions from the following link:
>
> http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedPlatforms...
>
> I'm having trouble w/ the cd build/ command:
> I have Pocket PC 2003 on a win xp machine.
>
> The error rec'd is "no such file or directory"
>
> I tried both "cd build/" as well as "cd cdc build/", but to no avail.
>
> any help is appreciated.
> [Message sent by forum member 'wrappingduke' (wrappingduke)]
>
> http://forums.java.net/jive/thread.jspa?messageID=255849
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
> For additional commands, e-mail: advanced-help@phoneme.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23

Hello,

cygwin shell

Gary Adams - Client Systems Group

Can you share more detail of your installation?

ls

cd cdc
ls

cd build
ls

cd win32-arm-wm5
make

Where does the sequence fail for you?

phonemeadvanced@mobileandembedded.org wrote:
> Hello,
>
> cygwin shell
> [Message sent by forum member 'wrappingduke' (wrappingduke)]
>
> http://forums.java.net/jive/thread.jspa?messageID=255852
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
> For additional commands, e-mail: advanced-help@phoneme.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23

The error occurs at item 7 of Build CDC/PP per
http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedPlatforms...

cd build/
make CVM_JAVABIN=/cygdrive/c/j2sdk1.4.2/bin J2ME_CLASSLIB=personal AWT_PEERSET=pocketpc

where build-dir is win32-arm-pocketpc for Pocket PC 2002, and win32-arm-ppc03 for Pocket PC 2003. The default SDK location can be overriden by adding SDK_DIR=, and the default compiler location by adding VC_PATH=

It appears that I'm running the shell. I executed a Dos command "cmd /x:on" and the window switched to a Dos window.

When the cd build command is ran, "no such file or directory" is returned

When the make command is executed, I rec'v error "No targets specified and no makefile found. Stop."

your help is appreciated

Message was edited by: wrappingduke

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> The error occurs at item 7 of Build CDC/PP per
> http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedPlatforms...
>
> where it says to execute cd build in the cygwin shell (I think I'm running the shell, if I followed the instructions on how to build correctly - Sorry about that).
>
> It appears that I'm running the shell. I executed a Dos command "cmd /x:on" and the window switched to a Dos window.
>

I think that's where the problem is. When the instructions in step #6
say to start cygwin shell, it means you should double-click the
installed icon for "Cygwin", which will bring up a window with a command
line. That is your cygwin shell. You should type the commands for step
#7 there in that window. Do not execute a DOS command "cmd /x:on".

Instead you should follow step #7:

---
cd build/<*build-dir*>
make CVM_JAVABIN=/cygdrive/c/j2sdk1.4.2/bin J2ME_CLASSLIB=personal AWT_PEERSET=pocketpc

where *build-dir* is *win32-arm-pocketpc* for Pocket PC 2002, and *win32-arm-ppc03* for Pocket PC 2003.
The default SDK location can be overriden by adding SDK_DIR=<*windows path*>, and the default compiler
---

So, for example if you want to build for Pocket PC 2003, use win32-arm-ppc03 for build-dir.

Ex.

cd build/win32-arm-ppc03
make CVM_JAVABIN=/cygdrive/c/j2sdk1.4.2/bin J2ME_CLASSLIB=personal AWT_PEERSET=pocketpc

Hinkmond
location by adding VC_PATH=<*cygwin path*>.

> When the cd build command is ran, "no such file or directory" is returned
>
> When the make command is executed, I rec'v error "No targets specified and no makefile found. Stop."
>

[att1.html]

wrappingduke
Offline
Joined: 2008-01-23

Hi Hinkmond,

I executed the cmd /x:on to determine if I was in a Dos window or not, since I was not sure when the question was asked.

I've been using the cygwin shell to execute cd build/win32-arm-ppc03, per Step #7, resulting in the error msg "no such file or directory".

That's why I originally asked if the actual directory path has to be specified. This where I'm stuck.

your help is appreciated.

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hi Hinkmond,
>
> I executed the cmd /x:on to determine if I was in a Dos window or not, since I was not sure when the question was asked.
>
> I've been using the cygwin shell to execute cd build/win32-arm-ppc03, per Step #7, resulting in the error msg "no such file or directory".
>
> That's why I originally asked if the actual directory path has to be specified. This where I'm stuck.

OK. It just means you are not in the current top-level directory before
you do the "cd build/win32-arm-ppc03" command.

What directory are you in when you try the cd command?

Type:

pwd

Then, type:

ls

Copy and paste the output of both commands above and send it back to us.

The directory you should be in to allow the "cd build/win32-arm-ppc03"
command to work is the trunk directory from step #5.

So, if you did this in step #5:
svn co https://phoneme.dev.java.net/svn/phoneme/components/cdc/trunk/

You should see a directory named:

trunk

If you didn't try this already, first cd to trunk then cd to the build directory.

Ex.

cd trunk
cd build/win32-arm-ppc03

Then type the make command.

Is that better for you?

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23

Hinkmond,

That did it! Forgive me. It's been some time since I worked in a Unix enviro.

However, I'm now receiving the following error message from the make command:

../share/defs.mk:2225: *** TOOLS_DIR must point to the shared tools directory: /
cygdrive/c/cygwin/bin/tools. Stop

here's the cmd used:
$ make CVM_JAVABIN=/cygdrive/c/j2sdk.1.4.2_16/bin J2ME_CLASSLIB=personal AWT_PEERSET=pocketpc

your help is appreciated.

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hinkmond,
>
> That did it! Forgive me. It's been some time since I worked in a Unix enviro.
>

No problem.

> However, I'm now receiving the following error message from the make command:
>
> ../share/defs.mk:2225: *** TOOLS_DIR must point to the shared tools directory: /
> cygdrive/c/cygwin/bin/tools. Stop
>
> here's the cmd used:
> $ make CVM_JAVABIN=/cygdrive/c/j2sdk.1.4.2_16/bin J2ME_CLASSLIB=personal AWT_PEERSET=pocketpc
>
>

I think we have an error in our Wiki page step #5 now that you mention it:

See:

http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedPlatforms...
(Skip to step #5)

To fix the problem:

Go to the directory where you did the "svn co" command to checkout the
"trunk" component for cdc.

cd

And do this command:

svn co https://phoneme.dev.java.net/svn/phoneme/components/tools/trunk/
tools

You should then see two components after you have done the above command correctly:

ls

tools/ trunk/

If it looks like the above, you can just repeat step #6 and #7 and it should work this time:

6. Start a cygwin shell.

7. cd trunk
cd build/win32-arm-ppc03

make CVM_JAVABIN=/cygdrive/c/j2sdk.1.4.2_16/bin J2ME_CLASSLIB=personal AWT_PEERSET=pocketpc

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23

Ok, Hinkmond. I will give this shot. Thanks so much for your help.

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hello,
>
> Forgive me for this question, but I'm having difficulty running the make cmd from win xp machine.
>
> I'm little confused on how the path should be specified for the build directory, i.e. cd build/. Or, if I override the SDK directory, how it should be specified from in the cygwin shell.
>
>

Are you following the Windows Mobile build instructions at our Wiki site?

See:

http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedGSGWinMobile

There are explicit instructions there which build dir to cd to and lots
more details you probably don't have yet.

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

wrappingduke
Offline
Joined: 2008-01-23

Hi,

Yes, I would like to think that I am. I'm confused on the build dir. Is this the file location of the pocket pc and if so, how should I specify the path in the shell for spaces and slashes.

your help is appreciated

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hi,
>
> Yes, I would like to think that I am. I'm confused on the build dir. Is this the file location of the pocket pc and if so, how should I specify the path in the shell for spaces and slashes.
>
>

In the middle of the page of instructions at our Wiki site:

See:
http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedGSGWinMob...

It says this:

cd cdc/build/win32-arm-wm5

Do you have problems with that instruction line on your Windows PC in a cygwin shell as the instructions leading up to that line get you to that point?

Hinkmond

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

Dean Long

Hinkmond, isn't that Twiki page out-of-date? We simplified
the build so that fewer variables need to be set.
And I believe VS8_DIR should be using DOS syntax:

C:/Program Files/Microsoft Visual Studio 8

wrappingduke, if you want to override the SDK on the
command-line, try something like:

% make VS8_DIR="C:/Program Files/Microsoft Visual Studio 8"

with DOS syntax but /'s instead of \'s.

Hinkmond Wong wrote:
> phonemeadvanced@mobileandembedded.org wrote:
>> Hi,
>>
>> Yes, I would like to think that I am. I'm confused on the build dir.
>> Is this the file location of the pocket pc and if so, how should I
>> specify the path in the shell for spaces and slashes.
>>
>>
>
> In the middle of the page of instructions at our Wiki site:
>
> See:
> http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedGSGWinMob...
>
>
>
> It says this:
>
> cd cdc/build/win32-arm-wm5
>
>
> Do you have problems with that instruction line on your Windows PC in a
> cygwin shell as the instructions leading up to that line get you to that
> point?
>
>
>
> Hinkmond
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
> For additional commands, e-mail: advanced-help@phoneme.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

Hinkmond Wong

Dean Long wrote:
> Hinkmond, isn't that Twiki page out-of-date? We simplified
> the build so that fewer variables need to be set.

I think you're right, but it looks like it is only off by 1 extra line
(PCSL_DIR=...). I'm cc'ing Terrence Barr and Dan Sears who have been
kind enough to create and update that TWiki page.

Terrence, can you update the make line to be:

http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedGSGWinMob...

make \
J2ME_CLASSLIB=foundation \
CVM_JIT=true \
CVM_DEBUG=true \
CVM_PRELOAD_LIB=true \
USE_JPEG=true \
JPEG_DIR=$TOP_DIR/jpeg \
USE_MIDP=true \
MIDP_DIR=$TOP_DIR/midp

(No need for

PCSL_DIR=$TOP_DIR/pcsl \

)

Thanks,

Hinkmond

> And I believe VS8_DIR should be using DOS syntax:
>
> C:/Program Files/Microsoft Visual Studio 8
>
> wrappingduke, if you want to override the SDK on the
> command-line, try something like:
>
> % make VS8_DIR="C:/Program Files/Microsoft Visual Studio 8"
>
> with DOS syntax but /'s instead of \'s.
>
> Hinkmond Wong wrote:
>> phonemeadvanced@mobileandembedded.org wrote:
>>> Hi,
>>>
>>> Yes, I would like to think that I am. I'm confused on the build dir.
>>> Is this the file location of the pocket pc and if so, how should I
>>> specify the path in the shell for spaces and slashes.
>>>
>>>
>>
>> In the middle of the page of instructions at our Wiki site:
>>
>> See:
>> http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedGSGWinMob...
>>
>>
>>
>> It says this:
>>
>> cd cdc/build/win32-arm-wm5
>>
>>
>> Do you have problems with that instruction line on your Windows PC in
>> a cygwin shell as the instructions leading up to that line get you to
>> that point?
>>
>>
>>
>> Hinkmond
>>
>>
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
>> For additional commands, e-mail: advanced-help@phoneme.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
> For additional commands, e-mail: advanced-help@phoneme.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net

Hinkmond Wong

Hinkmond Wong wrote:
> Dean Long wrote:
>> Hinkmond, isn't that Twiki page out-of-date? We simplified
>> the build so that fewer variables need to be set.
>
> I think you're right, but it looks like it is only off by 1 extra line
> (PCSL_DIR=...). I'm cc'ing Terrence Barr and Dan Sears who have been
> kind enough to create and update that TWiki page.
>
> Terrence, can you update the make line to be:
>
> http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedGSGWinMob...

Forgot to also add that you can get rid of the win-setup.sh script
entirely and just use this make command now:

>
> make \
> J2ME_CLASSLIB=foundation \
> CVM_JIT=true \
> CVM_DEBUG=true \
> CVM_PRELOAD_LIB=true \
> USE_JPEG=true \
> JPEG_DIR=$TOP_DIR/jpeg \
> USE_MIDP=true \
> MIDP_DIR=$TOP_DIR/midp
>
>
> (No need for
>
> PCSL_DIR=$TOP_DIR/pcsl \
>
> )
>
>
> Thanks,
>
> Hinkmond
>
>
>> And I believe VS8_DIR should be using DOS syntax:
>>
>> C:/Program Files/Microsoft Visual Studio 8
>>
>> wrappingduke, if you want to override the SDK on the
>> command-line, try something like:
>>
>> % make VS8_DIR="C:/Program Files/Microsoft Visual Studio 8"
>>
>> with DOS syntax but /'s instead of \'s.
>>
>> Hinkmond Wong wrote:
>>> phonemeadvanced@mobileandembedded.org wrote:
>>>> Hi,
>>>>
>>>> Yes, I would like to think that I am. I'm confused on the build
>>>> dir. Is this the file location of the pocket pc and if so, how
>>>> should I specify the path in the shell for spaces and slashes.
>>>>
>>>>
>>>
>>> In the middle of the page of instructions at our Wiki site:
>>>
>>> See:
>>> http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedGSGWinMob...
>>>
>>>
>>>
>>> It says this:
>>>
>>> cd cdc/build/win32-arm-wm5
>>>
>>>
>>> Do you have problems with that instruction line on your Windows PC
>>> in a cygwin shell as the instructions leading up to that line get
>>> you to that point?
>>>
>>>
>>>
>>> Hinkmond
>>>
>>>
>>>
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
>>> For additional commands, e-mail: advanced-help@phoneme.dev.java.net
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
>> For additional commands, e-mail: advanced-help@phoneme.dev.java.net
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: advanced-unsubscribe@phoneme.dev.java.net
For additional commands, e-mail: advanced-help@phoneme.dev.java.net