Skip to main content

Question about phoneME Advanced with personal profile and gtk

2 replies [Last post]
lanshouzhen
Offline
Joined: 2010-02-21
Points: 0

Hi All:

i am trying to bulid phoneme advanced with personal profile and gtk,but i get the following error:

sh: /usr/tools/lib/linux-arm-generic/usr/bin/gtk-config: No such file or directory
make[1]: Entering directory `/home/lanshouzhen/java/phoneme_advanced-mr2-dev-b97/cdc/build/linux-arm-generic'
/home/lanshouzhen/java/phoneme_advanced-mr2-dev-b97/cdc/build/linux-arm-generic/./personal_classes/java/awt/Button.class dependency
See rules_cdc.mk
make[1]: *** [/home/lanshouzhen/java/phoneme_advanced-mr2-dev-b97/cdc/build/linux-arm-generic/./personal_classes/java/awt/Button.cl
make[1]: Leaving directory `/home/lanshouzhen/java/phoneme_advanced-mr2-dev-b97/cdc/build/linux-arm-generic'
make: *** [.move.extra.btclasses] Error 2

is it a problem with gtk? Is there some way to build phoneme advence with personal profile and gtk?
i am quite puzzled so any help will be greatly appreciated.

svn checkout phoneme_advanced-mr2-dev-b97
host:i686-redhat-linux
target:arm-linux

bulid command :

cd phoneme_advanced-mr2-dev-b97/cdc/build/linux-arm-generic and make JDK_HOME=/usr/local/j2sdk1.4.2 J2ME_CLASSLIB=personal AWT_IMPLEMENTATION=gtk CVM_DEBUG=true

part print information:

sh: /usr/tools/lib/linux-arm-generic/usr/bin/gtk-config: No such file or directory
... mkdir /home/lanshouzhen/java/phoneme_advanced-mr2-dev-b97/cdc/build/linux-arm-generic/./generated/javavm/runtime
... mkdir /home/lanshouzhen/java/phoneme_advanced-mr2-dev-b97/cdc/build/linux-arm-generic/./generated/javavm/runtime/jit
MAKEFLAGS = AWT_IMPLEMENTATION=gtk J2ME_CLASSLIB=personal JDK_HOME=/usr/local/j2sdk1.4.2
CVM_HOST = i686-redhat-linux
CVM_TARGET = linux-arm-generic
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/bin/java
CVM_JAVAC = /usr/local/j2sdk1.4.2/bin/javac
CVM_JAVAH = /usr/local/j2sdk1.4.2/bin/javah
CVM_JAR = /usr/local/j2sdk1.4.2/bin/jar
TARGET_CC = /opt/hisi-linux/x86-arm/gcc-3.4.3-uClibc-0.9.28/usr/bin/arm-hismall-linux-gcc
TARGET_CCC = /opt/hisi-linux/x86-arm/gcc-3.4.3-uClibc-0.9.28/usr/bin/arm-hismall-linux-g++
TARGET_AS = /opt/hisi-linux/x86-arm/gcc-3.4.3-uClibc-0.9.28/usr/bin/arm-hismall-linux-gcc
TARGET_LD = /opt/hisi-linux/x86-arm/gcc-3.4.3-uClibc-0.9.28/usr/bin/arm-hismall-linux-gcc
TARGET_AR = /opt/hisi-linux/x86-arm/gcc-3.4.3-uClibc-0.9.28/usr/bin/arm-hismall-linux-ar
TARGET_RANLIB = /opt/hisi-linux/x86-arm/gcc-3.4.3-uClibc-0.9.28/usr/bin/arm-hismall-linux-ranlib
LINKFLAGS = -g -Wl,-export-dynamic
LINKLIBS = -lpthread -ldl
ASM_FLAGS = -c -fno-common -traditional
CCCFLAGS = -fno-rtti
................
host uname = Linux localhost.localdomain 2.6.18-53.el5xen #1 SMP Wed Oct 10 17:06:12 EDT 2007 i686 i686 i386 GNU/Linux
TARGET_CC version = 3.4.3 arm-hisi-linux
HOST_CC version = 4.1.2 i386-redhat-linux
CVM_JAVA version = java version 1.4.2-03
TOOLS_DIR = /home/lanshouzhen/java/phoneme_advanced-mr2-dev-b97/tools
sh: /usr/tools/lib/linux-arm-generic/usr/bin/gtk-config: No such file or directory
AWT_LIB_LIBS = -lgthread
AWT_IMPLEMENTATION = gtk
which: no gtk-config in (/usr/tools/lib/linux-arm-generic/usr/bin)
GTK_CONFIG =
... mkdir /home/lanshouzhen/java/phoneme_advanced-mr2-dev-b97/cdc/build/linux-arm-generic/./generated/flags
.........
........
make[1]: Entering directory `/home/lanshouzhen/java/phoneme_advanced/cdc/build/linux-arm-generic'
make[1]: Leaving directory `/home/lanshouzhen/java/phoneme_advanced/cdc/build/linux-arm-generic'
Compiling build-time classes...
Note: Some input files use or override a deprecated API.
Note: Recompile with -deprecation for details.
... /home/lanshouzhen/java/phoneme_advanced/cdc/build/linux-arm-generic/btclasses.zip
Checking for phoneME Advanced classes to compile ...
sh: /usr/tools/lib/linux-arm-generic/usr/bin/gtk-config: No such file or directory
make[1]: Entering directory `/home/lanshouzhen/java/phoneme_advanced-mr2-dev-b97/cdc/build/linux-arm-generic'
/home/lanshouzhen/java/phoneme_advanced-mr2-dev-b97/cdc/build/linux-arm-generic/./personal_classes/java/awt/Button.class dependency missing!
See rules_cdc.mk
make[1]: *** [/home/lanshouzhen/java/phoneme_advanced-mr2-dev-b97/cdc/build/linux-arm-generic/./personal_classes/java/awt/Button.class] Error 1
make[1]: Leaving directory `/home/lanshouzhen/java/phoneme_advanced-mr2-dev-b97/cdc/build/linux-arm-generic'
make: *** [.move.extra.btclasses] Error 2

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
lanshouzhen
Offline
Joined: 2010-02-21
Points: 0

after changing build commad:
make JDK_HOME=/usr/local/j2sdk1.4.2 J2ME_CLASSLIB=personal AWT_IMPLEMENTATION=peer_based AWT_PEERSET=gtk

the error above no longer exits ,but I still get compiling errors,
same as posted by yuzhoumao in http://forums.java.net/jive/thread.jspa?threadID=27372

hope that will be helpfull

lanshouzhen
Offline
Joined: 2010-02-21
Points: 0

As in http://forums.java.net/jive/thread.jspa?threadID=27372
after checking out the branch of Hinkmond Wong.
svn co https://phoneme.dev.java.net/svn/phoneme/components/cdc/branches/hinkmon... cdc

and make JDK_HOME=/usr/local/j2sdk1.4.2 or make JDK_HOME=/usr/local/j2sdk1.4.2 J2ME_CLASSLIB=personal AWT_IMPLEMENTATION=peer_based AWT_PEERSET=gtk

i still get an error as follow:

Checking for build-time classes to compile ...
Compiling build-time classes...
../../src/share/javavm/classes/java/lang/System.java:966: cannot resolve symbol
symbol : method listComponents ()
location: class com.sun.cdc.config.PackageManager
String[] mainClasses = PackageManager.listComponents();
^
1 error
make: *** [.compile.btclasses] Error 1

Could SOMEONE give some help?

thanks
regards

zhen