Difficulties to build LO for windows

Gay, Matthieu matthieu.gay at capgemini.com
Thu Mar 28 10:17:03 PDT 2013


Hello, I had done what you told me to do (if I didn't the build would stop in configure step)

I made a clean reinstall (on windows, version 3.5.7 of LO) and I still had errors like this in module wizards:
git4/libo/wizards/com/sun/star/wizards/reportbuilder/ReportBuilderImplementation.java:30: package
 com.sun.star.util does not exist: import com.sun.star.util.XModeSelector;

The problem is that in this goal, I don't have a good classpath:
 [ build JCS ] Jar/reportbuilderwizard
R=d:/libreOffice/git4 && O=$R/libo/solver/wntmsci12.pro && W=$R/libo/workdir/wntmsci12.pro && S=$R/libo &&  mkdi
r -p $W/JavaClassSet/Jar/reportbuilderwizard/ && RESPONSEFILE=C:/Work_cygwin/tmp/gbuild.FgbvUN && C:/PROGRA~2/Java/JDK15
~1.0_2/bin/javac.exe  -g -cp "C:/PROGRA~2/Java/JDK15~1.0_2/jre/lib/rt.jar;.;$W/JavaClassSet/Jar/reportbuilderwizard" -d
$W/JavaClassSet/Jar/reportbuilderwizard @$RESPONSEFILE && rm -f $RESPONSEFILE && touch $W/JavaClassSet/Jar/reportbuilder
wizard/done

Instead of this one, by example:

[ build JCS ] Jar/fax
R=d:/libreOffice/git4 && O=$R/libo/solver/wntmsci12.pro && W=$R/libo/workdir/wntmsci12.pro && S=$R/libo &&  mkdir -p $W/JavaClassSet/Jar/fax/ && RESPONSEFILE=C:/Work_cygwin/tmp/gbuild.1e0LfM && C:/PROGRA~2/Java/JDK15~1.0_2/bin/javac.exe  -g -cp "C:/PROGRA~2/Java/JDK15~1.0_2/jre/lib/rt.jar;.;$O/bin/ridl.jar;$O/bin/unoil.jar;$O/bin/jurt.jar;$O/bin/juh.jar;$O/bin/java_uno.jar;$O/bin/commonwizards.jar;$W/JavaClassSet/Jar/fax" -d $W/JavaClassSet/Jar/fax @$RESPONSEFILE && rm -f 


P.S.: the parameters used are these one:
--with-num-cpus=2
--with-max-jobs=4
--verbose
--enable-verbose
--disable-odk
--enable-debug
--without-junit
--disable-build-mozilla
--with-mozilla-build=/cygdrive/C/mozilla-build
--with-vendor=fairytern.org
--with-build-version=Built by fairytern.org
--with-directx-home=C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)
--with-cl-home=C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC
--with-mspdb-path=/cygdrive/C/Program Files (x86)/Microsoft Visual Studio 9.0/Common7/IDE
--with-csc-path=/cygdrive/C/Program Files/Microsoft.NET/SDK/v2.0 64bit
--with-midl-path=/cygdrive/C/Program Files (x86)/Microsoft SDKs/Windows/v7.1/Bin
--with-asm-home=/cygdrive/C/Program Files (x86)/Microsoft Visual Studio 9.0/VC/Bin
--with-ant-home=/cygdrive/c/apache-ant-1.8.4
--disable-atl
-----Message d'origine-----
De : Jan Holesovsky [mailto:kendy at suse.cz] 
Envoyé : lundi 25 mars 2013 10:33
À : Gay, Matthieu
Cc : libreoffice at lists.freedesktop.org
Objet : Re: RE : Difficulties to build LO for windows

Hi Matthieu,

Gay, Matthieu píše v Ne 24. 03. 2013 v 20:08 +0000:

> Thanks for your answer, when I build wizards module, I have these errors:
> 
> Note: Some input files use unchecked or unsafe operations.
> Note: Recompile with -Xlint:unchecked for details.
> 100 errors
> 2 warnings
> make[2]: *** 
> [/cygdrive/d//libreOffice/git3/libo/workdir/wntmsci12.pro/JavaClassSet
> /Jar/reportbuilderwizard/done] Error 1
> dmake:  Error code 2, while making 'all'
> log for 
> /cygdrive/d//libreOffice/git3/libo/connectivity/source/drivers/mozab/m
> ozillasrc
> Compiling: connectivity/source/drivers/mozab/mozillasrc/Compiling: 
> connectivity/source/drivers/mozab/mozillasrc/Compiling: 
> connectivity/source/drivers/mozab/mozillasrc/Compiling: 
> connectivity/source/drivers/mozab/mozillasrc/Compiling: 
> connectivity/source/drivers/mozab/mozillasrc/MQueryHelper.cxx
> MDatabaseMetaDataHelper.cxx
> MNSMozabProxy.cxx
> MQuery.cxx
> MTypeConverter.cxx
> D://libreOffice/git3/libo/connectivity/source/drivers/mozab/mozillasrc
> /MTypeConverter.cxx(52) : error C2660: 'nsACString::BeginReading'ÿ: la 
> fonction ne prend pas 0 arguments
> D://libreOffice/git3/libo/connectivity/source/drivers/mozab/mozillasrc
> /MTypeConverter.cxx(53) : error C2660: 'nsACString::EndReading'ÿ: la 
> fonction ne prend pas 0 arguments
> D://libreOffice/git3/libo/connectivity/source/drivers/mozab/mozillasrc
> /MTypeConverter.cxx(59) : error C2660: 'nsACString::BeginReading'ÿ: la 
> fonction ne prend pas 0 arguments
> D://libreOffice/git3/libo/connectivity/source/drivers/mozab/mozillasrc
> /MTypeConverter.cxx(60) : error C2660: 'nsACString::EndReading'ÿ: la 
> fonction ne prend pas 0 arguments
> D://libreOffice/git3/libo/connectivity/source/drivers/mozab/mozillasrc/MTypeConverter.cxx(73) : error C2039: 'AppendASCII'ÿ: n'est pas membre de 'nsACString'
>         d:\\libreoffice\git3\libo\solver\wntmsci12.pro\inc\mozilla\string\nsTAString.h(104)ÿ: voir la d‚claration de 'nsACString'
> dmake:  Error code 2, while making '../../../../wntmsci12.pro/slo/MTypeConverter.obj'

OK, so this is still down to mozilla.

You said you are building 3.5, right?  So I'd follow the older version of the instructions, like:

https://wiki.documentfoundation.org/index.php?title=Development/Windows_Build_Dependencies&oldid=63625

Please download the "Prebuilt mozilla modules" (
http://dev-www.libreoffice.org/mozilla/) and follow

https://wiki.documentfoundation.org/index.php?title=Development/Windows_Build_Dependencies&oldid=63625#Pre-built_Mozilla_libraries

Hopefully that'll fix your trouble :-)

All the best,
Kendy

This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.


More information about the LibreOffice mailing list