Skip to main content

phoneMe MR1 personal compile error

25 replies [Last post]
cmsswei
Offline
Joined: 2007-09-27

HI there,

I'm using phoneME MR1 to build up a CVM with PP, my host OS is red hat 4.3(enterprise, i386), gcc version is 3.4.6, cross-compiler is downloaded from the following web address (ftp://ftp.arm.linux.org.uk/pub/linux/arm/people/xscale/mainstone/12-29-2....) published on CDC_build_system.pdf, jdk version is 1.4.2, qt version is 3.3.5. The target platform is ARM-based Linux. It always reports error when i compiling it with the following command:
************************************************************
make CVM_TARGET_TOOLS_PREFIX=arm-linux- CVM_JAVABIN=$JAVA_HOME/bin J2ME_CLASSLIB=personal QT_TARGET_DIR=/usr/local/share/qt-x11-free-3.3.5 X11_LIB_DIR=/usr/X11R6/lib
************************************************************
the output is shown as following:
************************************************************
../share/rules.mk:357: ../../build/linux-arm-bulverde/./generated/empty.mk: No such file or directory
... mkdir ../../build/linux-arm-bulverde/./generated/javavm/runtime
... mkdir ../../build/linux-arm-bulverde/./generated/javavm/runtime/jit
... mkdir ../../build/linux-arm-bulverde/./generated/classes
touch ../../build/linux-arm-bulverde/./generated/empty.mk
CVM_HOST = i686-redhat-linux
CVM_TARGET = linux-arm-bulverde
SHELL = sh -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 = /usr/local/share/j2sdk1.4.2_12/bin/java
CVM_JAVAC = /usr/local/share/j2sdk1.4.2_12/bin/javac
CVM_JAVAH = /usr/local/share/j2sdk1.4.2_12/bin/javah
CVM_JAR = /usr/local/share/j2sdk1.4.2_12/bin/jar
TARGET_CC = /micro/tools/arm-linux/bin/arm-linux-gcc
TARGET_CCC = /micro/tools/arm-linux/bin/arm-linux-g++
TARGET_AS = /micro/tools/arm-linux/bin/arm-linux-gcc
TARGET_LD = /micro/tools/arm-linux/bin/arm-linux-gcc
TARGET_AR = /micro/tools/arm-linux/bin/arm-linux-ar
TARGET_RANLIB = /micro/tools/arm-linux/bin/arm-linux-ranlib
LINKFLAGS = -g -Wl,-export-dynamic
LINKLIBS = -lpthread -ldl
ASM_FLAGS = -c -fno-common -Wa,-mcpu=iwmmxt -traditional
CCCFLAGS = -fno-rtti
CCFLAGS_SPEED = -c -fno-common -Wall -fno-strict-aliasing -mcpu=xscale -Wa,-mcpu=iwmmxt -O4
CCFLAGS_SPACE = -c -fno-common -Wall -fno-strict-aliasing -mcpu=xscale -Wa,-mcpu=iwmmxt -O2
CCFLAGS_LOOP = -c -fno-common -Wall -fno-strict-aliasing -mcpu=xscale -Wa,-mcpu=iwmmxt -O4
CCFLAGS_FDLIB = -c -fno-common -Wall -fno-strict-aliasing -mcpu=xscale -Wa,-mcpu=iwmmxt -O4
JAVAC_OPTIONS = -g:none -J-Xms32m -J-Xmx128m -encoding iso8859-1 -source 1.4 -target 1.4
CVM_DEFINES = -DCVM_ARM_HAS_WMMX -DIAI_CACHEDCONSTANT -DIAI_CACHEDCONSTANT_INLINING -DIAI_ARRAY_INIT_BOUNDS_CHECK_ELIMINATION -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=personal -DTARGET_CPU_FAMILY=arm -DCVM_JIT_COPY_CCMCODE_TO_CODECACHE -D_GNU_SOURCE -DCVM_IAI_OPT_ALL -DCVM_JIT_CODE_SCHED -DQT_THREAD_SUPPORT -Dqt
AWT_LIB_LIBS = -L/usr/local/share/qt-x11-free-3.3.5/lib -lqt-mt
AWT_IMPLEMENTATION = peer_based
AWT_PEERSET = qt
QT_TARGET_DIR = /usr/local/share/qt-x11-free-3.3.5
QT_TARGET_INCLUDE_DIR = /usr/local/share/qt-x11-free-3.3.5/include
QT_TARGET_LIB_DIR = /usr/local/share/qt-x11-free-3.3.5/lib
MOC = /usr/local/share/qt-x11-free-3.3.5/bin/moc
QTEMBEDDED = false
QTOPIA = false
QT_NEED_THREAD_SUPPORT = true
QT_STATIC_LINK = false
... mkdir ../../build/linux-arm-bulverde/./generated/flags
Flag AWT_IMPLEMENTATION changed. Cleaning up.
Flag AWT_PEERSET 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_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_DUAL_STACK changed. Cleaning up.
Flag CVM_DYNAMIC_LINKING changed. Cleaning up.
Flag CVM_FORCE_HARD_FLOAT changed. Cleaning up.
Flag CVM_GCCHOICE changed. Cleaning up.
Flag CVM_GCOV changed. Cleaning up.
Flag CVM_GPROF changed. Cleaning up.
Flag CVM_HOST changed. Cleaning up.
Flag CVM_IAI_OPT_ALL 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_CODE_SCHED 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_PROFILE changed. Cleaning up.
Flag CVM_JIT_REGISTER_LOCALS changed. Cleaning up.
Flag CVM_JIT_USE_FP_HARDWARE changed. Cleaning up.
Flag CVM_JVMDI changed. Cleaning up.
Flag CVM_JVMPI changed. Cleaning up.
Flag CVM_JVMPI_TRACE_INSTRUCTION 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_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.
... generating ../../build/linux-arm-bulverde/./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=qt\n" \
"CVM_CCM_COLLECT_STATS=false\n" \
"CVM_CLASSLIB_JCOV=false\n" \
"CVM_CLASSLOADING=true\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_DUAL_STACK=false\n" \
"CVM_DYNAMIC_LINKING=true\n" \
"CVM_FORCE_HARD_FLOAT=false\n" \
"CVM_GCCHOICE=generational\n" \
"CVM_GCOV=false\n" \
"CVM_GPROF=false\n" \
"CVM_HOST=i686-redhat-linux\n" \
"CVM_IAI_OPT_ALL=true\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_CODE_SCHED=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_PROFILE=false\n" \
"CVM_JIT_REGISTER_LOCALS=true\n" \
"CVM_JIT_USE_FP_HARDWARE=false\n" \
"CVM_JVMDI=false\n" \
"CVM_JVMPI=false\n" \
"CVM_JVMPI_TRACE_INSTRUCTION=false\n" \
"CVM_KNI=\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_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=false\n" \
"CVM_VERIFY_HEAP=false\n" \
"CVM_XRUN=false\n" \
"EXCLUDE_XLET_RUNNER=false\n" \
"J2ME_CLASSLIB=personal\n" \
"OPT_PKGS=\n" \

#define CVM_PROP_JAVA_VERSION "1.1.1-beta-b31"
#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.cgi"
#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 "CDC HI"
#define CVM_PROP_JAVA_VM_VERSION "1.1.1_01-b31"
#define CVM_PROP_SUN_MISC_PRODUCT "CDC HI/FP/PP"
#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 */

... mkdir ../../build/linux-arm-bulverde/./obj
... mkdir ../../build/linux-arm-bulverde/./bin
... mkdir ../../build/linux-arm-bulverde/./generated/javavm/runtime/opcodeconsts
... mkdir ../../build/linux-arm-bulverde/./generated/classes/sun/misc
... mkdir ../../build/linux-arm-bulverde/./generated/jni
... mkdir ../../build/linux-arm-bulverde/./generated/cni
... mkdir ../../build/linux-arm-bulverde/./generated/offsets
... mkdir ../../build/linux-arm-bulverde/./btclasses
... mkdir ../../build/linux-arm-bulverde/./testclasses
... mkdir ../../build/linux-arm-bulverde/./democlasses
... mkdir ../../build/linux-arm-bulverde/./lib
... mkdir ../../build/linux-arm-bulverde/./lib/security
... mkdir ../../build/linux-arm-bulverde/./classes.tools
... mkdir ../../build/linux-arm-bulverde/./personal_classes
... mkdir ../../build/linux-arm-bulverde/./generated/javavm/include/jit
... mkdir ../../build/linux-arm-bulverde/./jcs
... mkdir ../../build/linux-arm-bulverde/./generated/personal/qt/moc
... mkdir ../../build/linux-arm-bulverde/./generated/classes/java/util
... mkdir ../../build/linux-arm-bulverde/./classes.jcc
Checking for build-time classes to compile ...
... generating BuildFlags.java
... ../../build/linux-arm-bulverde/./generated/classes/sun/misc/BuildFlags.java
... generating sun.misc.DefaultLocaleList.java
... ../../build/linux-arm-bulverde/./generated/classes/sun/misc/DefaultLocaleList.java
Compiling build-time classes...
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
... ../../build/linux-arm-bulverde/./btclasses.zip
Checking for CDC HI/FP/PP classes to compile ...
... generating CurrencyData.java
Compiling CDC HI/FP/PP classes...
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
... ../../build/linux-arm-bulverde/./lib/personal.jar
Checking for test classes to compile ...
Compiling test classes...
... ../../build/linux-arm-bulverde/./testclasses.zip
Checking for demo classes to compile ...
Compiling demo classes...
... ../../build/linux-arm-bulverde/./democlasses.jar
... generating jni class headers
... ../../build/linux-arm-bulverde/./classes.jcc/GenOpcodes.class
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
... ../../src/share/javavm/include/opcodes.list
... ../../build/linux-arm-bulverde/./classes.jcc/JavaCodeCompact.class
Note: ../../src/share/javavm/jcc/util/LinkerUtil.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
jcc romjava.c files
918 Total Classes
... of which 197 classes have static initializers
(9349/13538 quickening sites)
8618 method blocks
... of which 8618 blocks are writable
... for 852 classes
... of which 2929 have checkinit opcodes in the code
431538 bytes of Java code
1553 catch frames
3868 field blocks
936 inner class attribute entries
11289 constant pool entries
3721 Java strings
cc ../../build/linux-arm-bulverde/./obj/audioDevice.o
cc ../../build/linux-arm-bulverde/./obj/embeddedframe.o
c++ ../../build/linux-arm-bulverde/./obj/QtSync.o
c++ ../../build/linux-arm-bulverde/./obj/QtORB.o
c++ ../../build/linux-arm-bulverde/./obj/QpObject.o
c++ ../../build/linux-arm-bulverde/./obj/QpWidget.o
c++ ../../build/linux-arm-bulverde/./obj/QpWidgetFactory.o
c++ ../../build/linux-arm-bulverde/./obj/QpFrame.o
c++ ../../build/linux-arm-bulverde/./obj/QpMenuBar.o
c++ ../../build/linux-arm-bulverde/./obj/QpPopupMenu.o
c++ ../../build/linux-arm-bulverde/./obj/QpPushButton.o
c++ ../../build/linux-arm-bulverde/./obj/QpComboBox.o
c++ ../../build/linux-arm-bulverde/./obj/QpCheckBox.o
c++ ../../build/linux-arm-bulverde/./obj/QpRadioButton.o
c++ ../../build/linux-arm-bulverde/./obj/QpLabel.o
c++ ../../build/linux-arm-bulverde/./obj/QpListBox.o
c++ ../../build/linux-arm-bulverde/./obj/QpScrollView.o
c++ ../../build/linux-arm-bulverde/./obj/QpScrollBar.o
c++ ../../build/linux-arm-bulverde/./obj/QpLineEdit.o
c++ ../../build/linux-arm-bulverde/./obj/QpFileDialog.o
c++ ../../build/linux-arm-bulverde/./obj/QpFontManager.o
c++ ../../build/linux-arm-bulverde/./obj/QpClipboard.o
c++ ../../build/linux-arm-bulverde/./obj/QpRobot.o
c++ ../../build/linux-arm-bulverde/./obj/QtApplication.o
c++ ../../build/linux-arm-bulverde/./obj/awt.o
c++ ../../build/linux-arm-bulverde/./obj/QtClipboard.o
moc ../../build/linux-arm-bulverde/./generated/personal/qt/moc/QtClipboard_moc.cc
c++ ../../build/linux-arm-bulverde/./obj/QtClipboard_moc.o
c++ ../../build/linux-arm-bulverde/./obj/QtComponentPeer.o
c++ ../../build/linux-arm-bulverde/./obj/QtToolkit.o
c++ ../../build/linux-arm-bulverde/./obj/QtDisposer.o
c++ ../../build/linux-arm-bulverde/./obj/QtPanelPeer.o
c++ ../../build/linux-arm-bulverde/./obj/QtFramePeer.o
c++ ../../build/linux-arm-bulverde/./obj/QtWindowPeer.o
c++ ../../build/linux-arm-bulverde/./obj/QtGraphics.o
c++ ../../build/linux-arm-bulverde/./obj/KeyCodes.o
c++ ../../build/linux-arm-bulverde/./obj/QtImageRepresentation.o
c++ ../../build/linux-arm-bulverde/./obj/QtImageDecoder.o
c++ ../../build/linux-arm-bulverde/./obj/QtFontPeer.o
c++ ../../build/linux-arm-bulverde/./obj/OffScreenImageSource.o
c++ ../../build/linux-arm-bulverde/./obj/QtKeyboardFocusManager.o
c++ ../../build/linux-arm-bulverde/./obj/QtMenuComponentPeer.o
c++ ../../build/linux-arm-bulverde/./obj/QtMenuBarPeer.o
c++ ../../build/linux-arm-bulverde/./obj/QtMenuItemPeer.o
moc ../../build/linux-arm-bulverde/./generated/personal/qt/moc/QtMenuItemPeer_moc.cc
c++ ../../build/linux-arm-bulverde/./obj/QtMenuItemPeer_moc.o
c++ ../../build/linux-arm-bulverde/./obj/QtMenuPeer.o
moc ../../build/linux-arm-bulverde/./generated/personal/qt/moc/QtMenuPeer_moc.cc
c++ ../../build/linux-arm-bulverde/./obj/QtMenuPeer_moc.o
c++ ../../build/linux-arm-bulverde/./obj/QtCheckboxMenuItemPeer.o
moc ../../build/linux-arm-bulverde/./generated/personal/qt/moc/QtCheckboxMenuItemPeer_moc.cc
c++ ../../build/linux-arm-bulverde/./obj/QtCheckboxMenuItemPeer_moc.o
c++ ../../build/linux-arm-bulverde/./obj/QtPopupMenuPeer.o
moc ../../build/linux-arm-bulverde/./generated/personal/qt/moc/QtPopupMenuPeer_moc.cc
c++ ../../build/linux-arm-bulverde/./obj/QtPopupMenuPeer_moc.o
c++ ../../build/linux-arm-bulverde/./obj/QtButtonPeer.o
moc ../../build/linux-arm-bulverde/./generated/personal/qt/moc/QtButtonPeer_moc.cc
c++ ../../build/linux-arm-bulverde/./obj/QtButtonPeer_moc.o
c++ ../../build/linux-arm-bulverde/./obj/QtCanvasPeer.o
c++ ../../build/linux-arm-bulverde/./obj/QtChoicePeer.o
moc ../../build/linux-arm-bulverde/./generated/personal/qt/moc/QtChoicePeer_moc.cc
c++ ../../build/linux-arm-bulverde/./obj/QtChoicePeer_moc.o
c++ ../../build/linux-arm-bulverde/./obj/QtCheckboxPeer.o
moc ../../build/linux-arm-bulverde/./generated/personal/qt/moc/QtCheckboxPeer_moc.cc
c++ ../../build/linux-arm-bulverde/./obj/QtCheckboxPeer_moc.o
c++ ../../build/linux-arm-bulverde/./obj/QtDialogPeer.o
c++ ../../build/linux-arm-bulverde/./obj/QtLabelPeer.o
c++ ../../build/linux-arm-bulverde/./obj/QtListPeer.o
published on CDC build system.pdfmoc ../../build/linux-arm-bulverde/./generated/personal/qt/moc/QtListPeer_moc.cc
c++ ../../build/linux-arm-bulverde/./obj/QtListPeer_moc.o
c++ ../../build/linux-arm-bulverde/./obj/QtScrollPanePeer.o
published on CDC build system.pdfmoc ../../build/linux-arm-bulverde/./generated/personal/qt/moc/QtScrollPanePeer_moc.cc
c++ ../../build/linux-arm-bulverde/./obj/QtScrollPanePeer_moc.o
c++ ../../build/linux-arm-bulverde/./obj/QtScrollbarPeer.o
moc ../../build/linux-arm-bulverde/./generated/personal/qt/moc/QtScrollbarPeer_moc.cc
c++ ../../build/linux-arm-bulverde/./obj/QtScrollbarPeer_moc.o
c++ ../../build/linux-arm-bulverde/./obj/QtTextComponentPeer.o
c++ ../../build/linux-arm-bulverde/./obj/QtFileDialogPeer.o
moc ../../build/linux-arm-bulverde/./generated/personal/qt/moc/QtFileDialogPeer_moc.cc
c++ ../../build/linux-arm-bulverde/./obj/QtFileDialogPeer_moc.o
c++ ../../build/linux-arm-bulverde/./obj/Qt3TextFieldPeer.o
moc ../../build/linux-arm-bulverde/./generated/personal/qt/moc/Qt3TextFieldPeer_moc.cc
c++ ../../build/linux-arm-bulverde/./obj/Qt3TextFieldPeer_moc.o
c++ ../../build/linux-arm-bulverde/./obj/Qt3TextAreaPeer.o
moc ../../build/linux-arm-bulverde/./generated/personal/qt/moc/Qt3TextAreaPeer_moc.cc
c++ ../../build/linux-arm-bulverde/./obj/Qt3TextAreaPeer_moc.o
c++ ../../build/linux-arm-bulverde/./obj/QtRobotHelper.o
c++ ../../build/linux-arm-bulverde/./obj/QxFileDialog.o
moc ../../build/linux-arm-bulverde/./generated/personal/qt/moc/QxFileDialog_moc.cc
c++ ../../build/linux-arm-bulverde/./obj/QxFileDialog_moc.o
c++ ../../build/linux-arm-bulverde/./obj/QxLineEdit.o
c++ ../../build/linux-arm-bulverde/./obj/QpTextEdit.o
c++ ../../build/linux-arm-bulverde/./obj/QxTextEdit.o
cc ../../build/linux-arm-bulverde/./obj/PeerBasedToolkit.o
cc ../../build/linux-arm-bulverde/./obj/gifdecoder.o
Linking ../../build/linux-arm-bulverde/./lib/libqtawt.so
/micro/tools/arm-linux/bin/../lib/gcc-lib/arm-linux/3.3.2/../../../../arm-linux/bin/ld: cannot find -lqt-mt
collect2: ld returned 1 exit status
make: *** [../../build/linux-arm-bulverde/./lib/libqtawt.so] Error 1
************************************************************************

It takes me a few days to figure it out, but failed. Can anybody help me out? Thank you in advanced.

shu wei

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
cmsswei
Offline
Joined: 2007-09-27

to be continued:

/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/sys/resource.h:25,
from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/sys/wait.h:31,
from ../../src/linux/native/common/jni_statics_md.h:30,
from ../../src/share/native/common/jni_statics.h:26,
from ../../src/linux/native/java/net/net_util_md.c:108:
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/resource.h:35: parse error before `0'
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/resource.h:68: parse error before `9'
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/resource.h:84: parse error before `11'
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/resource.h:116: redefinition of `struct rlimit'
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/resource.h:137: parse error before `0'
In file included from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/sys/resource.h:25,
from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/sys/wait.h:31,
from ../../src/linux/native/common/jni_statics_md.h:30,
from ../../src/share/native/common/jni_statics.h:26,
from ../../src/linux/native/java/net/net_util_md.c:108:
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/resource.h:154: redefinition of `struct rusage'
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/resource.h:203: parse error before `0'
../../src/linux/native/java/net/net_util_md.c: In function `getDefaultIPv6Interface':
../../src/linux/native/java/net/net_util_md.c:667: `RTF_POLICY' undeclared (first use in this function)
../../src/linux/native/java/net/net_util_md.c:667: `RTF_FLOW' undeclared (first use in this function)
make: *** [../../build/linux-arm-xscale/./obj/net_util_md.o] Error 1

Regargs,
Shu Wei

cjplummer
Offline
Joined: 2006-10-16

Why are you using gcc 2.95.3? is this really the proper cross compiler for your target platform? If it is, make sure you set USE_GCC2=true in your GNUmakefile.

Chris

cmsswei
Offline
Joined: 2007-09-27

Hi Chris,

I use toolchain 2.95.3 according to the reference of CDC build system Guide. Is it wrong? or what kind of toolchain should I use because it still reported error messages when I set USE_GCC2=true:

[root@localhost linux-arm-xscale]# make CVM_TARGET_TOOLS_PREFIX=arm-linux- J2ME_CLASSLIB=personal QT_TARGET_DIR=/usr/local/qt-2.3.10-target CVM_JAVABIN=$JAVA_HOME/bin X11_LIB_DIR=/usr/X11R6/lib
../share/rules.mk:357: ../../build/linux-arm-xscale/./generated/empty.mk: No such file or directory
... mkdir ../../build/linux-arm-xscale/./generated/javavm/runtime
... mkdir ../../build/linux-arm-xscale/./generated/javavm/runtime/jit
... mkdir ../../build/linux-arm-xscale/./generated/classes
touch ../../build/linux-arm-xscale/./generated/empty.mk
CVM_HOST = i686-redhat-linux
CVM_TARGET = linux-arm-xscale
SHELL = sh -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 = /usr/local/j2sdk1.4.2_16/bin/java
CVM_JAVAC = /usr/local/j2sdk1.4.2_16/bin/javac
CVM_JAVAH = /usr/local/j2sdk1.4.2_16/bin/javah
CVM_JAR = /usr/local/j2sdk1.4.2_16/bin/jar
TARGET_CC = /usr/local/arm/2.95.3/bin/arm-linux-gcc
TARGET_CCC = /usr/local/arm/2.95.3/bin/arm-linux-g++
TARGET_AS = /usr/local/arm/2.95.3/bin/arm-linux-gcc
TARGET_LD = /usr/local/arm/2.95.3/bin/arm-linux-gcc
TARGET_AR = /usr/local/arm/2.95.3/bin/arm-linux-ar
TARGET_RANLIB = /usr/local/arm/2.95.3/bin/arm-linux-ranlib
LINKFLAGS = -g -Wl,-export-dynamic -msoft-float
LINKLIBS = -lpthread -ldl -lfloat
ASM_FLAGS = -c -fno-common -traditional -msoft-float
CCCFLAGS = -fno-rtti
CCFLAGS_SPEED = -c -fno-common -Wall -fno-strict-aliasing -msoft-float -O4
CCFLAGS_SPACE = -c -fno-common -Wall -fno-strict-aliasing -msoft-float -O2
CCFLAGS_LOOP = -c -fno-common -Wall -fno-strict-aliasing -msoft-float -O4
CCFLAGS_FDLIB = -c -fno-common -Wall -fno-strict-aliasing -msoft-float -O4
JAVAC_OPTIONS = -g:none -J-Xms32m -J-Xmx128m -encoding iso8859-1 -source 1.4 -target 1.4
CVM_DEFINES = -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=personal -DTARGET_CPU_FAMILY=arm -DCVM_JIT_COPY_CCMCODE_TO_CODECACHE -D_GNU_SOURCE -DCVM_IAI_OPT_ALL -DQT_THREAD_SUPPORT -Dqt
AWT_LIB_LIBS = -L/usr/local/qt-2.3.10-target/lib -lqt-mt
AWT_IMPLEMENTATION = peer_based
AWT_PEERSET = qt
QT_TARGET_DIR = /usr/local/qt-2.3.10-target
QT_TARGET_INCLUDE_DIR = /usr/local/qt-2.3.10-target/include
QT_TARGET_LIB_DIR = /usr/local/qt-2.3.10-target/lib
MOC = /usr/local/qt-2.3.10-target/bin/moc
QTEMBEDDED = false
QTOPIA = false
QT_NEED_THREAD_SUPPORT = true
QT_STATIC_LINK = false
... mkdir ../../build/linux-arm-xscale/./generated/flags
Flag AWT_IMPLEMENTATION changed. Cleaning up.
Flag AWT_PEERSET 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_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_DUAL_STACK changed. Cleaning up.
Flag CVM_DYNAMIC_LINKING changed. Cleaning up.
Flag CVM_FORCE_HARD_FLOAT changed. Cleaning up.
Flag CVM_GCCHOICE changed. Cleaning up.
Flag CVM_GCOV changed. Cleaning up.
Flag CVM_GPROF changed. Cleaning up.
Flag CVM_HOST changed. Cleaning up.
Flag CVM_IAI_OPT_ALL 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_CODE_SCHED 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_PROFILE changed. Cleaning up.
Flag CVM_JIT_REGISTER_LOCALS changed. Cleaning up.
Flag CVM_JIT_USE_FP_HARDWARE changed. Cleaning up.
Flag CVM_JVMDI changed. Cleaning up.
Flag CVM_JVMPI changed. Cleaning up.
Flag CVM_JVMPI_TRACE_INSTRUCTION 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_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.
... generating ../../build/linux-arm-xscale/./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=qt\n" \
"CVM_CCM_COLLECT_STATS=false\n" \
"CVM_CLASSLIB_JCOV=false\n" \
"CVM_CLASSLOADING=true\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_DUAL_STACK=false\n" \
"CVM_DYNAMIC_LINKING=true\n" \
"CVM_FORCE_HARD_FLOAT=false\n" \
"CVM_GCCHOICE=generational\n" \
"CVM_GCOV=false\n" \
"CVM_GPROF=false\n" \
"CVM_HOST=i686-redhat-linux\n" \
"CVM_IAI_OPT_ALL=true\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_CODE_SCHED=false\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_PROFILE=false\n" \
"CVM_JIT_REGISTER_LOCALS=true\n" \
"CVM_JIT_USE_FP_HARDWARE=false\n" \
"CVM_JVMDI=false\n" \
"CVM_JVMPI=false\n" \
"CVM_JVMPI_TRACE_INSTRUCTION=false\n" \
"CVM_KNI=\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_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=false\n" \
"CVM_VERIFY_HEAP=false\n" \
"CVM_XRUN=false\n" \
"EXCLUDE_XLET_RUNNER=false\n" \
"J2ME_CLASSLIB=personal\n" \
"OPT_PKGS=\n" \

#define CVM_PROP_JAVA_VERSION "1.1.1-beta-b31"
#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.cgi"
#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 "CDC HI"
#define CVM_PROP_JAVA_VM_VERSION "1.1.1_01-b31"
#define CVM_PROP_SUN_MISC_PRODUCT "CDC HI/FP/PP"
#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 */

... mkdir ../../build/linux-arm-xscale/./obj
... mkdir ../../build/linux-arm-xscale/./bin
... mkdir ../../build/linux-arm-xscale/./generated/javavm/runtime/opcodeconsts
... mkdir ../../build/linux-arm-xscale/./generated/classes/sun/misc
... mkdir ../../build/linux-arm-xscale/./generated/jni
... mkdir ../../build/linux-arm-xscale/./generated/cni
... mkdir ../../build/linux-arm-xscale/./generated/offsets
... mkdir ../../build/linux-arm-xscale/./btclasses
... mkdir ../../build/linux-arm-xscale/./testclasses
... mkdir ../../build/linux-arm-xscale/./democlasses
... mkdir ../../build/linux-arm-xscale/./lib
... mkdir ../../build/linux-arm-xscale/./lib/security
... mkdir ../../build/linux-arm-xscale/./classes.tools
... mkdir ../../build/linux-arm-xscale/./personal_classes
... mkdir ../../build/linux-arm-xscale/./generated/javavm/include/jit
... mkdir ../../build/linux-arm-xscale/./jcs
... mkdir ../../build/linux-arm-xscale/./generated/personal/qt/moc
... mkdir ../../build/linux-arm-xscale/./generated/classes/java/util
... mkdir ../../build/linux-arm-xscale/./classes.jcc
Checking for build-time classes to compile ...
... generating BuildFlags.java
... ../../build/linux-arm-xscale/./generated/classes/sun/misc/BuildFlags.java
... generating sun.misc.DefaultLocaleList.java
... ../../build/linux-arm-xscale/./generated/classes/sun/misc/DefaultLocaleList.java
Compiling build-time classes...
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
... ../../build/linux-arm-xscale/./btclasses.zip
Checking for CDC HI/FP/PP classes to compile ...
... generating CurrencyData.java
Compiling CDC HI/FP/PP classes...
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
... ../../build/linux-arm-xscale/./lib/personal.jar
Checking for test classes to compile ...
Compiling test classes...
... ../../build/linux-arm-xscale/./testclasses.zip
Checking for demo classes to compile ...
Compiling demo classes...
... ../../build/linux-arm-xscale/./democlasses.jar
... generating jni class headers
... ../../build/linux-arm-xscale/./classes.jcc/GenOpcodes.class
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
... ../../src/share/javavm/include/opcodes.list
... ../../build/linux-arm-xscale/./classes.jcc/JavaCodeCompact.class
Note: ../../src/share/javavm/jcc/util/LinkerUtil.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
jcc romjava.c files
918 Total Classes
... of which 197 classes have static initializers
(9349/13538 quickening sites)
8618 method blocks
... of which 8618 blocks are writable
... for 852 classes
... of which 2929 have checkinit opcodes in the code
431538 bytes of Java code
1553 catch frames
3868 field blocks
936 inner class attribute entries
11289 constant pool entries
3721 Java strings
cc ../../build/linux-arm-xscale/./obj/audioDevice.o
cc ../../build/linux-arm-xscale/./obj/embeddedframe.o
c++ ../../build/linux-arm-xscale/./obj/QtSync.o
c++ ../../build/linux-arm-xscale/./obj/QtORB.o
c++ ../../build/linux-arm-xscale/./obj/QpObject.o
c++ ../../build/linux-arm-xscale/./obj/QpWidget.o
c++ ../../build/linux-arm-xscale/./obj/QpWidgetFactory.o
c++ ../../build/linux-arm-xscale/./obj/QpFrame.o
c++ ../../build/linux-arm-xscale/./obj/QpMenuBar.o
c++ ../../build/linux-arm-xscale/./obj/QpPopupMenu.o
c++ ../../build/linux-arm-xscale/./obj/QpPushButton.o
c++ ../../build/linux-arm-xscale/./obj/QpComboBox.o
c++ ../../build/linux-arm-xscale/./obj/QpCheckBox.o
c++ ../../build/linux-arm-xscale/./obj/QpRadioButton.o
c++ ../../build/linux-arm-xscale/./obj/QpLabel.o
c++ ../../build/linux-arm-xscale/./obj/QpListBox.o
c++ ../../build/linux-arm-xscale/./obj/QpScrollView.o
c++ ../../build/linux-arm-xscale/./obj/QpScrollBar.o
c++ ../../build/linux-arm-xscale/./obj/QpLineEdit.o
c++ ../../build/linux-arm-xscale/./obj/QpFileDialog.o
c++ ../../build/linux-arm-xscale/./obj/QpFontManager.o
c++ ../../build/linux-arm-xscale/./obj/QpClipboard.o
c++ ../../build/linux-arm-xscale/./obj/QpRobot.o
c++ ../../build/linux-arm-xscale/./obj/QtApplication.o
c++ ../../build/linux-arm-xscale/./obj/awt.o
c++ ../../build/linux-arm-xscale/./obj/QtClipboard.o
moc ../../build/linux-arm-xscale/./generated/personal/qt/moc/QtClipboard_moc.cc
c++ ../../build/linux-arm-xscale/./obj/QtClipboard_moc.o
c++ ../../build/linux-arm-xscale/./obj/QtComponentPeer.o
c++ ../../build/linux-arm-xscale/./obj/QtToolkit.o
c++ ../../build/linux-arm-xscale/./obj/QtDisposer.o
c++ ../../build/linux-arm-xscale/./obj/QtPanelPeer.o
c++ ../../build/linux-arm-xscale/./obj/QtFramePeer.o
c++ ../../build/linux-arm-xscale/./obj/QtWindowPeer.o
c++ ../../build/linux-arm-xscale/./obj/QtGraphics.o
c++ ../../build/linux-arm-xscale/./obj/KeyCodes.o
c++ ../../build/linux-arm-xscale/./obj/QtImageRepresentation.o
c++ ../../build/linux-arm-xscale/./obj/QtImageDecoder.o
c++ ../../build/linux-arm-xscale/./obj/QtFontPeer.o
c++ ../../build/linux-arm-xscale/./obj/OffScreenImageSource.o
c++ ../../build/linux-arm-xscale/./obj/QtKeyboardFocusManager.o
c++ ../../build/linux-arm-xscale/./obj/QtMenuComponentPeer.o
c++ ../../build/linux-arm-xscale/./obj/QtMenuBarPeer.o
c++ ../../build/linux-arm-xscale/./obj/QtMenuItemPeer.o
moc ../../build/linux-arm-xscale/./generated/personal/qt/moc/QtMenuItemPeer_moc.cc
c++ ../../build/linux-arm-xscale/./obj/QtMenuItemPeer_moc.o
c++ ../../build/linux-arm-xscale/./obj/QtMenuPeer.o
moc ../../build/linux-arm-xscale/./generated/personal/qt/moc/QtMenuPeer_moc.cc
c++ ../../build/linux-arm-xscale/./obj/QtMenuPeer_moc.o
c++ ../../build/linux-arm-xscale/./obj/QtCheckboxMenuItemPeer.o
moc ../../build/linux-arm-xscale/./generated/personal/qt/moc/QtCheckboxMenuItemPeer_moc.cc
c++ ../../build/linux-arm-xscale/./obj/QtCheckboxMenuItemPeer_moc.o
c++ ../../build/linux-arm-xscale/./obj/QtPopupMenuPeer.o
moc ../../build/linux-arm-xscale/./generated/personal/qt/moc/QtPopupMenuPeer_moc.cc
c++ ../../build/linux-arm-xscale/./obj/QtPopupMenuPeer_moc.o
c++ ../../build/linux-arm-xscale/./obj/QtButtonPeer.o
moc ../../build/linux-arm-xscale/./generated/personal/qt/moc/QtButtonPeer_moc.cc
c++ ../../build/linux-arm-xscale/./obj/QtButtonPeer_moc.o
c++ ../../build/linux-arm-xscale/./obj/QtCanvasPeer.o
c++ ../../build/linux-arm-xscale/./obj/QtChoicePeer.o
moc ../../build/linux-arm-xscale/./generated/personal/qt/moc/QtChoicePeer_moc.cc
c++ ../../build/linux-arm-xscale/./obj/QtChoicePeer_moc.o
c++ ../../build/linux-arm-xscale/./obj/QtCheckboxPeer.o
moc ../../build/linux-arm-xscale/./generated/personal/qt/moc/QtCheckboxPeer_moc.cc
c++ ../../build/linux-arm-xscale/./obj/QtCheckboxPeer_moc.o
c++ ../../build/linux-arm-xscale/./obj/QtDialogPeer.o
c++ ../../build/linux-arm-xscale/./obj/QtLabelPeer.o
c++ ../../build/linux-arm-xscale/./obj/QtListPeer.o
moc ../../build/linux-arm-xscale/./generated/personal/qt/moc/QtListPeer_moc.cc
c++ ../../build/linux-arm-xscale/./obj/QtListPeer_moc.o
c++ ../../build/linux-arm-xscale/./obj/QtScrollPanePeer.o
moc ../../build/linux-arm-xscale/./generated/personal/qt/moc/QtScrollPanePeer_moc.cc
c++ ../../build/linux-arm-xscale/./obj/QtScrollPanePeer_moc.o
c++ ../../build/linux-arm-xscale/./obj/QtScrollbarPeer.o
moc ../../build/linux-arm-xscale/./generated/personal/qt/moc/QtScrollbarPeer_moc.cc
c++ ../../build/linux-arm-xscale/./obj/QtScrollbarPeer_moc.o
c++ ../../build/linux-arm-xscale/./obj/QtTextComponentPeer.o
c++ ../../build/linux-arm-xscale/./obj/QtFileDialogPeer.o
moc ../../build/linux-arm-xscale/./generated/personal/qt/moc/QtFileDialogPeer_moc.cc
c++ ../../build/linux-arm-xscale/./obj/QtFileDialogPeer_moc.o
c++ ../../build/linux-arm-xscale/./obj/Qt3TextFieldPeer.o
../../src/share/personal/native/awt/qt/Qt3TextFieldPeer.cc: In method `int QtTextFieldPeer::getSelectionStart()':
../../src/share/personal/native/awt/qt/Qt3TextFieldPeer.cc:105: no matching function for call to `QpLineEdit::hasSelectedText ()'
../../src/share/personal/native/awt/qt/Qt3TextFieldPeer.cc: In method `int QtTextFieldPeer::getSelectionEnd()':
../../src/share/personal/native/awt/qt/Qt3TextFieldPeer.cc:116: no matching function for call to `QpLineEdit::hasSelectedText ()'
../../src/share/personal/native/awt/qt/Qt3TextFieldPeer.cc:117: no matching function for call to `QpLineEdit::selectedText ()'
make: *** [../../build/linux-arm-xscale/./obj/Qt3TextFieldPeer.o] Error 1
[root@localhost linux-arm-xscale]#

Regards,
Shu Wei

cjplummer
Offline
Joined: 2006-10-16

If the build guide says you should use 2.95.3, then that is an error. It should only say that CDC was tested with 2.95.3, and that was quite a while back. You are best off using the same that gcc was used to build the libraries for your platform.

As for the build error below, you are building personal, which requires QT3, but QT_TARGET_DIR points to QT2.

Chris

cmsswei
Offline
Joined: 2007-09-27

Hi Chris,

Ok, I have built QTE3.3.8 and Qtopia2.2.0, moved Qtopia's include and lib file into QTE3 as Hinkmond said. It works, this time it didn't report lacking of header files such as qpeapplication.h, but it still throw out errors:

c++ ../../build/linux-arm-xscale/./obj/QpObject.o
c++ ../../build/linux-arm-xscale/./obj/QpWidget.o
c++ ../../build/linux-arm-xscale/./obj/QpWidgetFactory.o
c++ ../../build/linux-arm-xscale/./obj/QpFrame.o
/home/weishu/xplatform/qt-embedded-free-3.3.8/include/qtopia/../../src/libraries/qtopia/applicationinterface.h:49: warning: 'struct ApplicationInterface' has virtual functions but non-virtual destructor
../../src/share/personal/native/awt/qt/wproxy/QpFrame.cc: In member function 'QPoint QpFrame::execGetOriginWithDecoration()':
../../src/share/personal/native/awt/qt/wproxy/QpFrame.cc:276: error: invalid use of undefined type 'struct QWSDecoration'
/home/weishu/xplatform/qt-embedded-free-3.3.8/include/qapplication.h:55: error: forward declaration of 'struct QWSDecoration'
make: *** [../../build/linux-arm-xscale/./obj/QpFrame.o] Error 1

It seems something is wrong with QTE what I built. Any idea of this?

Regards,
Shu Wei

cjplummer
Offline
Joined: 2006-10-16

Hi Shu,

Sorry, but I don't have an answer for you. This is beyond my understanding of QT and our PBP/PP implementations (which isn't much to start with). Previously I was able to spot some obvious build irregularities, but this now just looks like an incompatibility between our PBP/PP implementation, and the version of QT you are using. Maybe one of our PBP/PP experts can help.

Chris

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hi Shu,
>
> Sorry, but I don't have an answer for you. This is beyond my understanding of QT and our PBP/PP implementations (which isn't much to start with). Previously I was able to spot some obvious build irregularities, but this now just looks like an incompatibility between our PBP/PP implementation, and the version of QT you are using. Maybe one of our PBP/PP experts can help.
>
> Chris
>

Hi Shu,

Like Chris points out, this is probably a Qt/Qtopia versioning issue
with your build. It's getting outside the scope of this forum, since we
deal with Java ME technology on this phoneME Advanced forum, and your
question is now a Trolltech Qt/Qtopia build question.

You might want to try the http://qtcentre.org web site for some help or
check with Trolltech support.

See this thread which shows a similar problem from their Web site:

http://www.qtcentre.org/forum/archive/index.php/t-2751.html

It might be that you are building QtEmbedded for your target device, but
your environment is trying to pick up files from /usr/include/qt3 which
is the wrong place, since that includes Qt/x86 for your Desktop, not
Qt/Embedded for your target device.

You might want to double check your QTDIR and other QT settings to make
sure they point to your Qt/Embedded target device library and include
files, not the system Qt/X86 Desktop development files.

Example:

You want:

/home/weishu/xplatform/qt-embedded-free-3.3.8/

Not:
/usr/include/qt3
/usr/lib/qt3

Hinkmond

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

cmsswei
Offline
Joined: 2007-09-27

Hi, Hinkmond and Chris

Sorry for reply so late. The problem has been solved. It is the problem of GCC version, not QT/Embedded or phoneMe. My SUSE 10's HOST GCC version is 4.1.0. When I compiled QT/Embedded and phoneMe with GCC 3.4.5(HOST) at Redhat 4.4, it worked fine.

Thank you both very much again. Wish you all the best!

Regards,
Shu Wei

cmsswei
Offline
Joined: 2007-09-27

Hi Hinkmond,

I changed CVM_CLASSLIB to foundation, it doesn't work, still reported error messages. I remember I built it sucessfully with cdc profile and foundation one before if I am right. Is it the problem of cross-compiler?

cc ../../build/linux-arm-xscale/./obj/net_util_md.o
In file included from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/linux/fs.h:12,
from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/linux/capability.h:17,
from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/linux/binfmts.h:5,
from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/linux/sched.h:9,
from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/net/inetpeer.h:14,
from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/net/route.h:28,
from ../../src/linux/native/java/net/net_util_md.c:36:
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/linux/wait.h:4: warning: `WNOHANG' redefined
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/waitflags.h:26: warning: this is the location of the previous definition
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/linux/wait.h:5: warning: `WUNTRACED' redefined
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/waitflags.h:27: warning: this is the location of the previous definition

...... <<<<<<<<<<<<<<<<< sort of warning messages

/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/sys/resource.h:25,
from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/sys/wait.h:31,
from ../../src/linux/native/common/jni_statics_md.h:30,
from ../../src/share/native/common/jni_statics.h:26,
from ../../src/linux/native/java/net/net_util_md.c:108:
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/resource.h:35: parse error before `0'
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/resource.h:68: parse error before `9'
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/resource.h:84: parse error before `11'
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/resource.h:116: redefinition of `struct rlimit'
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/resource.h:137: parse error before `0'
In file included from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/sys/resource.h:25,
from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/sys/wait.h:31,
from ../../src/linux/native/common/jni_statics_md.h:30,
from ../../src/share/native/common/jni_statics.h:26,
from ../../src/linux/native/java/net/net_util_md.c:108:
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/resource.h:154: redefinition of `struct rusage'
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/include/bits/resource.h:203: parse error before `0'
../../src/linux/native/java/net/net_util_md.c: In function `getDefaultIPv6Interface':
../../src/linux/native/java/net/net_util_md.c:667: `RTF_POLICY' undeclared (first use in this function)
../../src/linux/native/java/net/net_util_md.c:667: `RTF_FLOW' undeclared (first use in this function)
make: *** [../../build/linux-arm-xscale/./obj/net_util_md.o] Error 1

Regargs,
Shu Wei

cjplummer
Offline
Joined: 2006-10-16

You need libqt-mt.so, since you are building with QTEMBEDDED=false. If you look in /usr/local/share/qt-x11-free-3.3.5/lib, you'll probably see that it is not there. Try building with QTEMBEDDED=true. You can also try QT_NEED_THREAD_SUPPORT=false, which will instead link with libqt.so. I'm not certain what combination of QT related options are supported with MR1, so it's possible using these options may introduce new problems. If you can, the best solution is to find libqt-mt.so. You may need to build it yourself.

Chris

cmsswei
Offline
Joined: 2007-09-27

Thanks to Chris. If I set QTEMBEDDED=true, does it mean that I need to set QT_TARGET_DIR to QT/Embedded instead of QT/X11? I'm confused that which package on earth personal profile needs, QT/X11 or QT/Embedded? Because Hinkmond Wong suggested me to cross-compile the QT/Embedded, and I found the QT/Embedded was for MR2. I used google to search ligqt-mt.so, but unfortunately, I find nothing. Any ideas to figure it out?

Cheers,
Shu Wei

cjplummer
Offline
Joined: 2006-10-16

> Thanks to Chris. If I set QTEMBEDDED=true, does it
> mean that I need to set QT_TARGET_DIR to QT/Embedded
> instead of QT/X11?
Yes. I don't believe QT_TARGET_DIR=/usr/local/share/qt-x11-free-3.3.5 is goign to work, because your arm device most likely does not support qt/X11

> I'm confused that which package on
> earth personal profile needs, QT/X11 or QT/Embedded?
QT/X11 is for running on your X11 desktop (for example, your linux/x86 host). QT/Embedded is for running on a device, or for running on your desktop under qvfp.

Chris

> Because Hinkmond Wong suggested me to cross-compile
> the QT/Embedded, and I found the QT/Embedded was for
> MR2. I used google to search ligqt-mt.so, but
> unfortunately, I find nothing. Any ideas to figure it
> out?
>
> Cheers,
> Shu Wei

simonjlewis
Offline
Joined: 2003-06-10

Its looking for the library libqt-mt.so.

I am not a Qt expert so I'm guessing that the 'mt' stands for multi-threaded

regards

simon lewis

cmsswei
Offline
Joined: 2007-09-27

thanks to simonjlewis.

It does look for ligqt-mt.so, I didn't find it in the folder /usr/local/share/qt-x11-free-3.3.5/lib. Should I recompile qt? what kind of options should be with? thanks.

shu wei

Hinkmond Wong

Hi Shu Wei,

To build QT, see our TWiki page:

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

Thanks,

Hinkmond

phonemeadvanced@mobileandembedded.org wrote:
> thanks to simonjlewis.
>
> It does look for ligqt-mt.so, I didn't find it in the folder /usr/local/share/qt-x11-free-3.3.5/lib. Should I recompile qt? what kind of options should be with? thanks.
>
> shu wei
>

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

cmsswei
Offline
Joined: 2007-09-27

Hi Hinkmond Wong,

I built QT Embedded as the TWiki page says. It generated lib files such as libqte-mt.so.3.3.5 into the lib directory, but it still threw errors when I compile the phoneme project, although I set QT_TARGET_DIR to QT Embedded directory. This time it reports lacking of files. Any ideas?

For security policy, I can't post the error message. sorry about this.

Regards,
Shu Wei

Hinkmond Wong

Hi Shu Wei,

phonemeadvanced@mobileandembedded.org wrote:
> Hi Hinkmond Wong,
>
> I built QT Embedded as the TWiki page says. It generated lib files such as libqte-mt.so.3.3.5 into the lib directory, but it still threw errors when I compile the phoneme project, although I set QT_TARGET_DIR to QT Embedded directory. This time it reports lacking of files. Any ideas?
>
> For security policy, I can't post the error message. sorry about this.

I'm sorry. Without more information, I cannot tell you why you might be
having problems.

The most important info you need to give us is the names and locations
of the missing files.

Hinkmond

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

cmsswei
Offline
Joined: 2007-09-27

Hi Hinkmond Wong,

I built personal profile on my home PC, it threw the same errors. The following messages are the terminal output:

test@SUSElinux:~/phoneme-advanced-mr1/build/linux-arm-xscale> make CVM_TARGET_TOOLS_PREFIX=arm-xscale-linux-gnu- J2ME_CLASSLIB=personal QT_TARGET_DIR=/usr/lib/qt3
../share/rules.mk:357: ../../build/linux-arm-xscale/./generated/empty.mk: 娌℃湁閭d釜鏂囦欢鎴栫洰褰?
... mkdir ../../build/linux-arm-xscale/./generated/javavm/runtime
... mkdir ../../build/linux-arm-xscale/./generated/javavm/runtime/jit
... mkdir ../../build/linux-arm-xscale/./generated/classes
touch ../../build/linux-arm-xscale/./generated/empty.mk
CVM_HOST = i686-SuSE-linux
CVM_TARGET = linux-arm-xscale
SHELL = sh -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 = /usr/lib/jvm/java/bin/java
CVM_JAVAC = /usr/lib/jvm/java/bin/javac
CVM_JAVAH = /usr/lib/jvm/java/bin/javah
CVM_JAR = /usr/lib/jvm/java/bin/jar
TARGET_CC = /home/test/crosstool/gcc-4.1.0-glibc-2.3.2/arm-xscale-linux-gnu/bin/arm-xscale-linux-gnu-gcc
TARGET_CCC = /home/test/crosstool/gcc-4.1.0-glibc-2.3.2/arm-xscale-linux-gnu/bin/arm-xscale-linux-gnu-g++
TARGET_AS = /home/test/crosstool/gcc-4.1.0-glibc-2.3.2/arm-xscale-linux-gnu/bin/arm-xscale-linux-gnu-gcc
TARGET_LD = /home/test/crosstool/gcc-4.1.0-glibc-2.3.2/arm-xscale-linux-gnu/bin/arm-xscale-linux-gnu-gcc
TARGET_AR = /home/test/crosstool/gcc-4.1.0-glibc-2.3.2/arm-xscale-linux-gnu/bin/arm-xscale-linux-gnu-ar
TARGET_RANLIB = /home/test/crosstool/gcc-4.1.0-glibc-2.3.2/arm-xscale-linux-gnu/bin/arm-xscale-linux-gnu-ranlib
LINKFLAGS = -g -Wl,-export-dynamic
LINKLIBS = -lpthread -ldl
ASM_FLAGS = -c -fno-common -traditional
CCCFLAGS = -fno-rtti
CCFLAGS_SPEED = -c -fno-common -Wall -fno-strict-aliasing -mcpu=xscale -O4
CCFLAGS_SPACE = -c -fno-common -Wall -fno-strict-aliasing -mcpu=xscale -O2
CCFLAGS_LOOP = -c -fno-common -Wall -fno-strict-aliasing -mcpu=xscale -O4
CCFLAGS_FDLIB = -c -fno-common -Wall -fno-strict-aliasing -mcpu=xscale -O4
JAVAC_OPTIONS = -g:none -J-Xms32m -J-Xmx128m -encoding iso8859-1 -source 1.4 -target 1.4
CVM_DEFINES = -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=personal -DTARGET_CPU_FAMILY=arm -DCVM_JIT_COPY_CCMCODE_TO_CODECACHE -D_GNU_SOURCE -DCVM_IAI_OPT_ALL -DQT_THREAD_SUPPORT -Dqt
AWT_LIB_LIBS = -L/usr/lib/qt3/lib -lqt-mt
AWT_IMPLEMENTATION = peer_based
AWT_PEERSET = qt
QT_TARGET_DIR = /usr/lib/qt3
QT_TARGET_INCLUDE_DIR = /usr/lib/qt3/include
QT_TARGET_LIB_DIR = /usr/lib/qt3/lib
MOC = /usr/lib/qt3/bin/moc
QTEMBEDDED = false
QTOPIA = false
QT_NEED_THREAD_SUPPORT = true
QT_STATIC_LINK = false
... mkdir ../../build/linux-arm-xscale/./generated/flags
Flag AWT_IMPLEMENTATION changed. Cleaning up.
Flag AWT_PEERSET 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_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_DUAL_STACK changed. Cleaning up.
Flag CVM_DYNAMIC_LINKING changed. Cleaning up.
Flag CVM_FORCE_HARD_FLOAT changed. Cleaning up.
Flag CVM_GCCHOICE changed. Cleaning up.
Flag CVM_GCOV changed. Cleaning up.
Flag CVM_GPROF changed. Cleaning up.
Flag CVM_HOST changed. Cleaning up.
Flag CVM_IAI_OPT_ALL 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_CODE_SCHED 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_PROFILE changed. Cleaning up.
Flag CVM_JIT_REGISTER_LOCALS changed. Cleaning up.
Flag CVM_JIT_USE_FP_HARDWARE changed. Cleaning up.
Flag CVM_JVMDI changed. Cleaning up.
Flag CVM_JVMPI changed. Cleaning up.
Flag CVM_JVMPI_TRACE_INSTRUCTION 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_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.
... generating ../../build/linux-arm-xscale/./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=qt\n" \
"CVM_CCM_COLLECT_STATS=false\n" \
"CVM_CLASSLIB_JCOV=false\n" \
"CVM_CLASSLOADING=true\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_DUAL_STACK=false\n" \
"CVM_DYNAMIC_LINKING=true\n" \
"CVM_FORCE_HARD_FLOAT=false\n" \
"CVM_GCCHOICE=generational\n" \
"CVM_GCOV=false\n" \
"CVM_GPROF=false\n" \
"CVM_HOST=i686-SuSE-linux\n" \
"CVM_IAI_OPT_ALL=true\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_CODE_SCHED=false\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_PROFILE=false\n" \
"CVM_JIT_REGISTER_LOCALS=true\n" \
"CVM_JIT_USE_FP_HARDWARE=false\n" \
"CVM_JVMDI=false\n" \
"CVM_JVMPI=false\n" \
"CVM_JVMPI_TRACE_INSTRUCTION=false\n" \
"CVM_KNI=\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_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=false\n" \
"CVM_VERIFY_HEAP=false\n" \
"CVM_XRUN=false\n" \
"EXCLUDE_XLET_RUNNER=false\n" \
"J2ME_CLASSLIB=personal\n" \
"OPT_PKGS=\n" \

#define CVM_PROP_JAVA_VERSION "1.1.1-beta-b31"
#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.cgi"
#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 "CDC HI"
#define CVM_PROP_JAVA_VM_VERSION "1.1.1_01-b31"
#define CVM_PROP_SUN_MISC_PRODUCT "CDC HI/FP/PP"
#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 */

... mkdir ../../build/linux-arm-xscale/./obj
... mkdir ../../build/linux-arm-xscale/./bin
... mkdir ../../build/linux-arm-xscale/./generated/javavm/runtime/opcodeconsts
... mkdir ../../build/linux-arm-xscale/./generated/classes/sun/misc
... mkdir ../../build/linux-arm-xscale/./generated/jni
... mkdir ../../build/linux-arm-xscale/./generated/cni
... mkdir ../../build/linux-arm-xscale/./generated/offsets
... mkdir ../../build/linux-arm-xscale/./btclasses
... mkdir ../../build/linux-arm-xscale/./testclasses
... mkdir ../../build/linux-arm-xscale/./democlasses
... mkdir ../../build/linux-arm-xscale/./lib
... mkdir ../../build/linux-arm-xscale/./lib/security
... mkdir ../../build/linux-arm-xscale/./classes.tools
... mkdir ../../build/linux-arm-xscale/./personal_classes
... mkdir ../../build/linux-arm-xscale/./generated/javavm/include/jit
... mkdir ../../build/linux-arm-xscale/./jcs
... mkdir ../../build/linux-arm-xscale/./generated/personal/qt/moc
... mkdir ../../build/linux-arm-xscale/./generated/classes/java/util
... mkdir ../../build/linux-arm-xscale/./classes.jcc
Checking for build-time classes to compile ...
... generating BuildFlags.java
... ../../build/linux-arm-xscale/./generated/classes/sun/misc/BuildFlags.java
... generating sun.misc.DefaultLocaleList.java
... ../../build/linux-arm-xscale/./generated/classes/sun/misc/DefaultLocaleList.java
Compiling build-time classes...
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
... ../../build/linux-arm-xscale/./btclasses.zip
Checking for CDC HI/FP/PP classes to compile ...
... generating CurrencyData.java
Compiling CDC HI/FP/PP classes...
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
... ../../build/linux-arm-xscale/./lib/personal.jar
Checking for test classes to compile ...
Compiling test classes...
... ../../build/linux-arm-xscale/./testclasses.zip
Checking for demo classes to compile ...
Compiling demo classes...
... ../../build/linux-arm-xscale/./democlasses.jar
... generating jni class headers
... ../../build/linux-arm-xscale/./classes.jcc/GenOpcodes.class
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
... ../../src/share/javavm/include/opcodes.list
... ../../build/linux-arm-xscale/./classes.jcc/JavaCodeCompact.class
Note: ../../src/share/javavm/jcc/util/LinkerUtil.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
jcc romjava.c files
918 Total Classes
... of which 197 classes have static initializers
(9349/13538 quickening sites)
8618 method blocks
... of which 8618 blocks are writable
... for 852 classes
... of which 2929 have checkinit opcodes in the code
431538 bytes of Java code
1553 catch frames
3868 field blocks
936 inner class attribute entries
11289 constant pool entries
3721 Java strings
cc ../../build/linux-arm-xscale/./obj/audioDevice.o
../../src/linux/personal/native/sun/audio/audioDevice.c: In function 'Java_sun_audio_AudioDevice_audioWrite':
../../src/linux/personal/native/sun/audio/audioDevice.c:201: warning: pointer targets in passing argument 1 of 'ulawBufToLinearBuf' differ in signedness
../../src/linux/personal/native/sun/audio/audioDevice.c:229: warning: pointer targets in passing argument 1 of 'ulawBufToLinearBuf' differ in signedness
cc ../../build/linux-arm-xscale/./obj/embeddedframe.o
c++ ../../build/linux-arm-xscale/./obj/QtSync.o
c++ ../../build/linux-arm-xscale/./obj/QtORB.o
c++ ../../build/linux-arm-xscale/./obj/QpObject.o
c++ ../../build/linux-arm-xscale/./obj/QpWidget.o
c++ ../../build/linux-arm-xscale/./obj/QpWidgetFactory.o
c++ ../../build/linux-arm-xscale/./obj/QpFrame.o
c++ ../../build/linux-arm-xscale/./obj/QpMenuBar.o
c++ ../../build/linux-arm-xscale/./obj/QpPopupMenu.o
c++ ../../build/linux-arm-xscale/./obj/QpPushButton.o
c++ ../../build/linux-arm-xscale/./obj/QpComboBox.o
c++ ../../build/linux-arm-xscale/./obj/QpCheckBox.o
c++ ../../build/linux-arm-xscale/./obj/QpRadioButton.o
c++ ../../build/linux-arm-xscale/./obj/QpLabel.o
c++ ../../build/linux-arm-xscale/./obj/QpListBox.o
c++ ../../build/linux-arm-xscale/./obj/QpScrollView.o
c++ ../../build/linux-arm-xscale/./obj/QpScrollBar.o
c++ ../../build/linux-arm-xscale/./obj/QpLineEdit.o
c++ ../../build/linux-arm-xscale/./obj/QpFileDialog.o
c++ ../../build/linux-arm-xscale/./obj/QpFontManager.o
c++ ../../build/linux-arm-xscale/./obj/QpClipboard.o
c++ ../../build/linux-arm-xscale/./obj/QpRobot.o
c++ ../../build/linux-arm-xscale/./obj/QtApplication.o
c++ ../../build/linux-arm-xscale/./obj/awt.o
c++ ../../build/linux-arm-xscale/./obj/QtClipboard.o
moc ../../build/linux-arm-xscale/./generated/personal/qt/moc/QtClipboard_moc.cc
c++ ../../build/linux-arm-xscale/./obj/QtClipboard_moc.o
c++ ../../build/linux-arm-xscale/./obj/QtComponentPeer.o
c++ ../../build/linux-arm-xscale/./obj/QtToolkit.o
/usr/lib/qt3/include/qjpunicode.h:82: warning: 'class QJpUnicodeConv' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qpolygonscanner.h:48: warning: 'class QPolygonScanner' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:224: warning: 'class QXmlReader' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:407: warning: 'class QXmlContentHandler' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:424: warning: 'class QXmlErrorHandler' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:433: warning: 'class QXmlDTDHandler' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:441: warning: 'class QXmlEntityResolver' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:448: warning: 'class QXmlLexicalHandler' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:461: warning: 'class QXmlDeclHandler' has virtual functions but non-virtual destructor
c++ ../../build/linux-arm-xscale/./obj/QtDisposer.o
c++ ../../build/linux-arm-xscale/./obj/QtPanelPeer.o
c++ ../../build/linux-arm-xscale/./obj/QtFramePeer.o
/usr/lib/qt3/include/qjpunicode.h:82: warning: 'class QJpUnicodeConv' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qpolygonscanner.h:48: warning: 'class QPolygonScanner' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:224: warning: 'class QXmlReader' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:407: warning: 'class QXmlContentHandler' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:424: warning: 'class QXmlErrorHandler' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:433: warning: 'class QXmlDTDHandler' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:441: warning: 'class QXmlEntityResolver' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:448: warning: 'class QXmlLexicalHandler' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:461: warning: 'class QXmlDeclHandler' has virtual functions but non-virtual destructor
c++ ../../build/linux-arm-xscale/./obj/QtWindowPeer.o
/usr/lib/qt3/include/qjpunicode.h:82: warning: 'class QJpUnicodeConv' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qpolygonscanner.h:48: warning: 'class QPolygonScanner' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:224: warning: 'class QXmlReader' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:407: warning: 'class QXmlContentHandler' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:424: warning: 'class QXmlErrorHandler' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:433: warning: 'class QXmlDTDHandler' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:441: warning: 'class QXmlEntityResolver' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:448: warning: 'class QXmlLexicalHandler' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:461: warning: 'class QXmlDeclHandler' has virtual functions but non-virtual destructor
c++ ../../build/linux-arm-xscale/./obj/QtGraphics.o
c++ ../../build/linux-arm-xscale/./obj/KeyCodes.o
c++ ../../build/linux-arm-xscale/./obj/QtImageRepresentation.o
../../src/share/personal/native/awt/qt/QtImageRepresentation.cc:33:22: error: X11/Xlib.h: No such file or directory
/usr/lib/qt3/include/qjpunicode.h:82: warning: 'class QJpUnicodeConv' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qpolygonscanner.h:48: warning: 'class QPolygonScanner' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:224: warning: 'class QXmlReader' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:407: warning: 'class QXmlContentHandler' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:424: warning: 'class QXmlErrorHandler' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:433: warning: 'class QXmlDTDHandler' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:441: warning: 'class QXmlEntityResolver' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:448: warning: 'class QXmlLexicalHandler' has virtual functions but non-virtual destructor
/usr/lib/qt3/include/qxml.h:461: warning: 'class QXmlDeclHandler' has virtual functions but non-virtual destructor
../../src/share/personal/native/awt/qt/QtImageRepresentation.cc: In static member function 'static jint ImageRepresentation::defaultImageType()':
../../src/share/personal/native/awt/qt/QtImageRepresentation.cc:2048: error: 'Visual' was not declared in this scope
../../src/share/personal/native/awt/qt/QtImageRepresentation.cc:2048: error: 'visual' was not declared in this scope
../../src/share/personal/native/awt/qt/QtImageRepresentation.cc:2061: error: expected primary-expression before ')' token
../../src/share/personal/native/awt/qt/QtImageRepresentation.cc:2061: error: expected `;' before 'QPaintDevice'
../../src/share/personal/native/awt/qt/QtImageRepresentation.cc: In static member function 'static _jobject* ImageRepresentation::defaultIndexColorModel(JNIEnv*, jint, int)':
../../src/share/personal/native/awt/qt/QtImageRepresentation.cc:2116: error: 'XColor' was not declared in this scope
../../src/share/personal/native/awt/qt/QtImageRepresentation.cc:2116: error: 'carr' was not declared in this scope
../../src/share/personal/native/awt/qt/QtImageRepresentation.cc:2116: error: expected type-specifier before 'XColor'
../../src/share/personal/native/awt/qt/QtImageRepresentation.cc:2116: error: expected `;' before 'XColor'
../../src/share/personal/native/awt/qt/QtImageRepresentation.cc:2125: error: 'XQueryColors' was not declared in this scope
make: *** [../../build/linux-arm-xscale/./obj/QtImageRepresentation.o] 閿欒 1
test@SUSElinux:~/phoneme-advanced-mr1/build/linux-arm-xscale>

Thanks for your time.

Shu Wei

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hi Hinkmond Wong,
>
> I built personal profile on my home PC, it threw the same errors. The following messages are the terminal output:

Hi Wei,

As Chris also wrote, when you build Personal Profile for a Linux/ARM
device, you do not want to build with the Qt/X11 library found on your
desktop PC (/usr/lib/qt3). Instead you want to build using the special
Qt/Embedded library that is meant for your Linux/ARM device. They are 2
different Qt libraries.

The Qt/X11 library found in /usr/lib/qt3 is meant to be used for Qt/X11
on your desktop PC and is not the correct one for you to use. This is
because the /usr/lib/qt3 library is the wrong Qt library to use for
trying to build with your cross-compiling tool for linux-arm-xscale.

Instead you need to build with QTEMBEDDED=true to indicate you need the
Qt/Embedded settings for the build, and point to a correct Qt/Embedded
library that is meant for your Linux/ARM device.

So, the steps you need to do are:

1. Build a Qt/Embedded library for Linux/ARM by following the
instructions at the TWiki site:
http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEAdvancedPlatforms...

2. Make sure to relocate the result of step #1 to somewhere other than
/usr/lib/qt3/... since you do not want to confuse your new Linux/ARM
Qt/Embedded library with your host PC Qt/X11 library found in
/usr/lib/qt3. For example, relocate it to /home/qtembedded/lib

3. Using your new Linux/ARM Qt/Embedded library, build phoneME MR2 (or
MR1) by pointing QT_TARGET_DIR to it and set QTEMBEDDED=true (which
should be set by default, but you can make sure anyway).

Ex.
cd build/linux-arm-generic
make CVM_TARGET_TOOLS_PREFIX=arm-xscale-linux-gnu-
J2ME_CLASSLIB=personal QT_TARGET_DIR=/home/qtembedded/lib QTEMBEDDED=true

Hinkmond

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

cmsswei
Offline
Joined: 2007-09-27

Hi Hinkmond Wong,

I have built the personal profile on server before I did it on my home PC. It threw errors as well when I set the QTDIR to QT/Embedded directory. I missed the above words made you confused, sorry.

The teminal error output is shown as following:

jcc romjava.c files
918 Total Classes
... of which 197 classes have static initializers
(9349/13538 quickening sites)
8618 method blocks
... of which 8618 blocks are writable
... for 852 classes
... of which 2929 have checkinit opcodes in the code
431538 bytes of Java code
1553 catch frames
3868 field blocks
936 inner class attribute entries
11289 constant pool entries
3721 Java strings
cc ../../build/linux-arm-xscale/./obj/audioDevice.o
../../src/linux/personal/native/sun/audio/audioDevice.c: In function 'Java_sun_audio_AudioDevice_audioWrite':
../../src/linux/personal/native/sun/audio/audioDevice.c:201: warning: pointer targets in passing argument 1 of 'ulawBufToLinearBuf' differ in signedness
../../src/linux/personal/native/sun/audio/audioDevice.c:229: warning: pointer targets in passing argument 1 of 'ulawBufToLinearBuf' differ in signedness
cc ../../build/linux-arm-xscale/./obj/embeddedframe.o
c++ ../../build/linux-arm-xscale/./obj/QtSync.o
c++ ../../build/linux-arm-xscale/./obj/QtORB.o
In file included from ../../src/share/personal/native/awt/qt/wproxy/QtORB.cc:23:
../../src/share/personal/native/awt/qt/QtApplication.h:26:32: error: qpe/qpeapplication.h: No such file or directory
../../src/share/personal/native/awt/qt/QtApplication.h:41: error: expected class-name before '{' token
../../src/share/personal/native/awt/qt/QtApplication.h: In static member function 'static QtApplication* QtApplication::instance()':
../../src/share/personal/native/awt/qt/QtApplication.h:61: error: 'qApp' was not declared in this scope
../../src/share/personal/native/awt/qt/wproxy/QtORB.cc: In member function 'void QtORB::invoke(QpObject*, int, void*, bool, long int)':
../../src/share/personal/native/awt/qt/wproxy/QtORB.cc:177: error: 'qApp' was not declared in this scope
make: *** [../../build/linux-arm-xscale/./obj/QtORB.o] Error 1
test@sles10:~/phoneme/build/linux-arm-xscale>

Cheers,
Shu Wei

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hi Hinkmond Wong,
>
> I have built the personal profile on server before I did it on my home PC. It threw errors as well when I set the QTDIR to QT/Embedded directory. I missed the above words made you confused, sorry.
>
> The teminal error output is shown as following:
>
> jcc romjava.c files
> 918 Total Classes
> ... of which 197 classes have static initializers
> (9349/13538 quickening sites)
> 8618 method blocks
> ... of which 8618 blocks are writable
> ... for 852 classes
> ... of which 2929 have checkinit opcodes in the code
> 431538 bytes of Java code
> 1553 catch frames
> 3868 field blocks
> 936 inner class attribute entries
> 11289 constant pool entries
> 3721 Java strings
> cc ../../build/linux-arm-xscale/./obj/audioDevice.o
> ../../src/linux/personal/native/sun/audio/audioDevice.c: In function 'Java_sun_audio_AudioDevice_audioWrite':
> ../../src/linux/personal/native/sun/audio/audioDevice.c:201: warning: pointer targets in passing argument 1 of 'ulawBufToLinearBuf' differ in signedness
> ../../src/linux/personal/native/sun/audio/audioDevice.c:229: warning: pointer targets in passing argument 1 of 'ulawBufToLinearBuf' differ in signedness
> cc ../../build/linux-arm-xscale/./obj/embeddedframe.o
> c++ ../../build/linux-arm-xscale/./obj/QtSync.o
> c++ ../../build/linux-arm-xscale/./obj/QtORB.o
> In file included from ../../src/share/personal/native/awt/qt/wproxy/QtORB.cc:23:
> ../../src/share/personal/native/awt/qt/QtApplication.h:26:32: error: qpe/qpeapplication.h: No such file or directory
> ../../src/share/personal/native/awt/qt/QtApplication.h:41: error: expected class-name before '{' token
> ../../src/share/personal/native/awt/qt/QtApplication.h: In static member function 'static QtApplication* QtApplication::instance()':
> ../../src/share/personal/native/awt/qt/QtApplication.h:61: error: 'qApp' was not declared in this scope
> ../../src/share/personal/native/awt/qt/wproxy/QtORB.cc: In member function 'void QtORB::invoke(QpObject*, int, void*, bool, long int)':
> ../../src/share/personal/native/awt/qt/wproxy/QtORB.cc:177: error: 'qApp' was not declared in this scope
> make: *** [../../build/linux-arm-xscale/./obj/QtORB.o] Error 1
> test@sles10:~/phoneme/build/linux-arm-xscale>
>
>

Hi Wei,

Sorry, I should have also told you need QPE/Qtopia too.

Try also downloading and installing:

http://trolltech.com/developer/downloads/qtopia/qpe-ostp

Add the lib and include to your build and you should be able to pick up
the correct qpe files you are missing.

Hinkmond

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

cmsswei
Offline
Joined: 2007-09-27

Hi Hinkmond,

Thank you for your help. I installed Qtopia but still had problems:

... ../../src/share/javavm/include/opcodes.list
... ../../build/linux-arm-xscale/./classes.jcc/JavaCodeCompact.class
Note: ../../src/share/javavm/jcc/util/LinkerUtil.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
jcc romjava.c files
918 Total Classes
... of which 197 classes have static initializers
(9349/13538 quickening sites)
8618 method blocks
... of which 8618 blocks are writable
... for 852 classes
... of which 2929 have checkinit opcodes in the code
431538 bytes of Java code
1553 catch frames
3868 field blocks
936 inner class attribute entries
11289 constant pool entries
3721 Java strings
cc ../../build/linux-arm-xscale/./obj/audioDevice.o
cc1: bad value (xscale) for -mcpu= switch
make: *** [../../build/linux-arm-xscale/./obj/audioDevice.o] Error 1
[root@localhost linux-arm-xscale]#

this time I can't google any results with "-mcpu= switch", and i didn't find any results on my hard disk as well. I checked files liked defs.mk, it defined likes CC_ARCH_FLAGS = -mcpu=xscale -Wa,-mcpu=iwmmxt

any ideas?

Regards,
Shu Wei

cjplummer
Offline
Joined: 2006-10-16

Remove the -mcpu line from the GNUmakefile. A better choice would be to start with the linux-arm-generic build directory.

Chris

cmsswei
Offline
Joined: 2007-09-27

Thanks, Chris.

It works but still reports lacking of header files.

../share/rules.mk:357: ../../build/linux-arm-xscale/./generated/empty.mk: No such file or directory
... mkdir ../../build/linux-arm-xscale/./generated/javavm/runtime
... mkdir ../../build/linux-arm-xscale/./generated/javavm/runtime/jit
... mkdir ../../build/linux-arm-xscale/./generated/classes
touch ../../build/linux-arm-xscale/./generated/empty.mk
CVM_HOST = i686-redhat-linux
CVM_TARGET = linux-arm-xscale
SHELL = sh -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 = /usr/local/j2sdk1.4.2_16/bin/java
CVM_JAVAC = /usr/local/j2sdk1.4.2_16/bin/javac
CVM_JAVAH = /usr/local/j2sdk1.4.2_16/bin/javah
CVM_JAR = /usr/local/j2sdk1.4.2_16/bin/jar
TARGET_CC = /usr/local/arm/2.95.3/bin/arm-linux-gcc
TARGET_CCC = /usr/local/arm/2.95.3/bin/arm-linux-g++
TARGET_AS = /usr/local/arm/2.95.3/bin/arm-linux-gcc
TARGET_LD = /usr/local/arm/2.95.3/bin/arm-linux-gcc
TARGET_AR = /usr/local/arm/2.95.3/bin/arm-linux-ar
TARGET_RANLIB = /usr/local/arm/2.95.3/bin/arm-linux-ranlib
LINKFLAGS = -g -Wl,-export-dynamic
LINKLIBS = -lpthread -ldl
ASM_FLAGS = -c -fno-common -traditional
CCCFLAGS = -fno-rtti
CCFLAGS_SPEED = -c -fno-common -Wall -fno-strict-aliasing -O4
CCFLAGS_SPACE = -c -fno-common -Wall -fno-strict-aliasing -O2
CCFLAGS_LOOP = -c -fno-common -Wall -fno-strict-aliasing -O4
CCFLAGS_FDLIB = -c -fno-common -Wall -fno-strict-aliasing -O4
JAVAC_OPTIONS = -g:none -J-Xms32m -J-Xmx128m -encoding iso8859-1 -source 1.4 -target 1.4
CVM_DEFINES = -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=personal -DTARGET_CPU_FAMILY=arm -DCVM_JIT_COPY_CCMCODE_TO_CODECACHE -D_GNU_SOURCE -DCVM_IAI_OPT_ALL -DQWS -DQTOPIA -Dqt
AWT_LIB_LIBS = -L/usr/local/qtopia-2.1.1-target/lib -lqte -lqpe
AWT_IMPLEMENTATION = peer_based
AWT_PEERSET = qt
QT_TARGET_DIR = /usr/local/qtopia-2.1.1-target
QT_TARGET_INCLUDE_DIR = /usr/local/qtopia-2.1.1-target/include
QT_TARGET_LIB_DIR = /usr/local/qtopia-2.1.1-target/lib
MOC = /usr/local/qt-2.3.10-target/bin/moc
QTEMBEDDED = true
QTOPIA = true
QT_NEED_THREAD_SUPPORT = false
QT_STATIC_LINK =
... mkdir ../../build/linux-arm-xscale/./generated/flags
Flag AWT_IMPLEMENTATION changed. Cleaning up.
Flag AWT_PEERSET 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_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_DUAL_STACK changed. Cleaning up.
Flag CVM_DYNAMIC_LINKING changed. Cleaning up.
Flag CVM_FORCE_HARD_FLOAT changed. Cleaning up.
Flag CVM_GCCHOICE changed. Cleaning up.
Flag CVM_GCOV changed. Cleaning up.
Flag CVM_GPROF changed. Cleaning up.
Flag CVM_HOST changed. Cleaning up.
Flag CVM_IAI_OPT_ALL 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_CODE_SCHED 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_PROFILE changed. Cleaning up.
Flag CVM_JIT_REGISTER_LOCALS changed. Cleaning up.
Flag CVM_JIT_USE_FP_HARDWARE changed. Cleaning up.
Flag CVM_JVMDI changed. Cleaning up.
Flag CVM_JVMPI changed. Cleaning up.
Flag CVM_JVMPI_TRACE_INSTRUCTION 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_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.
... generating ../../build/linux-arm-xscale/./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=qt\n" \
"CVM_CCM_COLLECT_STATS=false\n" \
"CVM_CLASSLIB_JCOV=false\n" \
"CVM_CLASSLOADING=true\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_DUAL_STACK=false\n" \
"CVM_DYNAMIC_LINKING=true\n" \
"CVM_FORCE_HARD_FLOAT=false\n" \
"CVM_GCCHOICE=generational\n" \
"CVM_GCOV=false\n" \
"CVM_GPROF=false\n" \
"CVM_HOST=i686-redhat-linux\n" \
"CVM_IAI_OPT_ALL=true\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_CODE_SCHED=false\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_PROFILE=false\n" \
"CVM_JIT_REGISTER_LOCALS=true\n" \
"CVM_JIT_USE_FP_HARDWARE=false\n" \
"CVM_JVMDI=false\n" \
"CVM_JVMPI=false\n" \
"CVM_JVMPI_TRACE_INSTRUCTION=false\n" \
"CVM_KNI=\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_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=false\n" \
"CVM_VERIFY_HEAP=false\n" \
"CVM_XRUN=false\n" \
"EXCLUDE_XLET_RUNNER=false\n" \
"J2ME_CLASSLIB=personal\n" \
"OPT_PKGS=\n" \

#define CVM_PROP_JAVA_VERSION "1.1.1-beta-b31"
#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.cgi"
#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 "CDC HI"
#define CVM_PROP_JAVA_VM_VERSION "1.1.1_01-b31"
#define CVM_PROP_SUN_MISC_PRODUCT "CDC HI/FP/PP"
#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 */

... mkdir ../../build/linux-arm-xscale/./obj
... mkdir ../../build/linux-arm-xscale/./bin
... mkdir ../../build/linux-arm-xscale/./generated/javavm/runtime/opcodeconsts
... mkdir ../../build/linux-arm-xscale/./generated/classes/sun/misc
... mkdir ../../build/linux-arm-xscale/./generated/jni
... mkdir ../../build/linux-arm-xscale/./generated/cni
... mkdir ../../build/linux-arm-xscale/./generated/offsets
... mkdir ../../build/linux-arm-xscale/./btclasses
... mkdir ../../build/linux-arm-xscale/./testclasses
... mkdir ../../build/linux-arm-xscale/./democlasses
... mkdir ../../build/linux-arm-xscale/./lib
... mkdir ../../build/linux-arm-xscale/./lib/security
... mkdir ../../build/linux-arm-xscale/./classes.tools
... mkdir ../../build/linux-arm-xscale/./personal_classes
... mkdir ../../build/linux-arm-xscale/./generated/javavm/include/jit
... mkdir ../../build/linux-arm-xscale/./jcs
... mkdir ../../build/linux-arm-xscale/./generated/personal/qt/moc
... mkdir ../../build/linux-arm-xscale/./generated/classes/java/util
... mkdir ../../build/linux-arm-xscale/./classes.jcc
Checking for build-time classes to compile ...
... generating BuildFlags.java
... ../../build/linux-arm-xscale/./generated/classes/sun/misc/BuildFlags.java
... generating sun.misc.DefaultLocaleList.java
... ../../build/linux-arm-xscale/./generated/classes/sun/misc/DefaultLocaleList.java
Compiling build-time classes...
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
... ../../build/linux-arm-xscale/./btclasses.zip
Checking for CDC HI/FP/PP classes to compile ...
... generating CurrencyData.java
Compiling CDC HI/FP/PP classes...
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
... ../../build/linux-arm-xscale/./lib/personal.jar
Checking for test classes to compile ...
Compiling test classes...
... ../../build/linux-arm-xscale/./testclasses.zip
Checking for demo classes to compile ...
Compiling demo classes...
... ../../build/linux-arm-xscale/./democlasses.jar
... generating jni class headers
... ../../build/linux-arm-xscale/./classes.jcc/GenOpcodes.class
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
... ../../src/share/javavm/include/opcodes.list
... ../../build/linux-arm-xscale/./classes.jcc/JavaCodeCompact.class
Note: ../../src/share/javavm/jcc/util/LinkerUtil.java uses or overrides a deprecated API.
Note: Recompile with -deprecation for details.
jcc romjava.c files
918 Total Classes
... of which 197 classes have static initializers
(9349/13538 quickening sites)
8618 method blocks
... of which 8618 blocks are writable
... for 852 classes
... of which 2929 have checkinit opcodes in the code
431538 bytes of Java code
1553 catch frames
3868 field blocks
936 inner class attribute entries
11289 constant pool entries
3721 Java strings
cc ../../build/linux-arm-xscale/./obj/audioDevice.o
cc ../../build/linux-arm-xscale/./obj/embeddedframe.o
c++ ../../build/linux-arm-xscale/./obj/QtSync.o
c++ ../../build/linux-arm-xscale/./obj/QtORB.o
In file included from ../../src/share/personal/native/awt/qt/wproxy/QtORB.cc:22:
../../src/share/personal/native/awt/qt/wproxy/QtORB.h:25: qobject.h: No such file or directory
../../src/share/personal/native/awt/qt/wproxy/QtORB.h:26: qevent.h: No such file or directory
../../src/share/personal/native/awt/qt/wproxy/QtORB.h:27: qptrdict.h: No such file or directory
In file included from ../../src/share/personal/native/awt/qt/wproxy/QtORB.h:28,
from ../../src/share/personal/native/awt/qt/wproxy/QtORB.cc:22:
../../src/share/personal/native/awt/qt/QtEvent.h:25: qevent.h: No such file or directory
In file included from ../../src/share/personal/native/awt/qt/wproxy/QtORB.cc:22:
../../src/share/personal/native/awt/qt/wproxy/QtORB.h:37: qwidget.h: No such file or directory
In file included from /usr/local/qtopia-2.1.1-target/include/qtopia/qpeglobal.h:1,
from /usr/local/qtopia-2.1.1-host/src/libraries/qtopia/qpeapplication.h:38,
from /usr/local/qtopia-2.1.1-target/include/qpe/qpeapplication.h:1,
from ../../src/share/personal/native/awt/qt/QtApplication.h:26,
from ../../src/share/personal/native/awt/qt/wproxy/QtORB.cc:23:
/usr/local/qtopia-2.1.1-host/src/libraries/qtopia/qpeglobal.h:39: qglobal.h: No such file or directory
In file included from /usr/local/qtopia-2.1.1-target/include/qpe/qpeapplication.h:1,
from ../../src/share/personal/native/awt/qt/QtApplication.h:26,
from ../../src/share/personal/native/awt/qt/wproxy/QtORB.cc:23:
/usr/local/qtopia-2.1.1-host/src/libraries/qtopia/qpeapplication.h:39: qapplication.h: No such file or directory
/usr/local/qtopia-2.1.1-host/src/libraries/qtopia/qpeapplication.h:40: qdialog.h: No such file or directory
In file included from /usr/local/qtopia-2.1.1-target/include/qtopia/timestring.h:1,
from /usr/local/qtopia-2.1.1-host/src/libraries/qtopia/qpeapplication.h:41,
from /usr/local/qtopia-2.1.1-target/include/qpe/qpeapplication.h:1,
from ../../src/share/personal/native/awt/qt/QtApplication.h:26,
from ../../src/share/personal/native/awt/qt/wproxy/QtORB.cc:23:
/usr/local/qtopia-2.1.1-host/src/libraries/qtopia/timestring.h:38: qdatetime.h: No such file or directory
/usr/local/qtopia-2.1.1-host/src/libraries/qtopia/timestring.h:39: qstring.h: No such file or directory
/usr/local/qtopia-2.1.1-host/src/libraries/qtopia/timestring.h:40: qarray.h: No such file or directory
In file included from /usr/local/qtopia-2.1.1-target/include/qpe/qpeapplication.h:1,
from ../../src/share/personal/native/awt/qt/QtApplication.h:26,
from ../../src/share/personal/native/awt/qt/wproxy/QtORB.cc:23:
/usr/local/qtopia-2.1.1-host/src/libraries/qtopia/qpeapplication.h:199: qmap.h: No such file or directory
In file included from /usr/local/qtopia-2.1.1-target/include/qtopia/applicationinterface.h:1,
from /usr/local/qtopia-2.1.1-host/src/libraries/qtopia/qpeapplication.h:200,
from /usr/local/qtopia-2.1.1-target/include/qpe/qpeapplication.h:1,
from ../../src/share/personal/native/awt/qt/QtApplication.h:26,
from ../../src/share/personal/native/awt/qt/wproxy/QtORB.cc:23:
/usr/local/qtopia-2.1.1-host/src/libraries/qtopia/applicationinterface.h:38: qstringlist.h: No such file or directory
In file included from /usr/local/qtopia-2.1.1-target/include/qtopia/qcom.h:1,
from /usr/local/qtopia-2.1.1-host/src/libraries/qtopia/applicationinterface.h:39,
from /usr/local/qtopia-2.1.1-target/include/qtopia/applicationinterface.h:1,
from /usr/local/qtopia-2.1.1-host/src/libraries/qtopia/qpeapplication.h:200,
from /usr/local/qtopia-2.1.1-target/include/qpe/qpeapplication.h:1,
from ../../src/share/personal/native/awt/qt/QtApplication.h:26,
from ../../src/share/personal/native/awt/qt/wproxy/QtORB.cc:23:
/usr/local/qtopia-2.1.1-host/src/libraries/qtopia/qcom.h:36: qnamespace.h: No such file or directory
In file included from /usr/local/qtopia-2.1.1-target/include/qtopia/qcom.h:1,
from /usr/local/qtopia-2.1.1-host/src/libraries/qtopia/applicationinterface.h:39,
from /usr/local/qtopia-2.1.1-target/include/qtopia/applicationinterface.h:1,
from /usr/local/qtopia-2.1.1-host/src/libraries/qtopia/qpeapplication.h:200,
from /usr/local/qtopia-2.1.1-target/include/qpe/qpeapplication.h:1,
from ../../src/share/personal/native/awt/qt/QtApplication.h:26,
from ../../src/share/personal/native/awt/qt/wproxy/QtORB.cc:23:
/usr/local/qtopia-2.1.1-host/src/libraries/qtopia/qcom.h:44: qstringlist.h: No such file or directory
In file included from /usr/local/qtopia-2.1.1-target/include/qtopia/quuid.h:1,
from /usr/local/qtopia-2.1.1-host/src/libraries/qtopia/qcom.h:48,
from /usr/local/qtopia-2.1.1-target/include/qtopia/qcom.h:1,
from /usr/local/qtopia-2.1.1-host/src/libraries/qtopia/applicationinterface.h:39,
from /usr/local/qtopia-2.1.1-target/include/qtopia/applicationinterface.h:1,
from /usr/local/qtopia-2.1.1-host/src/libraries/qtopia/qpeapplication.h:200,
from /usr/local/qtopia-2.1.1-target/include/qpe/qpeapplication.h:1,
from ../../src/share/personal/native/awt/qt/QtApplication.h:26,
from ../../src/share/personal/native/awt/qt/wproxy/QtORB.cc:23:
/usr/local/qtopia-2.1.1-host/src/libraries/qtopia/quuid.h:46: qstring.h: No such file or directory
In file included from /usr/local/qtopia-2.1.1-target/include/qpe/qpeapplication.h:1,
from ../../src/share/personal/native/awt/qt/QtApplication.h:26,
from ../../src/share/personal/native/awt/qt/wproxy/QtORB.cc:23:
/usr/local/qtopia-2.1.1-host/src/libraries/qtopia/qpeapplication.h:201: qmetaobject.h: No such file or directory
In file included from ../../src/share/personal/native/awt/qt/QtApplication.h:33,
from ../../src/share/personal/native/awt/qt/wproxy/QtORB.cc:23:
../../src/share/personal/native/awt/qt/wproxy/QpWidget.h:25: qwidget.h: No such file or directory
In file included from ../../src/share/personal/native/awt/qt/wproxy/QpWidget.h:26,
from ../../src/share/personal/native/awt/qt/QtApplication.h:33,
from ../../src/share/personal/native/awt/qt/wproxy/QtORB.cc:23:
../../src/share/personal/native/awt/qt/wproxy/QpObject.h:25: qevent.h: No such file or directory
../../src/share/personal/native/awt/qt/wproxy/QpObject.h:26: qobject.h: No such file or directory
make: *** [../../build/linux-arm-xscale/./obj/QtORB.o] Error 1
[root@localhost linux-arm-xscale]#

I searched the qobject.h, there are multiple files matched, but only two of them are in the qtopia-2.1.1-target directory. Should I copy the head files into phoneme's folder? Hinkmond said : Add the lib and include to your build and you should be able to pick up the correct qpe files you are missing. I didn't get what he means. Did you get it?

Regards,
Shu Wei

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Thanks, Chris.
>
> It works but still reports lacking of header files.
>
>

Hi Wei,

Try changing this:

make ... J2ME_CLASSLIB=personal ...

to this:

make ... J2ME_CLASSLIB=foundation ...

with all the other existing changes you already did.

Hinkmond

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