简体   繁体   English

如何在带有Netbeans的Ubuntu上安装OpenAL? -C ++

[英]How to install OpenAL on Ubuntu with Netbeans? - C++

I have the Netbeans IDE installed on my Ubuntu machine. 我在Ubuntu机器上安装了Netbeans IDE。 I have the libopenal-dev installed trough the console and I can confirm the header files are in place. 我通过控制台安装了libopenal-dev ,可以确认头文件是否在适当的位置。

How do I configure Netbeans to build a program with OpenAL? 如何配置Netbeans以使用OpenAL构建程序? Like do I need to set extra Linker Libraries (which I would expect) and where would those be located? 就像我需要设置额外的链接器库(我期望的那样),这些库位于何处?

Its always informative to start off with a new library like openal by compiling manually at the command line. 通过在命令行手动编译以openal之类的新库开始总是很有帮助的。 Here is a simple example : 这是一个简单的例子:

g++ -o play_openal play_openal.cpp -lopenal

Notice the mention of -lopenal to pull in the openal library. 请注意提到-lopenal来拉入Openal库。
In your IDE add : 在您的IDE中添加:

openal  

to list of Linker Libraries. 链接器库列表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM