使 libspotify 中的示例在 Windows 7 下工作 [英] Getting the examples in libspotify to work under Windows 7

查看:28
本文介绍了使 libspotify 中的示例在 Windows 7 下工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的 Win 7 机器上开始使用 libspotify,但我不知道如何进行所有设置,以便我什至可以运行包中包含的示例.我有一个 Spotify Premium 帐户,我尝试通过将 libspotify.dll 复制到 c:\windows、c:\windows\system32 和 c:\windows\SysWOW64 来安装 libspotify,并且还更改了路径变量以包含 libspotify 所在的路径.dll 已找到,但我仍然不明白如何让示例工作.

I want to get started with libspotify on my Win 7 machine but I dont have a clue on how to get it all setup so that I can even run the examples included in the pack. I have a Spotify Premium account and I have tried installing libspotify by copying libspotify.dll to c:\windows, c:\windows\system32 and to c:\windows\SysWOW64 and also changed the path variable to include the path where libspotify.dll is located but I still dont understand how to get the examples to work.

我已经安装了 Code::Blocks,但是一旦我尝试导入并运行/examples/文件夹中包含的任何 .c 文件,我就会收到各种错误消息.事实是,我什至不确定如何安装 libspotify,而且文档绝对不存在,因此对于初学者来说,甚至不可能有机会开始使用.是否有人可以对如何安装 libspotify 并在 Win 7(64 位)机器上启动和运行示例进行简单的演练?

I have Code::Blocks installed but as soon as I try to import and run any of the .c files included in the /examples/ folder I get all kinds of error messages. The truth is that I am not even sure how to install libspotify and the documentation is absolutely non existent so for a beginner it is impossible to even have a chance at getting started. Is there somebody out there who can do a simple walkthrough on how to install libspotify and get the examples up and running on a Win 7 (64-bit) machine?

我真正想用 libspotify 做的唯一一件事就是能够通过命令提示符或类似的东西能够在 Spotify 中排队一首歌,所以我真的不关心其他部分.但只要我能启动并运行一个示例,我可能可以自己解决这个问题.

The only thing I really want to do with libspotify is to be able to via a command prompt or something like that be able to queue a song in Spotify so I dont really care about the other parts. But I can probably solve that by myself as long as I can get an example up and running.

推荐答案

遗憾的是 libspotify 在 Windows 上没有得到很好的支持,事实上示例代码甚至无法构建,因为没有 Windows 音频驱动程序.启动并运行的最佳选择是在 VirtualBox 环境中使用 mingw 或 linux.

Sadly libspotify is not well-supported on Windows, in fact the example code won't even build because there is no Windows audio driver for them. Your best bet to just get up and running would be to use mingw, or linux in a VirtualBox environment.

这篇关于使 libspotify 中的示例在 Windows 7 下工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆