Skip to main content

build midp for wince and arm using evc error

2 replies [Last post]
geelpheels
Offline
Joined: 2006-05-05

Hi! All!
When I build midp for wince I found another problem.

In vc-jtwi.gmk file:
# the VM library
ifeq ($(TARGET_VM), cldc_vm)
LIBS += $(CLDC_DIST_DIR)/lib/cldc_vm$(g)$(r)$(LIB_SUFFIX)
MIDP_DEPS += $(CLDC_DIST_DIR)/lib/cldc_vm$(g)$(r)$(LIB_SUFFIX)
endif

ifeq ($(TARGET_VM), cdc_vm)
ifneq ($(CVM_PRELOAD_LIB), true)
LIBS += $(CDC_DIST_DIR)/bin/cvmi.lib
MIDP_DEPS += $(CDC_DIST_DIR)/bin/cvmi.lib endif
endif

There is in evc-jtwi.gmk accordingly:
LIBS += libpcsl_file.lib libpcsl_memory.lib libpcsl_print.lib \
libpcsl_string.lib libpcsl_network.lib cvmi.lib \
Ws2.lib gx.lib aygshell.lib

The problem is we can see in vc-jtwi.gmk file, cvmi.lib is a CDC feature not a CLDC feature. But in evc-jtwi.gmk if I want to build cldc version not a cdc version it will also include cvmi.lib, it will cause error.

... linking D:/phoneme_feature_mr3/phoneme_feature_wince_arm_evc/build_output/m
idp/bin/arm/runMidlet.exe
LINK : fatal error LNK1181: cannot open input file 'cvmi.lib'
make: *** [D:/phoneme_feature_mr3/phoneme_feature_wince_arm_evc/build_output/mid
p/bin/arm/runMidlet.exe] Error 157

How to fix the problem??

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
george_ustc
Offline
Joined: 2008-08-26

I got same problem. Did you try remove it from makefile?

geelpheels
Offline
Joined: 2006-05-05

OK.
Now the problem is solved. Just replace cvmi.lib with cldc_vm.lib/cldc_hi.lib.
Midp without some jsrs compilation succeeded.