ソースからvlcを作成できません:libsshエラー

ソースからvlcを作成できません:libsshエラー

vlc-2.1.5次の設定コマンドを使用してソースからインストールしようとしました。

./configure --prefix=/usr/ --disable-vlc --disable-lua --disable-mad --disable-swscale --disable-postproc --disable-xcb --disable-alsa

エラーなしで構成が完全に実行されます。しかし、試してみると、makeこれらのエラーが発生します。

make[5]: Entering directory `/usr/src/vlc-2.1.5/modules/access'
CC       libaccess_sftp_plugin_la-sftp.lo
sftp.c: In function �Open�:
sftp.c:152:15: error: �LIBSSH2_ERROR_EAGAIN� undeclared (first use in this function)
sftp.c:152:15: note: each undeclared identifier is reported only once for each function it appears in
sftp.c:161:5: error: implicit declaration of function �libssh2_session_set_blocking� [-Werror=implicit-function-declaration]
sftp.c:164:5: error: unknown type name �LIBSSH2_KNOWNHOSTS
sftp.c:164:5: error: implicit declaration of function �libssh2_knownhost_init� [-Werror=implicit-function-declaration]
sftp.c:164:42: warning: initialization makes pointer from integer without a cast [enabled by default]
sftp.c:172:9: error: implicit declaration of function �libssh2_knownhost_readfile� [-Werror=implicit-function-declaration]
sftp.c:173:17: error: �LIBSSH2_KNOWNHOST_FILE_OPENSSH� undeclared (first use in this function)
sftp.c:178:5: error: implicit declaration of function �libssh2_session_hostkey� [-Werror=implicit-function-declaration]
sftp.c:178:31: warning: initialization makes pointer from integer without a cast [enabled by default]
sftp.c:180:5: error: implicit declaration of function �libssh2_knownhost_check� [-Werror=implicit-function-declaration]
sftp.c:182:42: error: �LIBSSH2_KNOWNHOST_TYPE_PLAIN� undeclared (first use in this function)
sftp.c:183:42: error: �LIBSSH2_KNOWNHOST_KEYENC_RAW� undeclared (first use in this function)
sftp.c:186:5: error: implicit declaration of function �libssh2_knownhost_free� [-Werror=implicit-function-declaration]
sftp.c:191:10: error: �LIBSSH2_KNOWNHOST_CHECK_FAILURE� undeclared (first use in this function)
sftp.c:192:10: error: �LIBSSH2_KNOWNHOST_CHECK_NOTFOUND� undeclared (first use in this function)
sftp.c:195:10: error: �LIBSSH2_KNOWNHOST_CHECK_MATCH� undeclared (first use in this function)
sftp.c:198:10: error: �LIBSSH2_KNOWNHOST_CHECK_MISMATCH� undeclared (first use in this function)
cc1: some warnings being treated as errors
make[5]: *** [libaccess_sftp_plugin_la-sftp.lo] Error 1
make[5]: Leaving directory `/usr/src/vlc-2.1.5/modules/access'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr/src/vlc-2.1.5/modules/access'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/src/vlc-2.1.5/modules/access'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/vlc-2.1.5/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/vlc-2.1.5'
make: *** [all] Error 2

それから試しました。このリンクしかし、同じエラーが再発生します。

私のオペレーティングシステムのディストリビューションはDebian 7.5です。エラーが消えるようにするにはどうすればよいですか?

ベストアンサー1

これらの未定義シンボル(LIBSSH2_ERROR_EAGAIN、...)はすべて次のものです。libssh2。 VLCをコンパイルするには、このライブラリをインストールする必要があります。何らかの理由で、./configureスクリプトはこれについて警告しません。

Webサイトからダウンロードすることlibssh2もできますし、パッケージマネージャを使用する方が良いでしょう。たとえばapt-get...

$ sudo apt-get install libssh2-1 libssh2-1-dev

手動でコンパイルすると、インストールする必要がある追加の依存関係が発生する可能性があります。スクリプトはconfigureこれを言わなければなりません。

もう1つの解決策は、単にVLCのSFTPサポートを無効にすることです。

./configure --disable-sftp --prefix=/usr/ --disable-vlc --disable-lua --disable-mad --disable-swscale --disable-postproc --disable-xcb --disable-alsa

参考までに機能を無効にすることを忘れないでください。依存関係の問題に対する実用的な解決策ではありません。...最終的にはこれを処理する必要があります(またはこの場合、最も適切なソリューションであるパッケージマネージャを使用する必要があります)。

おすすめ記事