-
Notifications
You must be signed in to change notification settings - Fork 722
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add detailed instructions for building on Windows #521
Conversation
buildenv/Build_Instructions_V9.md
Outdated
You must install a number of software dependencies to create a suitable build environment on your system. | ||
|
||
- [Cygwin](https://cygwin.com/install.html), which provides a Unix-style command line interface. | ||
- [Microsoft Visual Studio 2013](https://msdn.microsoft.com/en-us/library/dd831853(v=vs.120)), which is the same compiler level used by OpenJDK. Later levels of this compiler are not supported. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we provide the actual download link: https://my.visualstudio.com/Downloads?q=visual%20studio%202013&wt.mc_id=o~msft~vscom~older-downloads
Has someone followed these instructions and been able successfully build on windows? I've started down that path but am blocked on getting visual studio to install. |
032889f
to
b8a573a
Compare
I modified the VisualStudio link to the one provided by @DanHeidinga (https://my.visualstudio.com/Downloads?q=visual%20studio%202013&wt.mc_id=o~msft~vscom~older-downloads) Q from Dan: Has someone followed these instructions and been able successfully build on windows?
|
@SueChaplain I wasn't able to get the visual studio to install from that link due to errors related to "windows program compatibility". There's a direct link to a download in the Windows.yml file that appears to work. @vsebe Can that link be shared? |
As an outsider to all this, but someone who has used VS - are there any concerns about VS incompatibility or making sure the right VS is picked up that need to be accounted for in the instructions? |
@SueChaplain - VS 2013 download link: https://go.microsoft.com/fwlink/?LinkId=532495
For more details see VS documentation: https://msdn.microsoft.com/en-us/library/f2ccy3wt(v=vs.120).aspx The ansible playbooks are available in the infra-can repository. For windows requirements see Windows.yml. |
Thanks @vsebe. A few questions please:
If you can give me a few more pointers I'll try and build it myself. |
No need to add cygwin to the path.
|
Thanks @vsebe - will update the doc. |
@SueChaplain nice catch, I'll fix it thanks. |
b8a573a
to
ea80a1c
Compare
I've finished testing the build on a fresh Windows 10 install. A few observations:
Compile time was long, but the machine didn't have a huge amount of resources. |
@SueChaplain, as the MS Visual Studio environment variables are not intuitive and there isn't a straight forward way to set them, I handled the set up in the code (this should simplify the instructions). |
ea80a1c
to
7c214cd
Compare
@vsebe - VS install section updated to remove all content/references to the env variables. Are there any further changes required please? |
No other changes, looks good to me. Thank you, @SueChaplain ! |
I'm following the directions on a Windows VM and should be able to report back by end of day. |
buildenv/Build_Instructions_V9.md
Outdated
|
||
- To unpack the Freemarker and Freetype compressed files, run: | ||
``` | ||
tar --one-top-level=/cygdrive/c/temp/freemarker --strip-components=1 -xzf freemarker-2.3.8.tar.gz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this tar command intended to put the freemarker.jar
into the /cygdrive/c/temp? It doesn't seem to work and is different than the tar commands for the other platforms.
AIX: tar -xzf freemarker.tgz freemarker-2.3.8/lib/freemarker.jar --strip=2 \
linux: tar -xzf freemarker.tgz freemarker-2.3.8/lib/freemarker.jar --strip=2
Either this or the configure command below need to be updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To unpack freemarker:
tar -xzf freemarker-2.3.8.tar.gz freemarker-2.3.8/lib/freemarker.jar --strip=2
If we want the commands to be identical on all platforms than:
-
to download freemarker:
wget https://sourceforge.net/projects/freemarker/files/freemarker/2.3.8/freemarker-2.3.8.tar.gz/download -O freemarker.tgz
@SueChaplain note the output file-O freemarker.tgz
-
to unpack:
tar -xzf freemarker.tgz freemarker-2.3.8/lib/freemarker.jar --strip=2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where possible, the instructions should be the same across all platforms. Longer term, it makes sense to have a single set of instructions with only the platform setup being different.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the wget command for freemarker, modified the tar command to put freemarker.jar in the root, and reverted the change I made to configure that previously fixed the path.
It's a shame that we still have differences in the configure between platforms, but I agree that we should try and create platform specific sections for preparing your build environment and try to merge the other sections. Would be nice to see ARM and z/OS before doing this, but not sure what progress is being made for these.
Once the |
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>
7c214cd
to
2b370f3
Compare
Jenkins line endings check |
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.
Work supports issue at
ibmruntimes/openj9-openjdk-jdk9#18
Issue #18
Signed-off-by: Sue Chaplain sue_chaplain@uk.ibm.com