はじめまして。茂木といいます。
すみません、LibreOffice4.0.2(libreoffice-4.0.2.2タグ)を日本語版VC++ 2010 Expressで
コンパイルに成功した方いらっしゃいます?英語版では成功するのですが、日本語版だと
下記エラーでコケます。おそらく、ソースコード内にutf-8でαとか∞とかが書いてあるのが
原因だと思います。すみませんが、何か上手い回避方法があれば共有お願いしたいです。
■ エラー内容
[build MOD] cui
[build MOD] writerfilter
[build CUT] writerfilter_rtftok
[build MOD] dbaccess
C:/libo/sw/qa/extras/rtfexport/rtfexport.cxx(333) : error C2001: 定数が 2
行目に続いています。
C:/libo/sw/qa/extras/rtfexport/rtfexport.cxx(334) : error C2064: 1
引数を取り込む関数には評価されません。
C:/libo/sw/qa/extras/rtfexport/rtfexport.cxx(334) : error C2143: 構文エラー
: ')' が ';' の前にありません。
[build CUT] sd_uimpress
make[2]: ***
[C:/libo/workdir/wntmsci13/CxxObject/sw/qa/extras/rtfexport/rtfexport.o]
Error 2
■ ビルド環境
Windows 8 Pro 日本語版 (x64)
$ uname -a
CYGWIN_NT-6.2-WOW64 ホスト名 1.7.17(0.262/5/3) 2012-10-19 14:39 i686 Cygwin
$ cat autogen.lastrun
--with-nss-build-tools=/cygdrive/c/opt/mozilla-build
--with-ant-home=/path/to/apache-ant-1.9.0
--with-junit=/path/to/junit-4.10.jar
--disable-activex
--disable-atl
--disable-odk
--enable-pch
--enable-ccache
--enable-dbgutil
--without-help
--without-myspell-dicts
--enable-debug
また、ビルド前に下記のパッチを当てています。当てない場合はfilter-showIncludes.awkがエラーを吐きます。
diff --git a/solenv/gbuild/platform/filter-showIncludes.awk
b/solenv/gbuild/platform/filter-showIncludes.awk
index 9d94f3b..c54e4fd 100755
--- a/solenv/gbuild/platform/filter-showIncludes.awk
+++ b/solenv/gbuild/platform/filter-showIncludes.awk
@@ -31,8 +31,6 @@ BEGIN {
if (!showincludes_prefix) {
showincludes_prefix = "Note: including file:"
}
- regex = "^ *" showincludes_prefix " *"
- pattern = "/" regex "/"
# to match especially drive letters in whitelist case insensitive
IGNORECASE = 1
@@ -42,8 +40,10 @@ BEGIN {
}
{
- if ($0 ~ regex) {
- sub(regex, "")
+ found = index($0, showincludes_prefix)
+ if (found) {
+ $0 = substr($0, found, length(showincludes_prefix))
+ gsub(/^ +/, "")
gsub(/\\/, "/")
gsub(/ /, "\\ ")
if ($0 ~ whitelist) { # filter out system headers
--
茂木 勇
--
Unsubscribe instructions: E-mail to [email protected]
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/ja/discuss/
All messages sent to this list will be publicly archived and cannot be deleted