<div dir="ltr"><div><div><div><div><div><div>I guys,<br><br></div>I'm trying to do a custom Windows build of LibreOffice 4.1.0.4 (The stable release).<br><br></div>First I had an lpsolve error that seemed to be caused by this:<br>
<a href="https://bugs.freedesktop.org/show_bug.cgi?id=66826">https://bugs.freedesktop.org/show_bug.cgi?id=66826</a><br><br></div>And so I applied this patch:<br><a href="http://cgit.freedesktop.org/libreoffice/core/commit/?id=f1e7eeb83c18bce720d49e0e55704abd09ab96f7&h=libreoffice-4-1">http://cgit.freedesktop.org/libreoffice/core/commit/?id=f1e7eeb83c18bce720d49e0e55704abd09ab96f7&h=libreoffice-4-1</a><br>
<br></div>But now the lp_solve_5.5-windows.patch patch actually fails:<br>[build PAT] lpsolve<br>S=C:/libreoffice-4.1.0.4 && O=$S/solver/<a href="http://wntmsci13.pro">wntmsci13.pro</a> && W=$S/workdir/<a href="http://wntmsci13.pro">wntmsci13.pro</a> &&  ( cd $W/UnpackedTarball/lpsolve &&     for p in  $S/lpsolve/lp_solve_5.5-windows.patch; do pl=3; s=${p##*.}; case "$s" in [0-9]) pl="$s"; ;; esac ; /usr/bin/patch --binary -f -s "-p$pl" < "$p"; if test "$?" -ne 0; then echo "Patch FAILED: $p"; exit 1; fi; done &&     touch $W/UnpackedTarball/lpsolve.done ) || ( touch $W/UnpackedTarball/lpsolve.prepare && exit 1 )<br>
1 out of 1 hunk FAILED -- saving rejects to file lpsolve55/cgcc.bat.rej<br>1 out of 1 hunk FAILED -- saving rejects to file lpsolve55/lpsolve.rc.rej<br>1 out of 1 hunk FAILED -- saving rejects to file lpsolve55/cvc6.bat.rej<br>
Patch FAILED: C:/libreoffice-4.1.0.4/lpsolve/lp_solve_5.5-windows.patch<br>make[1]: *** [C:/libreoffice-4.1.0.4/workdir/<a href="http://wntmsci13.pro/UnpackedTarball/lpsolve.done">wntmsci13.pro/UnpackedTarball/lpsolve.done</a>] Error 1<br>
<br><br>cgcc.bat.rej shows this, and I'm totally clueless:<br><br>$ cat  ./workdir/<a href="http://wntmsci13.pro/UnpackedTarball/lpsolve/lpsolve55/cgcc.bat.rej">wntmsci13.pro/UnpackedTarball/lpsolve/lpsolve55/cgcc.bat.rej</a><br>
*** cgcc.bat    Sun Jun 12 04:27:28 2005<br>--- lpsolve55/cgcc.bat  Sun Dec 14 07:55:19 2008<br>***************<br>*** 7,14 ****<br><br>  set c=gcc<br><br>! rem rc lpsolve.rc<br>! %c% -DINLINE=static -I.. -I../shared -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd -s -O3 -shared -mno-cygwin -enable-stdcall-fixup -D_USRDLL -DWIN32 -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine %src% ..\lp_solve.def -o lpsolve55.dll<br>
<br>  %c% -DINLINE=static -I.. -I../shared -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd -s -O3 -shared -D_USRDLL -DWIN32 -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine %src% -o liblpsolve55.so<br>
<br>--- 7,14 ----<br><br>  set c=gcc<br><br>! windres lpsolve.rc lpsolve_res.obj<br>! %c% -DINLINE=static -I.. -I../shared -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd -s -O3 -shared -mno-cygwin -enable-stdcall-fixup -mthreads %lpsolve_LDFLAGS% -D_USRDLL -DWIN32 -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine %src% lpsolve_res.obj ..\lp_solve.def %lpsolve_LIBS% -o lpsolve55.dll<br>
<br>  %c% -DINLINE=static -I.. -I../shared -I../bfp -I../bfp/bfp_LUSOL -I../bfp/bfp_LUSOL/LUSOL -I../colamd -s -O3 -shared -D_USRDLL -DWIN32 -DYY_NEVER_INTERACTIVE -DPARSER_LP -DINVERSE_ACTIVE=INVERSE_LUSOL -DRoleIsExternalInvEngine %src% -o liblpsolve55.so<br>
<br><br></div>I'm using VS 2010 Express... Any thoughts?<br><br></div>Thanks for helping out.<br><div><div><div><div><div><div><br clear="all"><div><div><font size="-1"><b>Flávio Moringa</b></font><font size="1"><br>
Project Leader<br><br><img src="http://people.caixamagica.pt/flaviomoringa/images/caixamagica.png"><br>
<br>
Caixa Mágica Software<br>
Energia Open Source<br>
Rua Soeiro Pereira Gomes, Lote 1 - 4.º B,<br>
Edifício Espanha, 1600-196 Lisboa - Portugal<br>
Tel.: <a href="tel:%2B351%20217%20921%20260" value="+351217921260" target="_blank">+351 217 921 260</a> Fax: <a href="tel:%2B351%20217%20921%20261" value="+351217921261" target="_blank">+351 217 921 261</a><br><a href="http://www.caixamagica.pt" target="_blank">http://www.caixamagica.pt</a><br>

<a href="https://twitter.com/flaviomoringa" target="_blank">https://twitter.com/flaviomoringa</a><br>
<a href="https://www.facebook.com/flavio.moringa" target="_blank">https://www.facebook.com/flaviomoringa</a><br><a href="http://pt.linkedin.com/in/flaviomoringa" target="_blank">http://pt.linkedin.com/in/flaviomoringa</a><br>

</font><font size="1"><a href="http://people.caixamagica.pt/flaviomoringa" target="_blank">http://people.caixamagica.pt/flaviomoringa</a><br><br></font></div>
</div></div></div></div></div></div></div></div>