owncloud クライアントの構築中にいくつかのインストールエラーが発生しました。

owncloud クライアントの構築中にいくつかのインストールエラーが発生しました。

OwnCloudクライアントを開発したいので、GitHubでOwnCloudリポジトリのクライアントを複製し、この記事を読んでいました。文書。まず、私のシステム属性について話したいと思います。私はUbuntu 18.04 LTS(64ビット)を使用しているので、この記事のUbuntuステップを試してみました。

次の手順を試しました。

システムのソースリストにソースリンクを追加しました。

echo 'deb-src http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04/ /' >> /etc/apt/sources.list.d/owncloud-client.list

その後、システムを更新しました。

apt-get update;

最後に、build-dep機能を試してみました。これは、OwnCloudドキュメントにこのコマンドが表示されているためです。

 apt-get build-dep owncloud-client

最初の2つのステップは成功しましたが、最後のステップではエラーが発生しました。

Reading package lists... Done 
Reading package lists... Done

Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 builddeps:owncloud-client : Depends: ocqt5101-qt5-qmake but it is not installable
                             Depends: ocqt5101-qttools5-dev-tools but it is not installable
                             Depends: ocqt5101-qtbase5-dev but it is not installable
                             Depends: ocqt5101-qt5keychain-dev (>= 0.7.0) but it is not installable
                             Depends: ocqt5101-libqt5webkit5-dev (>= 2.2.0) but it is not installable
                             Depends: ocqt5101-qtsvg5 but it is not installable
E: Unable to correct problems, you have held broken packages.

この依存関係を次のように手動でコンパイルしてみました。

sudo apt-get build-dep ocqt5101-qt5-qmake

しかし、うまくいきません。私は同じ結果を得ます。

このソースをどのように構築しますか?

ベストアンサー1

以下を使用して独自のクラウドクライアントを構築する

  1. apt-get build-dep
  2. または、github.comでソースコードを複製してコンパイルします(cmakeを使用)。

開発者として、あなたはおそらく2を好む。

1.:

dep以下から必要なバイナリをダウンロードできます。http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_18.04/amd64

dpkgを使用してインストールします。 (つまり、dpkg -i ocqt5101-qt5-qmake_5.10.1-1+1.1_amd64.debpwddpkg -i *.debにダウンロードされたすべてのdebファイル)

QT5はアプリケーションフレームワークです。ソースからコンパイルする必要はありません。

2. 上記の debs を使用するか、次から直接使用できます。qtウェブサイト

必要なビルドツールがインストールされていることを確認してください。

apt-get install build-essential

頑張ってください!

おすすめ記事