Build libreoffice error for xml2 on windows7.
leo2013
libredev at gmail.com
Sun May 19 08:45:02 PDT 2013
These days, I'm trying to build the libreoffice on windows7(sp1,x64).
I referenced to the wiki:
https://wiki.documentfoundation.org/Development/BuildingOnWindows
I download some software accoring to the wiki site:
https://wiki.documentfoundation.org/Development/Windows_Build_Dependencies
1.windows sdk
2.vs2012
3.DirectX sdk
4.GDI+ Redistributable (but not used according to the note)
5.Dot NET SDK v2.0 (Important: x86, not x64!!!)
6.Java Development Kit (use a 32bit SDK)
7.Microsoft Visual C++ 2010 SP1 Redistributable Package (x86) (but not used
cause I used vs2012)
8.Apache ANT
9.Junit 4
10.Mozilla build tooling (only for stable LibreOffice versions <4.1) (but
not used)
11.LO patched GNU make 3.82: install it at the cygwin path /opt/lo/bin/make
12.LO patched ccache: install it at the cygwin path /opt/lo/bin/ccache
13.Cygwin's setup.exe
After installing and configuring them, I began to build source codes from
site:
http://cgit.freedesktop.org/libreoffice/core/log/?h=feature/formula-core-rework
I used:
--with-parallelism=4
--disable-odk
--with-junit=/opt/lo/misc/junit-4.10.jar
--with-ant-home=/opt/lo/misc/apache-ant-1.9.0
--with-jdk-home=D:/x86/Java/jdk1.7.0_21
--enable-pch
--enable-ccache
--disable-activex
--enable-symbols
--disable-cve-tests
--disable-atl
--without-myspell-dicts
as configure arguments in autogen.input file.
$ ./autogen.sh (not work because the format isn't UNIX. and after
transferred it to UNIX it works but failed again)
need copy the two files from
(xx\cygwin\usr\x86_64-pc-cygwin\sys-root\usr\share\libtool\config\config.guess)
and
(xx\cygwin\usr\x86_64-pc-cygwin\sys-root\usr\share\libtool\config\config.sub)
into current path which is the same
as auogen.sh; and then, try $ ./autogen.sh
...
To build, issue:
/opt/lo/bin/make
run: /opt/lo/bin/make help
for details
*************************************
* WARNING : ccache's cache size is less than 1GB using it is
counter-producive: auto-ccache detection disabled
...
$ /opt/lo/bin/make (begin to download something automatically and after
long time, failed)
This time need notice the file named 'g', the format of g isn't all UNIX
too, so that need transferred it to UNIX and
$/opt/lo/bin/make clean
$/opt/lo/bin/make
It looks everything is stopping there but it's working now indeed.
After a long time, it begins to scroll up by printing the build information.
...
[build DEP]...xx
...
[build CXX]...xx
...
[build C ]...xx
...
================================================
Now, the error comes as below:
E:/core/workdir/wntmsci14.pro/UnpackedTarball/zlib/x64/zutil.c(137) :
warning C4131: ??zError??: ??????????????
E:/core/workdir/wntmsci14.pro/UnpackedTarball/zlib/x64/zutil.c(305) :
warning C4131: ??zcalloc??: ??????????????
E:/core/workdir/wntmsci14.pro/UnpackedTarball/zlib/x64/zutil.c(315) :
warning C4131: ??zcfree??: ??????????????
[build LNK] Executable/gcc-wrapper.exe
[build LNK] Executable/g++-wrapper.exe
Microsoft (R) Windows Script Host Version 5.8
???????(C) Microsoft Corporation 1996-2001???????????????
libxml2 version: 2.7.6
Created Makefile.
Created config.h.
XML processor configuration
---------------------------
Trio: no
Thread safety: native
FTP client: yes
HTTP client: yes
HTML processor: yes
C14N support: yes
Catalog support: yes
DocBook support: yes
XPath support: yes
XPointer support: yes
XInclude support: yes
iconv support: no
iso8859x support: no
zlib support: no
Debugging module: yes
Memory debugging: no
Runtime debugging: no
Regexp support: yes
Module support: yes
Tree support: yes
Reader support: yes
Writer support: yes
Walker support: yes
Pattern support: yes
Push support: yes
Validation support: yes
SAX1 support: yes
Legacy support: yes
Output support: yes
XML Schema support: yes
Schematron support: yes
Python bindings: no
Win32 build configuration
-------------------------
Compiler: msvc
C-Runtime option: /MD
Embed Manifest: no
Debug symbols: no
Static xmllint: no
Install prefix: .
Put tools in: $(PREFIX)\bin
Put headers in: $(PREFIX)\include
Put static libs in: $(PREFIX)\lib
Put shared libs in: $(PREFIX)\lib
Include path: .
Lib path: .
Microsoft (R) ?????????ù??? 11.00.50727.1 ??
??????? (C) Microsoft Corporation???????????????
if not exist bin.msvc mkdir bin.msvc
if not exist int.msvc mkdir int.msvc
cl.exe /EP /nologo /I..\include /D "_REENTRANT" libxml2.def.src >
int.ms
vc\libxml2.def
libxml2.def.src
cl.exe /nologo /D "WIN32" /D "_WINDOWS" /D "_MBCS" /W1 /MD /I..
/I..\inc
c14n.c
catalog.c
chvalid.c
debugXML.c
dict.c
DOCBparser.c
encoding.c
entities.c
error.c
globals.c
hash.c
HTMLparser.c
HTMLtree.c
legacy.c
list.c
nanoftp.c
nanohttp.c
parser.c
parserInternals.c
pattern.c
???????????...
???????...
relaxng.c
SAX2.c
SAX.c
schematron.c
threads.c
tree.c
uri.c
valid.c
xinclude.c
xlink.c
xmlIO.c
xmlmemory.c
xmlreader.c
xmlregexp.c
xmlmodule.c
xmlsave.c
xmlschemas.c
..\xmlschemas.c(5115) : warning C4819:
??????????????????????(936)?б????????????
????????? Unicode ?????????????
..\xmlschemas.c(6163) : warning C4819:
??????????????????????(936)?б????????????
????????? Unicode ?????????????
..\xmlschemas.c(7112) : warning C4819:
??????????????????????(936)?б????????????
????????? Unicode ?????????????
..\xmlschemas.c(8139) : warning C4819:
??????????????????????(936)?б????????????
????????? Unicode ?????????????
..\xmlschemas.c(9125) : warning C4819:
??????????????????????(936)?б????????????
????????? Unicode ?????????????
..\xmlschemas.c(10117) : warning C4819:
??????????????????????(936)?б???????????
?????????? Unicode ?????????????
..\xmlschemas.c(11095) : warning C4819:
??????????????????????(936)?б???????????
?????????? Unicode ?????????????
..\xmlschemas.c(12054) : warning C4819:
??????????????????????(936)?б???????????
?????????? Unicode ?????????????
..\xmlschemas.c(12959) : warning C4819:
??????????????????????(936)?б???????????
?????????? Unicode ?????????????
..\xmlschemas.c(13942) : warning C4819:
??????????????????????(936)?б???????????
?????????? Unicode ?????????????
..\xmlschemas.c(14975) : warning C4819:
??????????????????????(936)?б???????????
?????????? Unicode ?????????????
..\xmlschemas.c(15890) : warning C4819:
??????????????????????(936)?б???????????
?????????? Unicode ?????????????
..\xmlschemas.c(16828) : warning C4819:
??????????????????????(936)?б???????????
?????????? Unicode ?????????????
..\xmlschemas.c(17856) : warning C4819:
??????????????????????(936)?б???????????
?????????? Unicode ?????????????
..\xmlschemas.c(18809) : warning C4819:
??????????????????????(936)?б???????????
?????????? Unicode ?????????????
..\xmlschemas.c(19771) : warning C4819:
??????????????????????(936)?б???????????
?????????? Unicode ?????????????
..\xmlschemas.c(20752) : warning C4819:
??????????????????????(936)?б???????????
?????????? Unicode ?????????????
..\xmlschemas.c(21821) : warning C4819:
??????????????????????(936)?б???????????
?????????? Unicode ?????????????
..\xmlschemas.c(22914) : warning C4819:
??????????????????????(936)?б???????????
?????????? Unicode ?????????????
..\xmlschemas.c(24026) : warning C4819:
??????????????????????(936)?б???????????
?????????? Unicode ?????????????
..\xmlschemas.c(25076) : warning C4819:
??????????????????????(936)?б???????????
?????????? Unicode ?????????????
..\xmlschemas.c(26051) : warning C4819:
??????????????????????(936)?б???????????
?????????? Unicode ?????????????
xmlschemastypes.c
xmlunicode.c
xmlwriter.c
???????????...
???????...
xpath.c
xpointer.c
xmlstring.c
???????????...
link.exe /nologo /VERSION:2.7 /LIBPATH:bin.msvc /LIBPATH:.\lib /DLL
/IM
PLIB:bin.msvc\libxml2.lib /OUT:bin.msvc\libxml2.dll int.msvc\c14n.obj
int.msvc\c
atalog.obj int.msvc\chvalid.obj int.msvc\debugXML.obj int.msvc\dict.obj
int.msvc
\DOCBparser.obj int.msvc\encoding.obj int.msvc\entities.obj
int.msvc\error.obj i
nt.msvc\globals.obj int.msvc\hash.obj int.msvc\HTMLparser.obj
int.msvc\HTMLtree.
obj int.msvc\legacy.obj int.msvc\list.obj int.msvc\nanoftp.obj
int.msvc\nanohttp
.obj int.msvc\parser.obj int.msvc\parserInternals.obj int.msvc\pattern.obj
int.m
svc\relaxng.obj int.msvc\SAX2.obj int.msvc\SAX.obj int.msvc\schematron.obj
int.m
svc\threads.obj int.msvc\tree.obj int.msvc\uri.obj int.msvc\valid.obj
int.msvc\x
include.obj int.msvc\xlink.obj int.msvc\xmlIO.obj int.msvc\xmlmemory.obj
int.msv
c\xmlreader.obj int.msvc\xmlregexp.obj int.msvc\xmlmodule.obj
int.msvc\xmlsave.o
bj int.msvc\xmlschemas.obj int.msvc\xmlschemastypes.obj
int.msvc\xmlunicode.obj
int.msvc\xmlwriter.obj int.msvc\xpath.obj int.msvc\xpointer.obj
int.msvc\xmlstri
ng.obj wsock32.lib ws2_32.lib kernel32.lib
????????? bin.msvc\libxml2.lib ????? bin.msvc\libxml2.exp
xmlschemas.obj : error LNK2001: ??????????????? ___report_rangecheckfailure
xpath.obj : error LNK2001: ??????????????? ___report_rangecheckfailure
HTMLparser.obj : error LNK2001: ??????????????? ___report_rangecheckfailure
nanoftp.obj : error LNK2019: ???????????????
___report_rangecheckfailure???÷????
???? _xmlNanoFTPOpen ?б?????
parser.obj : error LNK2001: ??????????????? ___report_rangecheckfailure
tree.obj : error LNK2001: ??????????????? ___report_rangecheckfailure
catalog.obj : error LNK2001: ??????????????? ___report_rangecheckfailure
debugXML.obj : error LNK2001: ??????????????? ___report_rangecheckfailure
encoding.obj : error LNK2001: ??????????????? ___report_rangecheckfailure
error.obj : error LNK2001: ??????????????? ___report_rangecheckfailure
catalog.obj : error LNK2019: ??????????????? __imp___stat64i32???÷????????
_stat
?б?????
xmlIO.obj : error LNK2001: ??????????????? __imp___stat64i32
xmlsave.obj : error LNK2019: ???????????????
@__security_check_cookie at 4???÷?????
??? _xhtmlNodeDumpOutput ?б?????
xmlschemas.obj : error LNK2001: ??????????????? @__security_check_cookie at 4
xmlschemastypes.obj : error LNK2001: ???????????????
@__security_check_cookie at 4
xpath.obj : error LNK2001: ??????????????? @__security_check_cookie at 4
valid.obj : error LNK2001: ??????????????? @__security_check_cookie at 4
xlink.obj : error LNK2001: ??????????????? @__security_check_cookie at 4
xmlIO.obj : error LNK2001: ??????????????? @__security_check_cookie at 4
xmlregexp.obj : error LNK2001: ??????????????? @__security_check_cookie at 4
SAX2.obj : error LNK2001: ??????????????? @__security_check_cookie at 4
schematron.obj : error LNK2001: ??????????????? @__security_check_cookie at 4
tree.obj : error LNK2001: ??????????????? @__security_check_cookie at 4
uri.obj : error LNK2001: ??????????????? @__security_check_cookie at 4
nanohttp.obj : error LNK2001: ??????????????? @__security_check_cookie at 4
parser.obj : error LNK2001: ??????????????? @__security_check_cookie at 4
parserInternals.obj : error LNK2001: ???????????????
@__security_check_cookie at 4
relaxng.obj : error LNK2001: ??????????????? @__security_check_cookie at 4
error.obj : error LNK2001: ??????????????? @__security_check_cookie at 4
HTMLparser.obj : error LNK2001: ??????????????? @__security_check_cookie at 4
HTMLtree.obj : error LNK2001: ??????????????? @__security_check_cookie at 4
nanoftp.obj : error LNK2001: ??????????????? @__security_check_cookie at 4
catalog.obj : error LNK2001: ??????????????? @__security_check_cookie at 4
debugXML.obj : error LNK2001: ??????????????? @__security_check_cookie at 4
encoding.obj : error LNK2001: ??????????????? @__security_check_cookie at 4
entities.obj : error LNK2001: ??????????????? @__security_check_cookie at 4
xmlsave.obj : error LNK2001: ??????????????? ___security_cookie
xmlschemas.obj : error LNK2001: ??????????????? ___security_cookie
xmlschemastypes.obj : error LNK2001: ??????????????? ___security_cookie
xpath.obj : error LNK2001: ??????????????? ___security_cookie
valid.obj : error LNK2001: ??????????????? ___security_cookie
xlink.obj : error LNK2001: ??????????????? ___security_cookie
xmlIO.obj : error LNK2001: ??????????????? ___security_cookie
xmlregexp.obj : error LNK2019: ???????????????
___security_cookie???÷???????? _x
mlFACompareAtomTypes ?б?????
SAX2.obj : error LNK2001: ??????????????? ___security_cookie
schematron.obj : error LNK2001: ??????????????? ___security_cookie
tree.obj : error LNK2001: ??????????????? ___security_cookie
uri.obj : error LNK2001: ??????????????? ___security_cookie
nanohttp.obj : error LNK2001: ??????????????? ___security_cookie
parser.obj : error LNK2001: ??????????????? ___security_cookie
parserInternals.obj : error LNK2001: ??????????????? ___security_cookie
relaxng.obj : error LNK2001: ??????????????? ___security_cookie
error.obj : error LNK2001: ??????????????? ___security_cookie
HTMLparser.obj : error LNK2001: ??????????????? ___security_cookie
HTMLtree.obj : error LNK2001: ??????????????? ___security_cookie
nanoftp.obj : error LNK2001: ??????????????? ___security_cookie
catalog.obj : error LNK2001: ??????????????? ___security_cookie
debugXML.obj : error LNK2001: ??????????????? ___security_cookie
encoding.obj : error LNK2001: ??????????????? ___security_cookie
entities.obj : error LNK2001: ??????????????? ___security_cookie
schematron.obj : error LNK2001: ??????????????? __imp____iob_func
tree.obj : error LNK2001: ??????????????? __imp____iob_func
xmlIO.obj : error LNK2001: ??????????????? __imp____iob_func
xmlregexp.obj : error LNK2001: ??????????????? __imp____iob_func
debugXML.obj : error LNK2019: ??????????????? __imp____iob_func???÷????????
_xml
CtxtDumpInitCtxt ?б?????
error.obj : error LNK2001: ??????????????? __imp____iob_func
parserInternals.obj : error LNK2001: ??????????????? __imp____iob_func
relaxng.obj : error LNK2001: ??????????????? __imp____iob_func
error.obj : error LNK2019: ??????????????? __imp__vsnprintf???÷????????
___xmlRa
iseError ?б?????
xmlreader.obj : error LNK2001: ??????????????? __imp__vsnprintf
xmlwriter.obj : error LNK2001: ??????????????? __imp__vsnprintf
xmlstring.obj : error LNK2001: ??????????????? __imp__vsnprintf
nanohttp.obj : error LNK2019: ??????????????? __imp__strcpy_s???÷????????
_Wspia
piLegacyGetNameInfo at 28 ?б?????
nanohttp.obj : error LNK2019: ??????????????? __imp__strcat_s???÷????????
_Wspia
piLoad at 4 ?б?????
nanohttp.obj : error LNK2019: ??????????????? __imp__strncpy_s???÷????????
_Wspi
apiLookupNode at 24 ?б?????
nanohttp.obj : error LNK2019: ??????????????? __imp__sprintf_s???÷????????
_Wspi
apiLegacyGetNameInfo at 28 ?б?????
xmlIO.obj : error LNK2019: ??????????????? __imp___wstat64i32???÷????????
_xmlWr
apStatUtf8 ?б?????
xpath.obj : error LNK2019: ???????????????
__libm_sse2_log10_precise???÷????????
_xmlXPathFormatNumber ?б?????
xpath.obj : error LNK2019: ???????????????
__libm_sse2_pow_precise???÷???????? _
xmlXPathCompNumber ?б?????
bin.msvc\libxml2.dll : fatal error LNK1120: 13 ?????????????????
NMAKE : fatal error U1077: ??C:\PROGRA~2\MICROS~1.0\VC\bin\link.exe??:
???????0
x460??
Stop.
make[1]: *** [E:/core/workdir/wntmsci14.pro/ExternalProject/xml2/build ]
Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [build] Error 2
It looks lacking of some libs during linking and some another config
arguments ?
--
View this message in context: http://nabble.documentfoundation.org/Build-libreoffice-error-for-xml2-on-windows7-tp4056879.html
Sent from the Dev mailing list archive at Nabble.com.
More information about the LibreOffice
mailing list