简体   繁体   English

将Polycode链接到C ++

[英]Linking Polycode to C++

How can I use Polycode as a framework for c++ on Linux? 如何在Linux上将Polycode用作c ++的框架? I know I have to include header files and link the libraries so I can use the built in functions and classes of Polycode but there are way too many files scattered around. 我知道我必须包含头文件并链接库,以便可以使用Polycode的内置函数和类,但是周围散布了太多文件。 Is there an easier way to link all of the Polycode contents so C++ can use it? 有没有更简单的方法来链接所有Polycode内容,以便C ++可以使用它?

See the instructions . 请参阅说明 You will need CMake and various libraries you'll need to install first, such as Ogg Vorbis and Bullet Physics. 您将需要CMake以及首先需要安装的各种库,例如Ogg Vorbis和Bullet Physics。 After CMake does its job, it put should everything into a Release subdirectory. CMake完成工作后,应将所有内容放入Release子目录中。

Unfortunately the instructions don't seem so clear about what will be there… but you should be able to copy include and lib subdirectories from there to /usr/local so you don't need to manually set compiler flags for your C++ environment to access it. 不幸的是,这些指令似乎并不清楚那里的内容……但是您应该能够将includelib子目录从那里复制到/usr/local因此您不需要为C ++环境手动设置编译器标志即可访问它。

Note, it doesn't look so mature, so you might be careful, and don't hesitate to contact the author. 注意,它看起来还不成熟,因此您可能要小心,不要犹豫与作者联系。

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

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