- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在尝试运行 spotify 示例。我已经成功地编译了它们,但我无法运行任何东西。当即执行 ./jukebox.o 时,它只是说“无法执行二进制文件”。如何运行示例?
这是我做的时候得到的:
libspotify/examples$ 使 LIBSPOTIFY_PATH=../../../..对于自动点唱机 spshell 本地文件中的一个;做 -C $a LIBSPOTIFY_PATH="/home/alexander/slask/libspotify-12.1.51-Linux-x86_64-release"全部;完毕make[1]: 进入目录 /home/alexander/slask/libspotify-12.1.51-Linux-x86_64-release/share/doc/libspotify/examples/jukebox'
/home/alexander/slask/libspotify-12.1.51-Linux-x86_64-release/share/doc/libspotify/examples/jukebox'make[1]: 进入目录
cc -I/usr/include/alsa -I/home/alexander/slask/libspotify-12.1.51-Linux-x86_64-release/include -Wall -Wl,-rpath,/home/alexander/slask/libspotify-12.1。 51-Linux-x86_64-release/lib -L/home/alexander/slask/libspotify-12.1.51-Linux-x86_64-release/lib jukebox.o appkey.o alsa-audio.o audio.o -o jukebox -lasound -lspotify
/usr/bin/ld: alsa-audio.o: 未定义对符号 'pthread_create@@GLIBC_2.2.5' 的引用
/lib/x86_64-linux-gnu/libpthread.so.0: 添加符号时出错:命令行中缺少 DSO
collect2:错误:ld 返回 1 退出状态
make[1]: *** [自动点唱机] 错误 1
make[1]: 离开目录/home/alexander/slask/libspotify-12.1.51-Linux-x86_64-release/share/doc/libspotify/examples/spshell'
/home/alexander/slask/libspotify-12.1.51-Linux-x86_64-release/share/doc/libspotify/examples/spshell'make[1]: 进入目录
cc -I/home/alexander/slask/libspotify-12.1.51-Linux-x86_64-release/include -Wall -Wl,-rpath,/home/alexander/slask/libspotify-12.1.51-Linux-x86_64-release/lib -L/home/alexander/slask/libspotify-12.1.51-Linux-x86_64-release/lib spshell.o spshell_posix.o appkey.o cmd.o browse.o search.o toplist.o inbox.o star.o playlist.o test.o -lreadline -lspotify -o spshell
/usr/bin/ld: spshell_posix.o: 未定义对符号 'pthread_create@@GLIBC_2.2.5' 的引用
/lib/x86_64-linux-gnu/libpthread.so.0: 添加符号时出错:命令行中缺少 DSO
collect2:错误:ld 返回 1 退出状态
make[1]: *** [spshell] 错误 1
make[1]: 离开目录/home/alexander/slask/libspotify-12.1.51-Linux-x86_64-release/share/doc/libspotify/examples/localfiles'
/home/alexander/slask/libspotify-12.1.51-Linux-x86_64-release/share/doc/libspotify/examples/localfiles'
make[1]: 离开目录
最佳答案
我在 64 位 Ubuntu 上遇到了类似的问题。将 examples/common.mk 中的 LDLIBS 行编辑为如下内容
LDLIBS += -lspotify -lpthread -ldl
关于c - 运行 libspotify 示例,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22026249/
我在 Windows 上使用 libspotify 12.1.51。虽然它大部分都按预期工作,但我在 sp_offline_sync_status 上遇到了一些困难: typedef struct s
看来 Apple 从 5 月 1 日起收紧了应用程序商店提交。我有一个使用 Spotify 的应用程序,并且已多次被 App Store 接受。在最近的更新中,该应用程序因以下原因被拒绝... Non
当我在回调函数logged_in中实现以下函数时,出现错误“资源尚未加载”。如何解决? link=sp_link_create_from_string("spotify:track:1NrJYpdAi
关闭。这个问题需要更多focused .它目前不接受答案。 想改进这个问题吗? 更新问题,使其只关注一个问题 editing this post . 关闭 9 年前。 Improve this qu
我们正在使用 libspotify 来更新我们针对单个帐户生成的播放列表,这些播放列表需要随着时间的推移保持最新。我们正在使用 spotify-api-server 的一个分支来执行此操作 https
libspotify 的使用条款规定 key 应以安全方式存储。存储我发现的 key 的唯一建议是编译您的应用程序并分发二进制文件。我很难将其视为安全性以外的任何其他东西,因为使用调试器可以轻松检索
我刚刚下载了 libspotify 并正在查看示例并了解更多信息。我想知道当前版本的 libspotify 是否支持 oauth?我试过搜索但没有找到任何东西,所以我在这里问,以防万一我错过了一个重要
我的问题很简单: sp_session_relogin 是如何工作的? 这是我尝试使用它的方法。 bool login(const char* login, const char* password,
目前我们正在 win 7 64 位系统中实现 Libspotify。除了播放之外,一切似乎都正常。我们从回调中获取数据,但即使在保存的音频上使用声音,也充满了异常。因此为了进一步研究,我们采用了 wi
我看过libspotify文档,并且无法找到允许我获取当前用户正在关注的艺术家的句柄列表的函数。是不是我错过了什么,或者它还不是公共(public) API 的一部分? 最佳答案 目前,否。 但是,您
我有一个 VU+ Duo,它是一个类似于 Dreambox 的 SAT 接收器。我也订阅了 Spotify Premium,并且有兴趣为我的设备开发一个 Spotify 插件。 我可以从 Spotif
我正在尝试运行 spotify 示例。我已经成功地编译了它们,但我无法运行任何东西。当即执行 ./jukebox.o 时,它只是说“无法执行二进制文件”。如何运行示例? 这是我做的时候得到的: lib
我正在研究 Spotify 元数据 API,目前唯一可用的数据是其音乐目录。 我希望能够提取 Spotify 用户的播放列表/最频繁/最近播放的轨道或艺术家。通过查看Spotify Apps API,
我在 Raspberry Pi 上使用 libspotify 12.1.103.gd51f6226 Release Linux-armv6-bcm2708hardfp,我认为按照自述文件中的说明一切正
使用桌面版 Spotify,可以将本地 MP3 文件添加到播放列表并播放。 libspotify 也可以实现这一点吗? 最佳答案 事实并非如此 - libSpotify 只能解码 Spotify 自己
spotify 流的采样率是多少? libspotify 示例播放轨道中的回调函数“music_delivery”直接从 libspotify 获取音频格式。音频是否已经解码为原始波形数据?采样率默认
我正在为 XBMC 媒体中心开发一个插件。 插件本身是用 python 编写的,依赖于 ctypes 模块来访问 libspotify 的功能。问题是我在 iOS 平台上发现了一个障碍,因为它的 li
我最近开始使用 libspotify,并基于 jukebox.h 的示例代码编写了一个简单的 hello world。 我的代码目前看起来像这样: #include #include "libspo
任何人都可以帮助破译 libspotify get_audio_buffer_stats 回调的正确实现。具体来说,我们应该填充一个 sp_audio_buffer_stats 缓冲区,由样本和口吃组
我想开发一个使用 libspotify(最新最好的 libspotify-12.1.51-Linux-armv6)的 Linux 应用程序。我面临的问题是,与当前 libspotify 使用的版本相比
我是一名优秀的程序员,十分优秀!