Help building under Windows7 64-bit

cowwoc cowwoc at bbs.darktech.org
Mon Jun 7 18:58:57 UTC 2010



Andrew John Hughes wrote:
> 
> I've never built on Windows, nor would I ever want to.  But at a
> guess, your problem here is that you have spaces in your path to ant.
> Move it to something like C:\ant and you'll probably get further.
> 

You are right, but I can't figure out why. Here is the script I run right
before "make sanity":

------------------------
#!/bin/sh

# "External" bits (outside of OpenJDK path structure)
#
export ALT_BOOTDIR=$(cygpath -a -m -s "C:/Program Files/Java/jdk1.7.0")
export ANT_HOME=$(cygpath -a -m -s "C:/Program Files/apache-ant-1.8.0")
echo ${ANT_HOME}
export FINDBUGS_HOME=C:/Users/Gili/Documents/findbugs-1.3.9
export ALT_DEPLOY_MSSDK=$(cygpath -a -m -s "C:/Program Files/Microsoft
SDKs/Windows/v7.1")

# OpenJDK flag (to make FreeType check pass)
#
export OPENJDK=true

export OPENJDK_HOME=C:/Users/Gili/Documents/jdk7
openjdkpath=$(cygpath "$OPENJDK_HOME")

# OpenJDK-related bits
# (ALT_JDK_IMPORT_PATH fixes a corba bug; remove it later)
#
export ALT_JDK_IMPORT_PATH=$(cygpath -a -m -s "C:/Program
Files/Java/jdk1.7.0")
export ALT_BINARY_PLUGS_PATH=$OPENJDK_HOME/openjdk-binary-plugs
export ALT_FREETYPE_LIB_PATH=$(cygpath -a -m -s "C:/Program Files
(x86)/GnuWin32/lib")
export ALT_FREETYPE_HEADERS_PATH=$(cygpath -a -m -s "C:/Program Files
(x86)/GnuWin32/include")
unset JAVA_HOME
. $openjdkpath/jdk7/jdk/make/jdk_generic_profile.sh

# Need GNU make in front of Cygwin's; this is the only practical way to do
it
#
export PATH=$openjdkpath/bin:$PATH

# Let people know this is an OpenJDK-savvy prompt
#
export
PS1='OpenJDK:\[\e]0;\w\a\]\[\e[32m\]\u@${COMPUTERNAME}:\[\e[33m\]\w\[\e[0m\]\n\$
'
------------------------

echo ${ANT_HOME} is printing out C:/PROGRA~1/APACHE~1.0 yet if you look at
the output log of "make sanity" it sees a different value. Where could this
be coming from? I am new to cygwin/bash so perhaps I am doing something
wrong in the above script.

Gili
-- 
View this message in context: http://old.nabble.com/Help-building-under-Windows7-64-bit-tp28808920p28809276.html
Sent from the OpenJDK Build Infrastructure mailing list archive at Nabble.com.




More information about the build-dev mailing list