Skip to main content

who can build phonme me advanced for win32-x86?

4 replies [Last post]
afeiwang
Offline
Joined: 2008-11-05

I can build cvm(foundation) for win32-x86-vc8 through Cygwin,but when I build PBP for win32-x86-vc8,it need QT.what shall I do?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tanax
Offline
Joined: 2007-10-24

Hi, i'm trying build cvm-foundation for win32-x86-vc8, but i can't. Can you explain me how have you done it?.

Thanks!

afeiwang
Offline
Joined: 2008-11-05

and this is error log:

touch ../../build/win32-x86-vc8/./generated/empty.mk
MAKEFLAGS = CVM_COMPILER_INCOMPATIBLE=false J2ME_CLASSLIB=basis JDK_HOME=d:/java/jdk1.6.0
CVM_HOST = i686-cygwin-win32
CVM_TARGET = win32-x86-vc8
SHELL = bash
HOST_CC =
HOST_CCC =
ZIP =
CVM_JAVA = d:/java/jdk1.6.0/bin/java
CVM_JAVAC = d:/java/jdk1.6.0/bin/javac
CVM_JAVAH = d:/java/jdk1.6.0/bin/javah
CVM_JAR = d:/java/jdk1.6.0/bin/jar
TARGET_CC =
TARGET_CCC =
TARGET_AS =
TARGET_LD =
TARGET_AR =
TARGET_RANLIB =
LINKFLAGS = /implib:./bin/cvmi.lib /nologo /map /dll /incremental:yes /export:jio_snprintf /export:CVMexpandStack /export:CVMtimeMillis /export:CVMIDprivate_allocateLocalRootUnsafe /export:CVMglobals /export:CVMsystemPanic /export:CVMcsRendezvous /export:CVMconsolePrintf
LINKLIBS = advapi32.lib kernel32.lib user32.lib wininet.lib ws2_32.lib
ASM_FLAGS = -c
CCCFLAGS =
CCFLAGS_SPEED = /nologo /c /W2 /MD /O2 /Ob2 /Ot -DNDEBUG
CCFLAGS_SPACE = /nologo /c /W2 /MD /O1 /Ob1 -DNDEBUG
CCFLAGS_LOOP = /nologo /c /W2 /MD /O2 /Ob2 /Ot -DNDEBUG
CCFLAGS_FDLIB = /nologo /c /W2 /MD -DNDEBUG /Od
JAVAC_OPTIONS = -g:none -J-Xms32m -J-Xmx128m -encoding iso8859-1 -source 1.4 -target 1.4
CVM_DEFINES = -D_i386_ -D_386 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DCVM_OPTIMIZED -DCVM_DEBUG_STACKTRACES -DNDEBUG -DCVM_CLASSLOADING -DCVM_SERIALIZATION -DCVM_REFLECT -DCVM_DYNAMIC_LINKING -DCVM_TIMESTAMPING -DJ2ME_CLASSLIB=basis -DTARGET_CPU_FAMILY=x86 -DHAVE_64_BIT_IO -DNDEBUG -D_X86_ -Dx86 -DWIN32_LEAN_AND_MEAN -DUNICODE -D_UNICODE -D_WIN32_WINNT=0x0400 -DWIN32 -DCANNOT_COPY_64_AS_DOUBLE -DQT_THREAD_SUPPORT
host uname = CYGWIN_NT-5.1 smilewang 1.5.25(0.156/4/2) 2008-03-05 19:27 i686 Cygwin
TARGET_CC version =
HOST_CC version = 3.4.4 i686-pc-cygwin
CVM_JAVA version = java version 1.6.0
TOOLS_DIR = /cygdrive/d/java/phoneme/tools
SDK_DIR = ls: cannot access : No such file or directory
VC_PATH = /cygdrive/d/Program Files/Microsoft Visual Studio 8/VC
PLATFORM_SDK_DIR = d:/Program Files/Microsoft Platform SDK for Windows XP SP2
PLATFORM_TOOLS_PATH = /cygdrive/d/Program Files/Microsoft Visual Studio 8/VC/bin
COMMON_TOOLS_PATH = /cygdrive/d/Program Files/Microsoft Platform SDK for Windows XP SP2/Bin
AWT_LIB_LIBS = -L/usr/lib -lqt-mt -lstdc++ -lstdc++
AWT_IMPLEMENTATION = qt
QT_TARGET_DIR =
QT_TARGET_INCLUDE_DIR = /usr/include
QT_TARGET_LIB_DIR = /usr/lib
QTEMBEDDED = false
QTOPIA = false
QT_NEED_THREAD_SUPPORT = true
QT_KEYPAD_MODE =
QT_STATIC_LINK = false
updating ../../build/win32-x86-vc8/./generated/build_defs.mk ...
Checking for build-time classes to compile ...
Checking for phoneME Advanced classes to compile ...
Checking for test classes to compile ...
Checking for demo classes to compile ...
c++ ../../src/share/basis/native/awt/qt/QtFontMetrics.cpp
QtFontMetrics.cpp
d:/cygwin/usr/include\sys/_types.h(15) : error C2144: 语法错误 : “__int64”的前面应有“;”
d:/cygwin/usr/include\sys/_types.h(15) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:/cygwin/usr/include\sys/_types.h(34) : error C4980: “__value”: 使用此关键字需要 /clr:oldSyntax 命令行选项
d:/cygwin/usr/include\sys/_types.h(34) : error C2059: 语法错误 : “__value”
d:/cygwin/usr/include\sys/reent.h(607) : error C2144: 语法错误 : “unsigned __int64”的前面应有“;”
d:/cygwin/usr/include\sys/reent.h(607) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
d:/cygwin/usr/include\stdlib.h(62) : warning C4392: “int abs(void)”: 不正确的内部函数参数个数,应为“1”个参数
d:/cygwin/usr/include\stdlib.h(63) : error C2733: 不允许重载函数“atexit”的第二个 C 链接
d:/cygwin/usr/include\stdlib.h(63) : 参见“atexit”的声明
d:/cygwin/usr/include\stdlib.h(85) : warning C4392: “long labs(void)”: 不正确的内部函数参数个数,应为“1”个参数
d:/cygwin/usr/include\jni.h(17) : fatal error C1083: 无法打开包括文件:“gcj/libgcj-config.h”: No such file or directory

tanax
Offline
Joined: 2007-10-24

Hi, again. Finally I build a cvm - foundation, now I trying to build cvm-basis, I see in your log that you don't set the path (value) in SDK_DIR, TOOLS_DIR and you must set the path where are installed qt in QT_TARGET_DIR.

When I compile the part of my error log are:

c++ /phoneme_b98/cdc/src/share/basis/native/awt/qt/QtFontMetrics.cpp
QtFontMetrics.cpp

c:\phoneme_b98\cdc\src\share\basis\native\awt\qt\awt.h(32) : fatal error C1083: Cannot open include file: 'qt.h': No such file or directory

make: *** [obj/QtFontMetrics.o] Error 2

First it goes to the directory [b]c:\phoneme_b98\....\.awt.h [/b] in line 32 it has an include, #include "qt.h", but in this directory doesn't exists this file. The qt.h file are in /usr/include/qt3/.

I set QT_TARGET_DIR=/usr/include/qt3

Somebody can help me? Thanks

cjplummer
Offline
Joined: 2006-10-16

Can you give me the full path to qt.h.

Chris