Skip to main content

midp compile problem in win32

1 reply [Last post]
wewantjk
Offline
Joined: 2007-06-27

Hi,

I'm trying to compile phoneME feature MR2 on win32.
Java call / pcsl / cldc modules are ok. I had no prolbem in compiling those, but only midp complains like this:

-----------------------------------------------
E:/SMCL/PhoneMe_Src/May08_2007/midp/build/common/makefiles/cldc_vm.gmk:179: ***
target pattern contains no `%'. Stop.
make: Entering directory `E:/SMCL/PhoneMe_Src/May08_2007/midp/build/javacall'
make: Leaving directory `E:/SMCL/PhoneMe_Src/May08_2007/midp/build/javacall'
----------------------------------------------------

I thought it's somewhat related with windows path string, but since it was ok with other 3 modules I'm not sure.

My env. variables are like this:
@echo off
rem ======================================================
set MEHOME=E:/SMCL/PhoneMe_Src/May08_2007
set BUILD_OUTPUT_DIR=%MEHOME%/build_output
set JDK_DIR="C:/Program Files/Java/jdk1.6.0"
set CYG4ME=c:/cyg4me
set VC_BATCHFILE="%VS71COMNTOOLS%vsvars32.bat"
rem ======================================================

set JAVACALL_DIR=%MEHOME%/javacall
set JAVACALL_PROJECT_DIR=%MEHOME%/javacall-com
set JAVACALL_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/javacall
set JAVACALL_BUILD_DIR=%MEHOME%/javacall-com/configuration/phoneMEFeature/win32_x86

set PCSL_DIR=%MEHOME%/pcsl
set PCSL_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/pcsl
set PCSL_PLATFORM=javacall_i386_vc
set PCSL_BUILD_DIR=%PCSL_DIR%

set JVMWorkSpace=%MEHOME%/cldc
set JVMBuildSpace=%BUILD_OUTPUT_DIR%/cldc
set CLDC_BUILD_DIR=%JVMWorkSpace%/build/javacall_i386_vc
set CLDC_DIST_DIR=%BUILD_OUTPUT_DIR%/cldc/javacall_i386_vc/dist

set MIDP_OUTPUT_DIR==%BUILD_OUTPUT_DIR%/midp
set MIDP_BUILD_DIR=%MEHOME%/midp/build/javacall
set JAVACALL_PLATFORM=win32_i386_vc
set TOOLS_DIR=%MEHOME%/tools

set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem

echo ======================================
echo Setting Visual Studio Environment...
call %VC_BATCHFILE%
echo ======================================
echo PATH is now set to:
set PATH=%CYG4ME%/bin;%JDK_DIR%;%PATH%

echo %PATH%
echo ======================================
echo Environment set up. now run "build" at %MEHOME%

--------------------------------
and I run
make -C %MIDP_BUILD_DIR% USE_MULTIPLE_ISOLATES=true

then I got the error.

Please, share the knowledge you have if you have experienced similar problem and fixed it.

Thank you,
JK

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
strim
Offline
Joined: 2006-10-20

Hi Wewantjk,

Shortly looking at your ENV I was a bit surprised to see JDK 1.6 is used
there. As far as I know, javac 1.4.2 should be used, and there were known
problems with 1.5. May be it is not related to your prob, but please try with
1.4.2.

One more advice from my experience with win32 building is to avoid to
use win32 cmd.exe scripts. Building with cyg4me and bash scripts with
Linux-like paths and exports worked fine for me.

--
Regards,
Strim