「fluidsynthの.libをVisual Studioでコンパイルする」の編集履歴(バックアップ)一覧はこちら
追加された行は緑色になります。
削除された行は赤色になります。
<p><strong>FluidSynth<br />
<a href="https://www.fluidsynth.org/">https://www.fluidsynth.org/</a></strong></p>
<p><strong>こちらに FluidSynth という、サウンドフォント シンセサイザーがあるので使わせて頂こうと思います。<br />
2023年9月18日現在、最新版の FluidSynth 2.3.2 をダウンロードします。</strong></p>
<p><strong><img alt="fluid_1.png" src="//img.atwiki.jp/opengl/attach/329/785/fluid_1.png" style="width:997px;height:726px;" /></strong></p>
<p><strong>Recent News の Released FluidSynth 2.3.2 をクリックしてページを移り、<br />
https://github.com/FluidSynth/fluidsynth/releases/tag/v2.3.2 となっている所を<br />
クリックします。</strong></p>
<p><strong><img alt="fluid_2.png" src="//img.atwiki.jp/opengl/attach/329/789/fluid_2.png" style="width:978px;height:561px;" /></strong></p>
<p><strong>64bitは fluidsynth-2.3.2-win10-x64.zip<br />
32bitは fluidsynth-2.3.2-winXP-x86.zip</strong></p>
<p><strong><img alt="fluid_3.png" src="//img.atwiki.jp/opengl/attach/329/790/fluid_3.png" style="height:234px;" /></strong></p>
<p><strong>を、ダウンロードして解凍し、Cドライブ C:\ に移動させます。</strong></p>
<p><strong>FluidSynth<br />
<a href="https://www.fluidsynth.org/">https://www.fluidsynth.org/</a><br />
のページに戻り、Documentation をクリックします。</strong></p>
<p><strong>Building FluidSynth with CMake をクリックします。</strong></p>
<p><strong><img alt="fluid_4.png" src="//img.atwiki.jp/opengl/attach/329/791/fluid_4.png" style="width:974px;height:730px;" /></strong></p>
<p><strong>Building with MinGW on Windows をクリックします。<br />
その下の Building with Visual Studio on Windows ではありません。<br />
MinGW です。</strong></p>
<p><strong><img alt="fluid_5.png" src="//img.atwiki.jp/opengl/attach/329/792/fluid_5.png" style="width:878px;height:646px;" /></strong></p>
<p><strong>64bitの場合は</strong></p>
<p><strong>glib-2.26<br />
glib-dev-2.26<br />
pkg-config-0.23<br />
proxy-libintl<br />
gettext-runtime-0.18</strong></p>
<p><strong>を全部ダウンロードして解凍して下さい。</strong></p>
<p><strong>32bitの場合は</strong></p>
<p><strong>glib-2.28<br />
glib-dev-2.28<br />
pkg-config-0.26<br />
proxy-libintl<br />
gettext-runtime-0.18</strong></p>
<p><strong>を全部ダウンロードして解凍して下さい。</strong></p>
<p><strong><img alt="fluid_6.png" src="//img.atwiki.jp/opengl/attach/329/793/fluid_6.png" style="width:456px;height:502px;" /></strong></p>
<p><strong>Cドライブにfreeswというフォルダを作り、更にその中にbinフォルダを作ります。</strong></p>
<p><strong>そして、freeswフォルダに先ほど解凍したglibとかを全部移動させます。<br />
64bitの場合は64bitのセット、32bitの場合は32bitのセットを使います。</strong></p>
<p><strong><img alt="fluid_7.png" src="//img.atwiki.jp/opengl/attach/329/794/fluid_7.png" style="width:267px;height:348px;" /></strong></p>
<p><strong>そこまで出来たら、パスを通します。<br />
Windowsボタンを右クリックして、システムを選択。</strong></p>
<p><strong><img alt="fluid_8.png" src="//img.atwiki.jp/opengl/attach/329/795/fluid_8.png" style="width:454px;height:624px;" /><br />
システムの詳細設定をクリックします。</strong></p>
<p><strong><img alt="fluid_9.png" src="//img.atwiki.jp/opengl/attach/329/796/fluid_9.png" style="width:539px;height:586px;" /><br />
環境変数ボタンを押します。</strong></p>
<p><strong><img alt="fluid_10.png" src="//img.atwiki.jp/opengl/attach/329/797/fluid_10.png" style="width:479px;height:533px;" /><br />
システム環境変数のPathをクリックして編集ボタンを押します。</strong></p>
<p><strong><img alt="fluid_11.png" src="//img.atwiki.jp/opengl/attach/329/798/fluid_11.png" style="width:624px;height:593px;" /><br />
新規ボタンを押して、<br />
c:\freesw\bin<br />
を入力してOKボタンを押します。</strong></p>
<p><strong><img alt="fluid_12.png" src="//img.atwiki.jp/opengl/attach/329/799/fluid_12.png" style="width:532px;height:507px;" /><br />
これでパスが通りました。</strong></p>
<p> </p>
<p>
<strong>//////////////////////////////////////////////////////////////////////////////////</strong><br />
<strong>GitHub のソースコードから FluidSynth の .lib を作る場合<s>(ダウンロードした場合は要りません)</s><br />
*ダウンロードしたZIPではできませんでした。。。<br />
*GitHub のソースコードから FluidSynth の .lib を作るのが良いようです。。。</strong></p>
<p><strong>FluidSynth - GitHub<br />
<a href="https://github.com/FluidSynth">https://github.com/FluidSynth</a></strong></p>
<p><strong>こちらで FluidSynth のリポジトリをクローンします。<br />
fluidsynth のリンクを右クリックしてリンクのアドレスをコピーします。</strong></p>
<p><strong><img alt="fluid_13.png" src="//img.atwiki.jp/opengl/attach/329/800/fluid_13.png" style="width:986px;height:792px;" /></strong></p>
<p><strong>Visual Studio 2022 を起動して起動ウィザードのリポジトリのクローン(C)を押します。</strong></p>
<p><strong><img alt="fluid_14.png" src="https://img.atwiki.jp/opengl/attach/329/824/fluid_14.png" style="width:1027px;height:689px;" /><br />
リポジトリの場所の所に先ほどのリンクアドレスをペーストします。<br />
そしてクローンボタンを押します。</strong></p>
<p><strong><img alt="fluid_15.png" src="//img.atwiki.jp/opengl/attach/329/802/fluid_15.png" style="width:1025px;height:687px;" /><br />
するとFluidSynthのGit リポジトリをパスの場所にクローンしてくれます。<br />
なにやらユーザー名とメールアドレスの入力を求められますが無視して下さい。</strong></p>
<p><strong><img alt="fluid_16.png" src="//img.atwiki.jp/opengl/attach/329/803/fluid_16.png" style="width:384px;height:416px;" /><br />
メニューの表示、ソリューションエクスプローラーを選択します。</strong></p>
<p><strong><img alt="fluid_17.png" src="//img.atwiki.jp/opengl/attach/329/804/fluid_17.png" style="width:524px;height:218px;" /><br />
ソリューションエクスプローラーのフォルダービュー、fluidsynth を選択しメニューのビルド、すべてビルドを選択します。</strong></p>
<p><strong><img alt="fluid_18.png" src="//img.atwiki.jp/opengl/attach/329/805/fluid_18.png" style="width:390px;height:683px;" /></strong></p>
<p><strong><img alt="fluid_19.png" src="//img.atwiki.jp/opengl/attach/329/806/fluid_19.png" style="width:363px;height:192px;" /></strong></p>
<p><strong>これで FluidSynth の CMAKE 用の構造ができました。</strong><br />
<strong>//////////////////////////////////////////////////////////////////////////////////</strong></p>
<p><strong>CMAKE<br />
https://cmake.org/</strong></p>
<p><strong>上記のサイトのダウンロードからCMAKE GUIをダウンロードします。<br />
こちらも64bitのx64 インストーラーかZIP、32bitのi386 インストーラーかZIPがあります。<br />
使う方をインストールして起動します。<br />
*CMAKE のバージョン 3.27.4 はバグが有り、正常なファイルが生成されません。<br />
*CMAKE の安定板 3.27.5 を使って下さい。<br />
*インストーラー版よりZIP版を解凍した方が良いようです。</strong></p>
<p><strong><img alt="fluid_20.png" src="//img.atwiki.jp/opengl/attach/329/807/fluid_20.png" style="width:746px;height:450px;" /></strong></p>
<p><strong>CMAKE を起動したら、Browse Source でダウンロードした fluidsynth のフォルダか、先ほど Visual
Studio 2022 で<br />
作った fluidsynth のフォルダを指定します。<br />
Browse Build で CMAKE の出力先を指定します。<br />
Configure ボタンを押して Configuring done となったら設定完了。<br />
Generate ボタンで Generating done となったら<s>念願の FluidSynth の .lib
が出来上がりです。</s></strong></p>
<p><img alt="fluid_21_2.png" src="//img.atwiki.jp/opengl/attach/329/817/fluid_21_2.png" style="width:610px;height:654px;" /></p>
<p><strong><img alt="fluid_22.png" src="//img.atwiki.jp/opengl/attach/329/809/fluid_22.png" style="width:513px;height:383px;" /></strong></p>
<p><strong>2023/9/19追記<br />
まだできてませんでした。。。<br />
ここまでの事をやって Visual Studio 2022 用のソリューションファイル、 FluidSynth.sln が出来上がっているので<br />
CMAKEの出力先の FluidSynth.sln を開きます。</strong></p>
<p><strong><img alt="fluid_23.png" src="//img.atwiki.jp/opengl/attach/329/810/fluid_23.png" style="width:1135px;height:644px;" /><br />
そして、構成設定をDebugのまま、メニューのビルド、ソリューションのビルドを選択します。</strong></p>
<p><strong><img alt="fluid_24.png" src="//img.atwiki.jp/opengl/attach/329/811/fluid_24.png" style="width:337px;height:209px;" /></strong></p>
<p><strong><img alt="fluid_25.png" src="//img.atwiki.jp/opengl/attach/329/812/fluid_25.png" style="width:626px;height:267px;" /><br />
すると fluid(CMAKE出力先)\src\Debug にデバッグ版の fluidsynth.lib
その他が出来上がっています。</strong></p>
<p><strong><img alt="fluid_28.png" src="//img.atwiki.jp/opengl/attach/329/815/fluid_28.png" style="width:907px;height:647px;" /><br />
続け様に構成設定を Release にします。</strong></p>
<p><strong><img alt="fluid_26.png" src="//img.atwiki.jp/opengl/attach/329/813/fluid_26.png" style="width:324px;height:216px;" /><br />
そして、メニューのビルド、ソリューションのビルドを選択します。</strong></p>
<p><strong><img alt="fluid_27.png" src="//img.atwiki.jp/opengl/attach/329/814/fluid_27.png" style="width:626px;height:227px;" /><br />
すると fluid(CMAKE出力先)\src\Release にリリース版の fluidsynth.lib
その他が出来上がっています。</strong></p>
<p><strong><img alt="fluid_29.png" src="//img.atwiki.jp/opengl/attach/329/816/fluid_29.png" style="width:910px;height:643px;" /></strong></p>
<p><strong>これでやっと念願の FluidSynth の .lib が出来上がりです。</strong></p>
<p><br />
<strong>良いですね。(・∀・)<br />
意外にもCMAKEの使い方がわからなくて詰んでる初心者の方が結構居るのではないかと思います。</strong></p>
<p> </p>
<p> </p>
<p><strong>FluidSynth<br />
<a href="https://www.fluidsynth.org/">https://www.fluidsynth.org/</a></strong></p>
<p><strong>こちらに FluidSynth という、サウンドフォント シンセサイザーがあるので使わせて頂こうと思います。<br />
2023年9月18日現在、最新版の FluidSynth 2.3.2 をダウンロードします。</strong></p>
<p><strong><img alt="fluid_1.png" src="//img.atwiki.jp/opengl/attach/329/785/fluid_1.png" style="width:997px;height:726px;" /></strong></p>
<p><strong>Recent News の Released FluidSynth 2.3.2 をクリックしてページを移り、<br />
https://github.com/FluidSynth/fluidsynth/releases/tag/v2.3.2 となっている所を<br />
クリックします。</strong></p>
<p><strong><img alt="fluid_2.png" src="//img.atwiki.jp/opengl/attach/329/789/fluid_2.png" style="width:978px;height:561px;" /></strong></p>
<p><strong>64bitは fluidsynth-2.3.2-win10-x64.zip<br />
32bitは fluidsynth-2.3.2-winXP-x86.zip</strong></p>
<p><strong><img alt="fluid_3.png" src="//img.atwiki.jp/opengl/attach/329/790/fluid_3.png" style="height:234px;" /></strong></p>
<p><strong>を、ダウンロードして解凍し、Cドライブ C:\ に移動させます。</strong></p>
<p><strong>FluidSynth<br />
<a href="https://www.fluidsynth.org/">https://www.fluidsynth.org/</a><br />
のページに戻り、Documentation をクリックします。</strong></p>
<p><strong>Building FluidSynth with CMake をクリックします。</strong></p>
<p><strong><img alt="fluid_4.png" src="//img.atwiki.jp/opengl/attach/329/791/fluid_4.png" style="width:974px;height:730px;" /></strong></p>
<p><strong>Building with MinGW on Windows をクリックします。<br />
その下の Building with Visual Studio on Windows ではありません。<br />
MinGW です。</strong></p>
<p><strong><img alt="fluid_5.png" src="//img.atwiki.jp/opengl/attach/329/792/fluid_5.png" style="width:878px;height:646px;" /></strong></p>
<p><strong>64bitの場合は</strong></p>
<p><strong>glib-2.26<br />
glib-dev-2.26<br />
pkg-config-0.23<br />
proxy-libintl<br />
gettext-runtime-0.18</strong></p>
<p><strong>を全部ダウンロードして解凍して下さい。</strong></p>
<p><strong>32bitの場合は</strong></p>
<p><strong>glib-2.28<br />
glib-dev-2.28<br />
pkg-config-0.26<br />
proxy-libintl<br />
gettext-runtime-0.18</strong></p>
<p><strong>を全部ダウンロードして解凍して下さい。</strong></p>
<p><strong><img alt="fluid_6.png" src="//img.atwiki.jp/opengl/attach/329/793/fluid_6.png" style="width:456px;height:502px;" /></strong></p>
<p><strong>Cドライブにfreeswというフォルダを作り、更にその中にbinフォルダを作ります。</strong></p>
<p><strong>そして、freeswフォルダに先ほど解凍したglibとかを全部移動させます。<br />
64bitの場合は64bitのセット、32bitの場合は32bitのセットを使います。</strong></p>
<p><strong><img alt="fluid_7.png" src="//img.atwiki.jp/opengl/attach/329/794/fluid_7.png" style="width:267px;height:348px;" /></strong></p>
<p><strong>そこまで出来たら、パスを通します。<br />
Windowsボタンを右クリックして、システムを選択。</strong></p>
<p><strong><img alt="fluid_8.png" src="//img.atwiki.jp/opengl/attach/329/795/fluid_8.png" style="width:454px;height:624px;" /><br />
システムの詳細設定をクリックします。</strong></p>
<p><strong><img alt="fluid_9.png" src="//img.atwiki.jp/opengl/attach/329/796/fluid_9.png" style="width:539px;height:586px;" /><br />
環境変数ボタンを押します。</strong></p>
<p><strong><img alt="fluid_10.png" src="//img.atwiki.jp/opengl/attach/329/797/fluid_10.png" style="width:479px;height:533px;" /><br />
システム環境変数のPathをクリックして編集ボタンを押します。</strong></p>
<p><strong><img alt="fluid_11.png" src="//img.atwiki.jp/opengl/attach/329/798/fluid_11.png" style="width:624px;height:593px;" /><br />
新規ボタンを押して、<br />
c:\freesw\bin<br />
を入力してOKボタンを押します。</strong></p>
<p><strong><img alt="fluid_12.png" src="//img.atwiki.jp/opengl/attach/329/799/fluid_12.png" style="width:532px;height:507px;" /><br />
これでパスが通りました。</strong></p>
<p> </p>
<p>
<strong>//////////////////////////////////////////////////////////////////////////////////</strong><br />
<strong>GitHub のソースコードから FluidSynth の .lib を作る場合<s>(ダウンロードした場合は要りません)</s><br />
*ダウンロードしたZIPではできませんでした。。。<br />
*GitHub のソースコードから FluidSynth の .lib を作るのが良いようです。。。</strong></p>
<p><strong>FluidSynth - GitHub<br />
<a href="https://github.com/FluidSynth">https://github.com/FluidSynth</a></strong></p>
<p><strong>こちらで FluidSynth のリポジトリをクローンします。<br />
fluidsynth のリンクを右クリックしてリンクのアドレスをコピーします。</strong></p>
<p><strong><img alt="fluid_13.png" src="//img.atwiki.jp/opengl/attach/329/800/fluid_13.png" style="width:986px;height:792px;" /></strong></p>
<p><strong>Visual Studio 2022 を起動して起動ウィザードのリポジトリのクローン(C)を押します。</strong></p>
<p><strong><img alt="fluid_14.png" src="//img.atwiki.jp/opengl/attach/329/824/fluid_14.png" style="width:1027px;height:689px;" /><br />
リポジトリの場所の所に先ほどのリンクアドレスをペーストします。<br />
そしてクローンボタンを押します。</strong></p>
<p><strong><img alt="fluid_15.png" src="//img.atwiki.jp/opengl/attach/329/802/fluid_15.png" style="width:1025px;height:687px;" /><br />
するとFluidSynthのGit リポジトリをパスの場所にクローンしてくれます。<br />
なにやらユーザー名とメールアドレスの入力を求められますが無視して下さい。</strong></p>
<p><strong><img alt="fluid_16.png" src="//img.atwiki.jp/opengl/attach/329/803/fluid_16.png" style="width:384px;height:416px;" /><br />
メニューの表示、ソリューションエクスプローラーを選択します。</strong></p>
<p><strong><img alt="fluid_17.png" src="//img.atwiki.jp/opengl/attach/329/804/fluid_17.png" style="width:524px;height:218px;" /><br />
ソリューションエクスプローラーのフォルダービューをダブルクリック、fluidsynth
を選択しメニューのビルド、すべてビルドを選択します。</strong></p>
<p><strong><img alt="fluid_18.png" src="//img.atwiki.jp/opengl/attach/329/805/fluid_18.png" style="width:390px;height:683px;" /></strong></p>
<p><strong><img alt="fluid_19.png" src="//img.atwiki.jp/opengl/attach/329/806/fluid_19.png" style="width:363px;height:192px;" /></strong></p>
<p><strong>これで FluidSynth の CMAKE 用の構造ができました。</strong><br />
<strong>//////////////////////////////////////////////////////////////////////////////////</strong></p>
<p><strong>CMAKE<br />
https://cmake.org/</strong></p>
<p><strong>上記のサイトのダウンロードからCMAKE GUIをダウンロードします。<br />
こちらも64bitのx64 インストーラーかZIP、32bitのi386 インストーラーかZIPがあります。<br />
使う方をインストールして起動します。<br />
*CMAKE のバージョン 3.27.4 はバグが有り、正常なファイルが生成されません。<br />
*CMAKE の安定板 3.27.5 を使って下さい。<br />
*インストーラー版よりZIP版を解凍した方が良いようです。</strong></p>
<p><strong><img alt="fluid_20.png" src="//img.atwiki.jp/opengl/attach/329/807/fluid_20.png" style="width:746px;height:450px;" /></strong></p>
<p><strong>CMAKE を起動したら、Browse Source でダウンロードした fluidsynth のフォルダか、先ほど Visual
Studio 2022 で<br />
作った fluidsynth のフォルダを指定します。<br />
Browse Build で CMAKE の出力先を指定します。<br />
Configure ボタンを押して Configuring done となったら設定完了。<br />
Generate ボタンで Generating done となったら<s>念願の FluidSynth の .lib
が出来上がりです。</s></strong></p>
<p><img alt="fluid_21_2.png" src="//img.atwiki.jp/opengl/attach/329/817/fluid_21_2.png" style="width:610px;height:654px;" /></p>
<p><strong><img alt="fluid_22.png" src="//img.atwiki.jp/opengl/attach/329/809/fluid_22.png" style="width:513px;height:383px;" /></strong></p>
<p><strong>2023/9/19追記<br />
まだできてませんでした。。。<br />
ここまでの事をやって Visual Studio 2022 用のソリューションファイル、 FluidSynth.sln が出来上がっているので<br />
CMAKEの出力先の FluidSynth.sln を開きます。</strong></p>
<p><strong><img alt="fluid_23.png" src="//img.atwiki.jp/opengl/attach/329/810/fluid_23.png" style="width:1135px;height:644px;" /><br />
そして、構成設定をDebugのまま、メニューのビルド、ソリューションのビルドを選択します。</strong></p>
<p><strong><img alt="fluid_24.png" src="//img.atwiki.jp/opengl/attach/329/811/fluid_24.png" style="width:337px;height:209px;" /></strong></p>
<p><strong><img alt="fluid_25.png" src="//img.atwiki.jp/opengl/attach/329/812/fluid_25.png" style="width:626px;height:267px;" /><br />
すると fluid(CMAKE出力先)\src\Debug にデバッグ版の fluidsynth.lib
その他が出来上がっています。</strong></p>
<p><strong><img alt="fluid_28.png" src="//img.atwiki.jp/opengl/attach/329/815/fluid_28.png" style="width:907px;height:647px;" /><br />
続け様に構成設定を Release にします。</strong></p>
<p><strong><img alt="fluid_26.png" src="//img.atwiki.jp/opengl/attach/329/813/fluid_26.png" style="width:324px;height:216px;" /><br />
そして、メニューのビルド、ソリューションのビルドを選択します。</strong></p>
<p><strong><img alt="fluid_27.png" src="//img.atwiki.jp/opengl/attach/329/814/fluid_27.png" style="width:626px;height:227px;" /><br />
すると fluid(CMAKE出力先)\src\Release にリリース版の fluidsynth.lib
その他が出来上がっています。</strong></p>
<p><strong><img alt="fluid_29.png" src="//img.atwiki.jp/opengl/attach/329/816/fluid_29.png" style="width:910px;height:643px;" /></strong></p>
<p><strong>これでやっと念願の FluidSynth の .lib が出来上がりです。</strong></p>
<p><br />
<strong>良いですね。(・∀・)<br />
意外にもCMAKEの使い方がわからなくて詰んでる初心者の方が結構居るのではないかと思います。</strong></p>
<p> </p>
<p> </p>