📢 Webサイト閉鎖と移転のお知らせ
このWebサイトは2026年9月に閉鎖いたします。
新しい記事は移転先で追加しております。(旧サイトでは記事を追加しておりません)

55行目: 55行目:
  make -j $(nproc)
  make -j $(nproc)
  make install
  make install
<br>
ビルドテストを行う場合、<code>make -j $(nproc) check</code>コマンドを実行する。<br>
また、Mono-test-installスクリプトファイルを実行して、Monoのインストールに関連する問題を診断することもできる。<br>
scripts/mono-test-install
<br>
<br>
ビルドの詳細を知りたい場合は、[https://www.mono-project.com/docs/ Monoの公式Webサイト]を参照すること。<br>
ビルドの詳細を知りたい場合は、[https://www.mono-project.com/docs/ Monoの公式Webサイト]を参照すること。<br>
71行目: 67行目:
  make
  make
  make install
  make install
<br>
==== ビルドテスト ====
ビルドテストを行う場合、<code>make -j $(nproc) check</code>コマンドを実行する。<br>
また、Mono-test-installスクリプトファイルを実行して、Monoのインストールに関連する問題を診断することもできる。<br>
scripts/mono-test-install
<br>
上記のコマンドを実行した時、以下に示すようなエラーが出力される場合がある。<br>
Your system has a broken System.Drawing setup
<br>
この時、libgdiplusパッケージをインストールする。<br>
sudo zypper install libgdiplus0 libgdiplus-devel
<br>
<onoがSystem.Drawingが壊れていると結論づけた原因となったエラーメッセージを見るために、このプロセスを手動で行うことができる。<br>
<syntaxhighlight lang="c#">
// <C#のソースコードファイル名>.cs
using System;
using System.Drawing;
class X {
    static void Main ()
    {
      Bitmap b = new Bitmap (100, 100);
    }
}
</syntaxhighlight>
<br>
# ビルド
mcs -pkg:dotnet <C#のソースコードファイル名>.cs
# 実行
mono <C#の実行ファイル名>.exe
<br><br>
<br><br>