Skip to main content

libpthread.so.0 File format not recognized error happens when port phoneME

No replies
dsdsdds
Offline
Joined: 2009-07-20
Points: 0

Hi,

I am porting PhoneME Feature m3 to ARM. I got the following error:

... converting AMS images to raw format
Overwrite raw image: /home/ds/PMF3/outputfb/midp/appdb/_ch_disabled.raw
Overwrite raw image: /home/ds/PMF3/outputfb/midp/appdb/_ch_fg_requested.raw
Overwrite raw image: /home/ds/PMF3/outputfb/midp/appdb/_ch_hilight_bg.raw
Overwrite raw image: /home/ds/PMF3/outputfb/midp/appdb/_ch_single.raw
Overwrite raw image: /home/ds/PMF3/outputfb/midp/appdb/_ch_suite.raw
Overwrite raw image: /home/ds/PMF3/outputfb/midp/appdb/_single8.raw
Overwrite raw image: /home/ds/PMF3/outputfb/midp/appdb/_suite8.raw
Overwrite raw image: /home/ds/PMF3/outputfb/midp/appdb/trustedmidlet_icon.raw
Overwrite raw image: /home/ds/PMF3/outputfb/midp/appdb/splash_screen_176x210.raw
Overwrite raw image: /home/ds/PMF3/outputfb/midp/appdb/splash_screen_210x176.raw
exporting parameter values to /home/ds/PMF3/outputfb/midp/Settings.gmk ...
created /home/ds/PMF3/outputfb/midp/Settings.gmk
... linking /home/ds/PMF3/outputfb/midp/bin/arm/runMidlet_g
/lib/libpthread.so.0: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make[1]: *** [/home/ds/PMF3/outputfb/midp/bin/arm/runMidlet_g] Error 1
make[1]:Leaving directory `/home/ds/PMF3/midp/build/linux_fb_gcc'
make: *** [midp] Error 2

This is the Makefile:

export ME_ROOT=/home/ds/PMF3
export COMPONENTS_DIR=$(ME_ROOT)
export Scripts=`pwd`
export Output=$(ME_ROOT)/outputfb
export Log=$(ME_ROOT)/log.txt
export JDK_DIR=/usr/lib/jvm/j2sdk1.4.2_18
export GNU_TOOLS_DIR=/opt/armgcc/armroot/usr/
export DIRECTFB_INSTALL_DIR=/opt/armgcc/rootfs/usr/
export USE_DEBUG_ROMGEN=true
export USE_DEBUG_ROMGEN_SYMBOLS=true

all : dump pcsl1s pcsl2s cldc midp
dump :
@echo "---------start build phoneME feature--------------------"

pcsl1s ::
@echo "---------build pcsl1s-----------------------------------"
make -C $(ME_ROOT)/pcsl \
PCSL_PLATFORM=linux_i386_gcc \
PCSL_OUTPUT_DIR=$(Output)/pcsl \
NETWORK_MODULE=bsd/generic \
TOOLS_DIR=$(ME_ROOT)/tools \
TOOLS_OUTPUT_DIR=$(Output)/tools
pcsl2s ::
@echo "---------build pcsl2s-----------------------------------"
make -C $(ME_ROOT)/pcsl \
PCSL_PLATFORM=linux_arm_gcc \
PCSL_OUTPUT_DIR=$(Output)/pcsl \
NETWORK_MODULE=bsd/generic \
TOOLS_DIR=$(ME_ROOT)/tools \
TOOLS_OUTPUT_DIR=$(Output)/tools

cldc ::
@echo "---------build cldc-----------------------------------"
make -C $(ME_ROOT)/cldc/build/linux_arm \
JDK_DIR=$(JDK_DIR) \
ENABLE_PCSL=true \
PCSL_OUTPUT_DIR=$(Output)/pcsl \
JVMWorkSpace=$(ME_ROOT)/cldc \
JVMBuildSpace=$(Output)/cldc \
TOOLS_DIR=$(ME_ROOT)/tools \
TOOLS_OUTPUT_DIR=$(Output)/tools

midp ::
@echo "---------midp----------------------------------------"
make -C $(ME_ROOT)/midp/build/linux_fb_gcc \
GNU_TOOLS_DIR=$(GNU_TOOLS_DIR) \
JDK_DIR=$(JDK_DIR) \
PCSL_OUTPUT_DIR=$(Output)/pcsl \
CLDC_DIST_DIR=$(Output)/cldc/linux_arm/dist \
TOOLS_DIR=$(ME_ROOT)/tools \
TOOLS_OUTPUT_DIR=$(Output)/tools \
MIDP_OUTPUT_DIR=$(Output)/midp \
USE_DEBUG=true \
CPU=arm

clean: jclean pclean cclean mclean

jclean :
rm -rdf $(Output)/javacall
pclean :
rm -rdf $(Output)/pcsl1s
rm -rdf $(Output)/pcsl2s
cclean :
rm -rdf $(Output)/cldc
mclean :
rm -rdf $(Output)/midp

How to solve this problem?