Re: stuck at building code. Please suggest what to try next.

2024-02-06 Thread Ilmari Lauhakangas

On 6.2.2024 9.45, Ajay Dhar wrote:

I am trying to start developing libreoffice.
I tried to


  configure and build the code

I gave the following command in cygbin
...
c:/sources/libo-core/autogen.sh \
  --with-external-tar=c:/sources/lo-externalsrc \
  --with-junit=c:/sources/junit-4.10.jar \
  --with-ant-home=c:/sources/apache-ant-1.9.5 \
  --enable-pch --disable-ccache \
  --disable-ccache \
  --with-jdk-home
...
I got the following error.

Error running configure at c:/sources/libo-core/autogen.sh line 321.
configure: error: No JDK found, pass the --with-jdk-home option (or fix 
the path) pointing to a 64-bit JDK >= 17

.
Now I am stuck. Please suggest something.
My Java is at following, I think
...
C:\Program Files\Microsoft\jdk-11.0.21.9-hotspot\bin
.


You have not defined a path for --with-jdk-home. It is explained here: 
https://wiki.documentfoundation.org/Development/BuildingOnWindows#Install_Java


I notice that you seem to be following the instructions on the Windows 
article that go beyond the point that says:


"The Easiest way to perform the following is to use LODE , which 
automates all that is necessary, beyond installing Visual Studio and Java.


If you want to do it the hard way, continue reading."

It would be good to use an autogen.input as I advised you.

Also, Miklos has a point about JDK version in his email.

Ilmari


Re: stuck at building code. Please suggest what to try next.

2024-02-06 Thread Miklos Vajna
Hi Ajay,

On Tue, Feb 06, 2024 at 07:45:38AM +, Ajay Dhar  
wrote:
> My Java is at following, I think
> ...
>  C:\Program Files\Microsoft\jdk-11.0.21.9-hotspot\bin
> .

Quoting README.md:

> The baseline for Java is Java Development Kit (JDK) Version 17 or
> later.

Update to Java 17 from your old 11. :-)

Regards,

Miklos


stuck at building code. Please suggest what to try next.

2024-02-06 Thread Ajay Dhar
I am trying to start developing libreoffice. I tried to 
configure and build the code
I gave the following command in cygbin...
c:/sources/libo-core/autogen.sh \
 --with-external-tar=c:/sources/lo-externalsrc \
 --with-junit=c:/sources/junit-4.10.jar \
 --with-ant-home=c:/sources/apache-ant-1.9.5 \
 --enable-pch --disable-ccache \
 --disable-ccache \
 --with-jdk-home
...I got the following 
error.Error running configure at 
c:/sources/libo-core/autogen.sh line 321.
configure: error: No JDK found, pass the --with-jdk-home option (or fix the 
path) pointing to a 64-bit JDK >= 17.Now I 
am stuck. Please suggest something.
My Java is at following, I think
...
 C:\Program Files\Microsoft\jdk-11.0.21.9-hotspot\bin
.