初心者:QMAKEを使用してFaustLiveをコンパイルしてUbuntu Studio 20.04にインストールする方法は?linux-g ++を使用したqmakeでMakefileを作成できません
FaustLiveは、Faust(オープンソース、コンパイル済みオーディオプログラミング言語)のオープンソースプロトタイピング環境です。これがFaustLiveのGitHubです。https://github.com/grame-cncm/faustlive
ターミナルからFaustを正常にコンパイルしてインストールした後、Ubuntu Studio20.04のFaustLiveで同じことを行うのに問題があります。ビルド手順は次のとおりです。https://github.com/grame-cncm/faustlive/tree/master/Build
リストされているすべての前提条件パッケージをインストールしています(私が知る限り、ターミナル/ Linux初心者として)。私は彼らの「プロジェクト生成」のステップで立ち往生しています。指示に従ってgithubのクローンを作成したFaustLiveフォルダーにディレクトリを変更した後、次のコマンドを実行しようとしています。
$ qmake -spec /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++/qmake.conf /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++/qplatformdefs.h
実行するとき、qmakeはこれを繰り返すだけです:
/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++/qplatformdefs.h:3: Extra characters after test expression.
それはh:3からh:59まで繰り返され、その間の数行をスキップします。最終的な出力は次のとおりです。Error processing project file: /usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++/qplatformdefs.h
ここから何をしますか?
回答
ArchLinuxのPKGBUILDを使用すると、Ubuntuに対して次のメソッドを取得できます。
sudo apt-add-repository universe
sudo apt-get install build-essential qt5-default faust qrencode libjack-jackd2-dev \
libmicrohttpd-dev liblo-dev libsndfile1-dev libasound2-dev libcurl4-openssl-dev
cd ~/Downloads
git clone https://github.com/grame-cncm/faustlive.git
cd faustlive
git submodule update --init
cd Build
make
sudo cp FaustLive/FaustLive /usr/local/bin
sudo mkdir -p /usr/local/share/applications/
sed "s|Icon=Faustlive|Icon=/usr/local/share/icons/hicolor/256x256/apps/FaustLive.png|" -i rsrc/FaustLive.desktop
sudo cp rsrc/FaustLive.desktop /usr/local/share/applications/
sudo mkdir -p /usr/local/share/icons/hicolor/256x256/apps
sudo cp ../Resources/FaustLive.png /usr/local/share/icons/hicolor/256x256/apps
その結果、ショートカットを使用してFaustLiveを実行できるようになります。