Skip to content
This repository has been archived by the owner on Oct 22, 2020. It is now read-only.

Build Eclipse OpenJ9 on Windows #18

Closed
mleipe opened this issue Sep 18, 2017 · 13 comments
Closed

Build Eclipse OpenJ9 on Windows #18

mleipe opened this issue Sep 18, 2017 · 13 comments
Assignees

Comments

@mleipe
Copy link

mleipe commented Sep 18, 2017

It is desirable that Eclipse OpenJ9 build and run on Windows.

@vsebe is working on this.

Note that I've created a sibling issue in https://github.com/eclipse/openj9/ as some of the work may need to be done there.

@vsebe
Copy link
Contributor

vsebe commented Sep 25, 2017

Depends on issues #31, #32, #44, #45, #47, #49, #50

@vsebe vsebe self-assigned this Sep 26, 2017
vsebe added a commit to vsebe/openj9 that referenced this issue Oct 3, 2017
Replace include prefix /I with -I on windows platforms
when mingw is not used.
Fix related to issue: ibmruntimes/openj9-openjdk-jdk9#18

Signed-off-by: Violeta Sebe <vsebe@ca.ibm.com>
vsebe added a commit to vsebe/openj9-openjdk-jdk9 that referenced this issue Oct 12, 2017
Update libraries path for microsoft linker

Issue: ibmruntimes#18

Signed-off-by: Violeta Sebe <vsebe@ca.ibm.com>
vsebe added a commit to vsebe/openj9-openjdk-jdk9 that referenced this issue Oct 12, 2017
Update libraries path for microsoft linker

Issue: ibmruntimes#18

Signed-off-by: Violeta Sebe <vsebe@ca.ibm.com>
@vsebe
Copy link
Contributor

vsebe commented Oct 17, 2017

Follow the openjdk jdk9 instructions to set up the windows environment: see building.md.

Requirements:
Install:

  • MSVS 2013 (ensure is properly installed, check environment variables: PATH, LIB, INCLUDE, VCINSTALLDIR)
  • cygwin (devel package, zip, unzip)

Download:

  • freetypes and unpack it locally (e.g. /cygdrive/c/tmp/freetype), see building.md for detailed instructions
  • freemarker.jar from sourceforge.net and unpack it locally (e.g /cygdrive/c/tmp/freemarker.jar)
  • java 8 for windows 64bits from AdoptOpenJDK and unzip it locally (e.g. /cygdrive/c/tmp/jdk8u144-b01)

Clone openj9-openjdk-jdk9 repository:
Open a cygwin terminal and clone the openj9-openjdk-jdk9 repository:

cd /cygdrive/c/tmp/
git clone https://github.com/ibmruntimes/openj9-openjdk-jdk9
cd openj9-openjdk-jdk9
bash get_source.sh

Run configure:
Assuming freetype source is available in /cygdrive/c/tmp/freetype, use --with-freetype-src option.

bash configure --disable-warnings-as-errors --with-boot-jdk=/cygdrive/c/tmp/jdk8u144-b01 --with-toolchain-version=2013 --with-freemarker-jar=/cygdrive/c/tmp/freemarker.jar --with-freetype-src=/cygdrive/c/tmp/freetype

If freetype is built, use --with-freetype-lib and --with-freetype-include options

bash configure --disable-warnings-as-errors --with-boot-jdk=/cygdrive/c/tmp/jdk8u144-b01 --with-toolchain-version=2013 --with-freemarker-jar=/cygdrive/c/tmp/freemarker.jar --with-freetype-lib=/cygdrive/c/tmp/freetype/lib64 --with-freetype-include=/cygdrive/c/tmp/freetype/include

Build:
make images

Run java -version:
./build/windows-x86_64-normal-server-release/images/jdk/bin/java -version

@gdams
Copy link

gdams commented Oct 18, 2017

@gdams
Copy link

gdams commented Oct 18, 2017

also I wouldn't recommend building using one of our nighties as a boot JDK (https://adoptopenjdk.net/releases.html?variant=openjdk8#x64_win) would be a better binary to use

@vsebe
Copy link
Contributor

vsebe commented Oct 18, 2017

The change merged in PR #66 breaks the build jdk on windows.
@gdams please wait until I fix it.

@vsebe
Copy link
Contributor

vsebe commented Oct 24, 2017

Fixed.

@vsebe vsebe changed the title WIP: Build Eclipse OpenJ9 on Windows Build Eclipse OpenJ9 on Windows Oct 26, 2017
SueChaplain added a commit to SueChaplain/openj9 that referenced this issue Nov 14, 2017
Adding the detailed build instructions for creating
an OpenjDK V9 with OpenJ9 binary for Windows.

Created as a completely separate section in the existing
build instructions. No attempt to merge instructions
for platforms yet.

[ci skip]

Work supports issue at
ibmruntimes/openj9-openjdk-jdk9#18

Issue eclipse-openj9#18

Signed-off-by: Sue Chaplain <sue_chaplain@uk.ibm.com>
AlenBadel pushed a commit to AlenBadel/openj9 that referenced this issue Nov 22, 2017
Adding the detailed build instructions for creating
an OpenjDK V9 with OpenJ9 binary for Windows.

Created as a completely separate section in the existing
build instructions. No attempt to merge instructions
for platforms yet.

[ci skip]

Work supports issue at
ibmruntimes/openj9-openjdk-jdk9#18

Issue eclipse-openj9#18

Signed-off-by: Sue Chaplain <sue_chaplain@uk.ibm.com>
mikezhang1234567890 pushed a commit to mikezhang1234567890/openj9-openjdk-jdk9 that referenced this issue Nov 27, 2017
Update libraries path for microsoft linker

Issue: ibmruntimes#18

Signed-off-by: Violeta Sebe <vsebe@ca.ibm.com>
@groeges
Copy link
Member

groeges commented Nov 30, 2017

@vsebe Is this still being worked on. If it is, what is still outstanding to get this working?

@vsebe vsebe closed this as completed Nov 30, 2017
@cretz
Copy link

cretz commented Nov 30, 2017

@vsebe, can you link to the issue tracking availability of prebuilt binaries on adoptopenjdk.com? Is it eclipse-openj9/openj9#55?

@vsebe
Copy link
Contributor

vsebe commented Nov 30, 2017

@gdams
Copy link

gdams commented Nov 30, 2017

We are currently waiting on getting a build machine with VS2013. Our only build machine currently does everything on VS2010. Once we have that setup we should be able to start building

@pshipton
Copy link
Member

Also note the performance of the Windows build won't be optimal because of eclipse-openj9/openj9#727

@pdbain-ibm
Copy link
Contributor

Please add instructions for installing mingw, which is required in order to fix issue #727.

@pshipton
Copy link
Member

@pdbain-ibm please provide those instructions, once you have it working. It would be a good idea to supply those instructions in a new issue, created on OpenJ9, and not here in this closed issue on the wrong repo.

JamesKingdon pushed a commit to JamesKingdon/openj9 that referenced this issue Apr 18, 2019
Adding the detailed build instructions for creating
an OpenjDK V9 with OpenJ9 binary for Windows.

Created as a completely separate section in the existing
build instructions. No attempt to merge instructions
for platforms yet.

[ci skip]

Work supports issue at
ibmruntimes/openj9-openjdk-jdk9#18

Issue eclipse-openj9#18

Signed-off-by: Sue Chaplain <sue_chaplain@uk.ibm.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants