[英]Can't work with gloox library in ubuntu 12.04 64-bit
Some time ago I installed gloox library with the command sudo apt-get install libgloox-dev. 前一段时间,我使用命令sudo apt-get install libgloox-dev安装了gloox库。 But it is not working in netbeans, for example. 但是,例如,它在netbeans中不起作用。 I noticed that there are only .h files (with only function declarations) in /usr/include/gloox directory. 我注意到在/ usr / include / gloox目录中只有.h文件(只有函数声明)。 Need your help... 需要你的帮助...
You need to configure your project dependencies in order to use a library. 您需要配置项目依赖项才能使用库。 Are you able to access Gloox files using <> ? 您可以使用<>访问Gloox文件吗? If yes the environment variable is set correctly (should be done automatically in Ubuntu) 如果是,则环境变量设置正确(应在Ubuntu中自动完成)
The library (.so file) will be in /usr/local/lib. 该库(.so文件)将位于/ usr / local / lib中。 You need to link the project against it in your makefile. 您需要在makefile中将项目链接到该项目。 On netbeans I think it's on project properties->c++ compiler. 在netbeans上,我认为它在项目属性-> c ++编译器上。 Personally, I use Cmake to generate my makefiles 就个人而言,我使用Cmake生成我的makefile
尝试从http://camaya.net/gloox/download下载库,并按照安装说明进行操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.