![未找到(完整)omniORB 安装。请提供 OMNIORB4_DIR:](https://linux22.com/image/1065373/%E6%9C%AA%E6%89%BE%E5%88%B0%EF%BC%88%E5%AE%8C%E6%95%B4%EF%BC%89omniORB%20%E5%AE%89%E8%A3%85%E3%80%82%E8%AF%B7%E6%8F%90%E4%BE%9B%20OMNIORB4_DIR%EF%BC%9A.png)
我正在安装一些工作所需的软件。根据安装说明(几个月前我安装过,而且成功了),运行:
sudo apt-get install python-dev
sudo apt-get install libomniorb4-dev
应该安装依赖项,首先,我遇到了 libomniorb4 上没有找到的问题。我首先搜索了 libomniorb.deb 并使用其进行了安装sudo apt install ./package-name.deb
,我也对 libomnithread4 进行了安装,因为第一个出现了错误。
由于它不起作用,我sudo apt-get install libomniorb4-dev
最终设法运行并激活了以下勾选:
我尝试使用 cmake 进行编译,但得到以下结果:
No (complete) omniORB installation was not found. Please provide OMNIORB4_DIR:
- through the GUI when working with ccmake,
- as a command line argument when working with cmake e.g.
cmake .. -DOMNIORB4_DIR:PATH=/usr/local/omniORB-4.0.5
Reason:
OMNIORB4_INCLUDE_DIR: /usr/include
OMNIORB4_LIBRARY_omniORB4: /usr/lib/x86_64-linux-gnu/libomniORB4.so
OMNIORB4_LIBRARY_omnithread: /usr/lib/x86_64-linux-gnu/libomnithread.so
OMNIORB4_IDL_COMPILER: OMNIORB4_IDL_COMPILER-NOTFOUND
-- Configuring done
-- Generating done
我尝试使用 apt remove 卸载所有内容,然后使用 apt-get 命令重新安装。我尝试了sudo apt-get update
,sudo apt-get upgrade
甚至sudo apt-get dist-upgrade
。我还做了:sudo apt-get install -f
因此我尝试找到该库本身并执行以下操作:
find /usr/ -iname "*omni*"
/usr/include/omniconfig.h
/usr/include/omnithread
/usr/include/omniORB4
/usr/include/omniORB4/omniServer.h
/usr/include/omniORB4/omniORBcompat.h
/usr/include/omniORB4/omniORB.h
/usr/include/omniORB4/internal/omniCurrent.h
/usr/include/omniORB4/internal/omniIdentity.h
/usr/include/omniORB4/omniConnectionMgmt.h
/usr/include/omniORB4/omniServant.h
/usr/include/omniORB4/omniAsyncInvoker.h
/usr/include/omniORB4/omniObjRef.h
/usr/include/omniORB4/omniConnectionData.hh
/usr/include/omniORB4/omniIOR.h
/usr/include/omniORB4/omniURI.h
/usr/include/omniORB4/omniZIOP.h
/usr/include/omniORB4/omniTransport.h
/usr/include/omniORB4/omniInterceptors.h
/usr/include/omniORB4/omniutilities.h
/usr/include/omniORB4/omniTypedefs.hh
/usr/include/omniORB4/omniInternal.h
/usr/include/omniORB4/omniPolicy.h
/usr/include/omniORB4/omniObjKey.h
/usr/include/omnithread.h
/usr/lib/firefox/browser/omni.ja
/usr/lib/firefox/omni.ja
/usr/lib/thunderbird/omni.ja
/usr/lib/x86_64-linux-gnu/pkgconfig/omniConnectionMgmt4.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/omniZIOPDynamic4.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/omnithread4.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/omniDynamic4.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/omniORB4.pc
/usr/lib/x86_64-linux-gnu/pkgconfig/omniZIOP4.pc
/usr/lib/x86_64-linux-gnu/libomnithread.so
/usr/lib/x86_64-linux-gnu/libomniConnectionMgmt4.so.2
/usr/lib/x86_64-linux-gnu/libomnisslTP4.so.2.2
/usr/lib/x86_64-linux-gnu/libomniZIOPDynamic4.so.2.2
/usr/lib/x86_64-linux-gnu/libomniDynamic4.so.2.2
/usr/lib/x86_64-linux-gnu/libomniORB4.so.2
/usr/lib/x86_64-linux-gnu/libomniORB4.so.2.2
/usr/lib/x86_64-linux-gnu/libomnisslTP4.so.2
/usr/lib/x86_64-linux-gnu/libomnithread.so.4
/usr/lib/x86_64-linux-gnu/libomniORB4.so
/usr/lib/x86_64-linux-gnu/libomnithread.so.4.0
/usr/lib/x86_64-linux-gnu/libomniDynamic4.so
/usr/lib/x86_64-linux-gnu/libomniZIOP4.so.2
/usr/lib/x86_64-linux-gnu/libomniConnectionMgmt4.so.2.2
/usr/lib/x86_64-linux-gnu/libomniConnectionMgmt4.a
/usr/lib/x86_64-linux-gnu/libomniZIOP4.so
/usr/lib/x86_64-linux-gnu/libomniCodeSets4.so.2.2
/usr/lib/x86_64-linux-gnu/libomniConnectionMgmt4.so
/usr/lib/x86_64-linux-gnu/libomnithread.a
/usr/lib/x86_64-linux-gnu/libomniZIOPDynamic4.so
/usr/lib/x86_64-linux-gnu/libomniDynamic4.a
/usr/lib/x86_64-linux-gnu/libomniORB4.a
/usr/lib/x86_64-linux-gnu/libomniCodeSets4.so
/usr/lib/x86_64-linux-gnu/libomniZIOP4.a
/usr/lib/x86_64-linux-gnu/libomnisslTP4.so
/usr/lib/x86_64-linux-gnu/libomniZIOPDynamic4.so.2
/usr/lib/x86_64-linux-gnu/libomniDynamic4.so.2
/usr/lib/x86_64-linux-gnu/libomnisslTP4.a
/usr/lib/x86_64-linux-gnu/libomniCodeSets4.so.2
/usr/lib/x86_64-linux-gnu/libomniZIOP4.so.2.2
/usr/lib/x86_64-linux-gnu/libomniZIOPDynamic4.a
/usr/lib/x86_64-linux-gnu/libomniCodeSets4.a
/usr/share/doc/libomniorb4-2
/usr/share/doc/libomnithread4
/usr/share/doc/libomniorb4-dev
/usr/share/doc/libomnithread4-dev
/usr/share/pulseaudio/alsa-mixer/profile-sets/sb-omni-surround-5.1.conf
/usr/src/linux-headers-4.15.0-29-generic/include/config/usb/serial/omninet.h
/usr/src/linux-headers-4.15.0-42-generic/include/config/usb/serial/omninet.h
我还使用该apt-cache search
选项进行了搜索并安装了:omniorb-idl
答案1
听起来像这样:https://code.google.com/archive/p/incub/wikis/UbuntuInstallation.wiki
如果您尝试构建的是 Incub,那么忽略它可能是可以的。如果不是,请澄清——您使用 cmake 构建什么?
答案2
解决起来很简单:
sudo apt-get install omniidl