Skip to main content

midp win32 build fail

7 replies [Last post]
timprepscius
Offline
Joined: 2008-11-01
Points: 0

Greetings!

I have win32 midp build failure.. I have read through many of the build failures in this forum trying to fix it; but no luck so far...

Everything builds, but when I get to MIDP and I get the following error:

Merging error: key 'SCREEN_TEXT_ORIENT' has no corresponding constant in
'com.sun.midp.chameleon.skins.SkinPropertiesIDs'

My variables look like so:
call "C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\bin\vcvars32.bat"

set CYG4ME=C:\tools\cyg4me
set MEHOME=C:/Source/phoneme_mr3/phoneme_feature
set BUILD_OUTPUT_DIR=C:/Source/phoneme_mr3/phoneme_feature/build_output
set CYG4ME=c:\tools\cyg4me
set JDK_DIR=C:/java/jdk1.6.0_03
set PCSL_PLATFORM=javacall_i386_vc
set JAVACALL_PLATFORM=win32_i386_vc

set PATH=%CYG4ME%;%PATH%
set PATH=%JDK_DIR%/bin;%PATH%

set COMPONENTS_DIR=%MEHOME%/components

set JAVACALL_DIR=%MEHOME%/javacall
set JAVACALL_PROJECT_DIR=%MEHOME%/javacall-com
set PROJECT_JAVACALL_DIR=%JAVACALL_PROJECT_DIR%
set JAVACALL_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/javacall
set PCSL_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/pcsl
set JVMWorkSpace=%MEHOME%/cldc
set JVMBuildSpace=%BUILD_OUTPUT_DIR%/cldc

set MIDP_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/midp
set CLDC_DIST_DIR=%BUILD_OUTPUT_DIR%/cldc/javacall_i386_vc/dist
set TOOLS_DIR=%MEHOME%/tools

set VERBOSE_BUILD=true
set USE_MULTIPLE_ISOLATES=true
set ENABLE_PCSL=true
set ENABLE_ISOLATES=true

set JAVACALL_BuildDir=%JAVACALL_PROJECT_DIR%/configuration/phoneMEFeature/win32_emul
set PCSL_BuildDir=%MEHOME%/pcsl
set CLDC_BuildDir=%JVMWorkSpace%/build/javacall_i386_vc
set MIDP_BuildDir=%MEHOME%/midp/build/javacall

rem SET USE_DEBUG=1
rem SET USE_JAVA_DEBUGGER=1
SET USE_DIRECTDRAW=true

------------------------------

My build batch looks like so:

make -C %JAVACALL_BuildDir% %1
make -C %PCSL_BuildDir% %1
make -C %CLDC_BuildDir% %1
make -C %MIDP_BuildDir% %1

Any help would be greatly appreciated!
I'm just taking random stabs in the dark at this point..

-tim

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
olga_milovskaya
Offline
Joined: 2006-10-18
Points: 0

Hi timprepscius,

Your error likes as your source is not complete. Can you check that the file /src/configuration/configuration_xml/share/chameleon/skin_constants.xml has tag
Name="SCREEN_TEXT_ORIENT"
Comment="The orientation of text. The value indicates
the directionality of various text on the display.
Valid values are Graphics.LEFT and Graphics.RIGHT.
A value of Graphics.RIGHT, for example, would indicate
text which reads from left to right.
NOTE: This property currently has no effect."/>
If it hasn't update source, please.

timprepscius
Offline
Joined: 2008-11-01
Points: 0

so I updated my source with:
svn co https://phoneme.dev.java.net/svn/phoneme/components/cldc/trunk cldc
svn co https://phoneme.dev.java.net/svn/phoneme/components/pcsl/trunk pcsl
svn co https://phoneme.dev.java.net/svn/phoneme/components/midp/trunk midp
svn co https://phoneme.dev.java.net/svn/phoneme/components/javacall/trunk javacall
svn co https://phoneme.dev.java.net/svn/phoneme/components/tools/trunk tools
svn co https://phoneme.dev.java.net/svn/phoneme/components/abstractions/trunk abstractions

and now midp still fails to build, but in a different way:

win32app_export.c
C:\Source\phoneme_mr3\phoneme_feature\midp\src\highlevelui\win32_application\reference\native\win32app_export.c(293) : warning C4101: 'pixel' : unreferenced local variable
C:\Source\phoneme_mr3\phoneme_feature\midp\src\highlevelui\win32_application\reference\native\win32app_export.c(538) : error C2065: 'KEYMAP_KEY_VIRT_KEYB' : undeclared identifier
C:\Source\phoneme_mr3\phoneme_feature\midp\src\highlevelui\win32_application\reference\native\win32app_export.c(703) : error C2051: case expression not constant
make: *** [C:/Source/phoneme_mr3/phoneme_feature/build_output/midp/obj/i386/win32app_export.o] Error 2
make: Leaving directory `C:/Source/phoneme_mr3/phoneme_feature/midp/build/win32'

...

sooo....

Any help?

timprepscius
Offline
Joined: 2008-11-01
Points: 0

is there a tar ball some where which is known to completely compile on win32?

timprepscius
Offline
Joined: 2008-11-01
Points: 0

One extra bit of information:

I'm trying to build phoneme_mr3

timprepscius
Offline
Joined: 2008-11-01
Points: 0

Anybody?

timprepscius
Offline
Joined: 2008-11-01
Points: 0

?

leonidr
Offline
Joined: 2006-10-27
Points: 0