有人在RHEL上构建过omniORB吗
Has anyone ever built omniORB on RHEL?
我正试图在RHEL 5.5上构建omniORB库。
我试着用运行配置
CC=gcc,CXX=g++,PYTHON=bin/ommypthon
我遇到了这个问题,它抱怨
gmake[3]: Entering directory `/home/local/NT/jayanthv/omniORB-4.1.4/src/lib/omniORB'
../../../bin/omniidl -bcxx -p../../../src/lib/omniORB -Wbdebug -Wba -p../../../src/lib/omniORB -Wbdebug -v -ComniORB4 ../../../idl/Naming.idl
omniidl: ERROR!
omniidl: Could not open IDL compiler module _omniidlmodule.so
omniidl: Please make sure it is in directory /home/local/NT/jayanthv/omniORB-4.1.4/lib
omniidl: (or set the PYTHONPATH environment variable)
omniidl: (The error was '/home/local/NT/jayanthv/omniORB-4.1.4/lib/_omniidlmodule.so: wrong ELF class: ELFCLASS64')
因此,我尝试使用英特尔C++编译器,使用
export CXX=/opt/intel/Compiler/11.1/080/bin/ia32/icc
export LD_LIBRARY_PATH=/opt/intel/Compiler/11.1/080/lib/ia32
export PYTHON=/home/local/NT/jayanthv/omniORB-4.1.4/bin/omnipython
但是,现在它抱怨../../../bin/ominidl-bcxx-p./..//src/lib/omniORB-Wbdebug-Wba-p./..//src/lib/omniORB-Wbdebug-v-ComniORB4./..//idl/Naming.idl
omniidl: ERROR!
omniidl: Could not open IDL compiler module _omniidlmodule.so
omniidl: Please make sure it is in directory /home/local/NT/jayanthv/omniORB-4.1.4/lib
omniidl: (or set the PYTHONPATH environment variable)
omniidl: (The error was '/home/local/NT/jayanthv/omniORB-4.1.4/lib/_omniidlmodule.so: undefined symbol: __cxa_pure_virtual')
操作系统是具有x86_64体系结构的RHEL 5.5,我正在尝试构建32位二进制文件。如果能深入了解这个问题,我将不胜感激。
这是因为omnidl是作为Python扩展模块实现的。您正在使用的Python可执行文件是一个64位可执行文件,因此它无法加载32位库。
看看这个http://objectmix.com/object/196129-compiling-omniorb-32bits-libraries-64bits-machine-suse.html
我终于找到了在Linux上使用英特尔编译器构建omniORB的神奇组合。
您可以看到它在哪里抱怨找不到'__cxa_pure_virtual',这发生在gcc下,因为它找不到名为libstdc++的lib
因此,根据您使用的编译器来设置CC="icc -lstdc++"
或CC="gcc -lstdc++"
。对CXX执行相同操作(如果使用g++,请在g++处指定)
对于Python,我使用了omnipython,它是一个python1.5,PYTHON=bin/omnipython
这意味着它相对于omniORB根路径进行查找。
您可以看到它在哪里抱怨"错误的ELF类:ELFCLASS64",这是因为您试图使用64位链接器链接32位二进制文件。
因此,强制编译器和链接器标志为32。
CFLAGS=-m32 CXXFLAGS=-m32 LDFLAGS=-m32
完成后,运行配置
./configure --prefix=/opt/omniInst --build=i686-pc-linux-gnu
运行gmake,然后运行gmake-install,您将看到omniInst或您建议的任何前缀目录下的所有二进制文件和lib。
- C++为构建时间获取QDateTime的可靠方法
- 无法在 CLion 中构建 C++ 项目
- 函数向量_指针有不同的原型,我可以构建一个吗
- 如何使用ndk-build.cmd构建Android.so文件
- libssh 的函数在构建 libssh 时无法在 Qt 和 cmake 错误中找到
- 使用cmake从源代码构建MySQL连接器/C++失败(与以前的声明冲突)
- VSCode-有一个红色下划线,但程序构建和运行正确,并且出现配音错误
- 构建可组合有向图(扫描仪生成器的汤普森构造算法)
- 无法使用Qt Creator在Windows中构建yaml-cpp
- 构建一个由C和C++文件组成的库
- llvm构建器向基本块添加终止符
- FLTK 2.0构建和演示,适用于VS2019的2011年左右的代码库
- 如何跨平台将二进制资源构建到程序中?
- 将 OpenCV 与 CMAKE 中的项目一起构建为第三方库的正确方法
- 如何解决 Ninja c++ 构建和执行问题
- 使用 cmake 的 LLVM 构建在 tsan_libdispatch_mac.cc 期间失败; "Error: conflicting types for ..."
- CMake WxWidgets项目成功地在Linux上构建,但没有在Windows上构建
- 更改命令行 qt5 源代码构建配置的正确/快速方法
- 用CMake构建C++协议
- 有人在RHEL上构建过omniORB吗