简体   繁体   English

无法使用ubuntu 12.04 64位中的gloox库

[英]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.

相关问题 在Linux上使用cin解析布尔值的g ++ 4.9消毒剂错误(ubuntu 12.04 64位) - g++ 4.9 sanitizer bug with cin parsing boolean on linux (ubuntu 12.04 64-bit) 在64位Ubuntu 12.04上运行aapt:加载共享库时出错:libc ++。所以:没有这样的文件或目录 - Running aapt on 64-bit Ubuntu 12.04: error while loading shared libraries: libc++.so: No such file or directory GCC无法对64位乘法进行矢量化。 可以在AVX2上对64位x 64位 - &gt; 128位加宽乘法进行矢量化吗? - GCC couldn't vectorize 64-bit multiplication. Can 64-bit x 64-bit -> 128-bit widening multiplication be vectorized on AVX2? 无法重载&lt;&lt;在64位Linux上的运算符 - Can't Overload << Operator on 64-bit Linux 64位库限制为4GB? - 64-bit library limited to 4GB? 无法在AMD 64位平台JNI上加载IA 32位.dll - Can't load IA 32-bit .dll on a AMD 64-bit platform JNI 32位和64位库修饰 - 32-bit vs 64-bit library decoration 无法加载 64 位 ActiveX 控件 - Can not load 64-bit ActiveX Control 如何在64位Ubuntu 18.04上使用64位clang v8构建32位libc ++? - How do I build 32-bit libc++ with 64-bit clang v8 on 64-bit Ubuntu 18.04? 为什么我的64位计算机不能在C ++中存储双精度数2 ^ 1024? - Why can't my 64-bit computer store the double-precision number 2^1024 in C++?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM