openoffice-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver-Rainer Wittmann <orwittm...@googlemail.com>
Subject [Build Environment] Windows - build using Java 7 (JDK 1.7) without having Visual Studio
Date Thu, 01 Aug 2013 13:15:04 GMT
Hi,

Our current documentation about building AOO on Windows [1] (legacy one 
[2]) references JDK 1.6 and Visual Studio 2008 Express as needed 
software tools in order to build AOO on Windows. You might know that 
these are no longer officially available for Windows.
Thus, I decided to work on a Windows build environment _without_ Visual 
Studio 2008 and _with_ JDK 1.7. I managed to build current trunk on a 
Windows 7 64bit HomePremium system using Java 7 (JDK 1.7) and without an 
installed Visual Studio instance.
The problems which I need to solve on my way to the installation set were:
(1) New version 2.7.1-1 of cygwin tool 'patch'.
Version 2.7.1-1 now takes line endings in the patch file and in the file 
to be patch serious. Thus, the application of a patch fails when the 
line endings are different.
Solution is to tweak the calling of the cygwin tool 'patch'.
(2) Building module accessibility.
In accessibility/bridge/source/java/ 'javah' is used to create a C 
header file from a Java class. This does not work with JDK 1.7 as the 
classpath does not contain the needed references to our UNO-API Java 
classes.
Solution is to adjust the classpath for this 'javah' call.

There are issues 121690 [3] and 121754 [4] regarding building with Java 
7 (JDK 1.7) and HSQLDB. I think these issues are the duplicates of each 
other [please, can one of the people involved in these issues - e.g. 
Fred, Ariel or Andrea confirm this? Thx in advance]. As far as I 
understood these issues are solved. Please correct me, if I am wrong.
My build was not hit by any build problem regarding modules hsqldb and 
connectivity.

The installation of my build successfully passes the so-called smoketest 
- open document /main/smoketestdoc/[platform]/bin/smoketestdoc.sxw and 
hit start button.

On a Windows system with JRE 6 the installation of my build does not 
recognize installed JRE 6 as an Java runtime environment (Menu - Tools - 
Option - Java). This is no problem from my point of view as our Windows 
users should not have JRE 6 installed anymore on their systems due to 
its security risks. Does somebody contradicts?


I will soon update our documentation [1] in order to enable newcomers to 
build AOO under Windows.
I will also update the reference to the Windows SDK, because for 
building without stlport on Windows the SP1 of the corresponding Windows 
SDK is needed - see issue 122500 [5].

[1] 
http://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO/Building_on_Windows
[2] 
http://wiki.openoffice.org/wiki/Documentation/Building_Guide/Building_on_Windows
[3] https://issues.apache.org/ooo/show_bug.cgi?id=121690
[4] https://issues.apache.org/ooo/show_bug.cgi?id=121754
[5] https://issues.apache.org/ooo/show_bug.cgi?id=122500


Best regards, Oliver.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@openoffice.apache.org
For additional commands, e-mail: dev-help@openoffice.apache.org


Mime
View raw message