JUCE Start
2021-12-29
本節將說明如何在MacOS上構建JUCE project
Getting started
Git Clone JUCE framework: https://github.com/juce-framework/JUCE
Then checkout the branch to the newest one

進入如下路徑:/JUCE/extras/Projucer/Builds/MacOSX
接著使用Xcode 打開 Projucer.xcodeproj,對此專案直接編譯,編譯成功會出現如下視窗

The new project window
如上圖視窗,編譯成功的為juce 專案的產生器,左側欄位可以指定專案類型
在我們產生Juce專案前,先對Juce 專案Global path 做一些設定

先確認 (1) Path to Juce 還有 (2) Juce Modules 路徑是否正確

Export the project and open in your native IDE
我們先選擇我們的專案類型為pligin-in: Basic
接著填入我們的project Name, 最後點選Create Project,指定專案儲存的位置

專案產生並儲存成功後,會呈現下圖

在檔案總管下也能找到副檔名為jucer的juce project,也就是上圖

最後在Projucer點選xcode的圖示,來產生xcode專案

接著對其輸出內容切換成standalone Plugin,再對其編譯執行

編譯完成後,就完成第一個plugin啦
