首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >OmniORB编译致命错误Windows 10

OmniORB编译致命错误Windows 10
EN

Stack Overflow用户
提问于 2019-10-09 09:50:46
回答 1查看 292关注 0票数 1

我试图在运行Windows10pro64bit的虚拟机上测试OmbiORB V4.2.3。我已经安装了所有必要的软件(python 3.6.5,cygwin,VS 2017)。

配置

我在config.mk platform = x86_win32_vs_15中取消了下面一行的注释。将以下行添加到mk\platforms[platform].mk PYTHON = /cygdrive/c/Software/Python/Python36中。

控制台

使用"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64启动命令promt并移到src目录。使用set path=%path%;c:\Software\cygwin64\bin;c:\Software\Python将Cygwin和Python添加到PATH中。当我做make export时,我看到了两件可能是问题所在的事情。

代码语言:javascript
运行
复制
C:\Users\[user]\Documents\omniORB-4.2.3\src>make export
making export in src/tool...
make[1]: Entering directory '/cygdrive/c/Users/[user]/Documents/omniORB-4.2.3/src/tool'
making export in src/tool/omniidl...
make[2]: Entering directory '/cygdrive/c/Users/[user]/Documents/omniORB-4.2.3/src/tool/omniidl'
make[2]: /cygdrive/c/Software/Python/Python36: Command not found
making export in src/tool/omniidl/cxx...
make[3]: Entering directory '/cygdrive/c/Users/[user]/Documents/omniORB-4.2.3/src/tool/omniidl/cxx'
make[3]: /cygdrive/c/Software/Python/Python36: Command not found
make[3]: /cygdrive/c/Software/Python/Python36: Command not found
make[3]: /cygdrive/c/Software/Python/Python36: Command not found
make[3]: /cygdrive/c/Software/Python/Python36: Command not found
../../../../bin/x86_win32/omkdepend -D__cplusplus -D_MSC_VER -I -DPYTHON_INCLUDE=<Python.h> -DPYTHON_THREAD_INC=<pythread.h> -DIDLMODULE_VERSION="0x2630" -DMSDOS -DOMNIIDL_EXECUTABLE -I. -I. -I../../../../include -D__WIN32__ -D_WIN32_WINNT=0x0501 -D__x86__ -D__NT__ -D__OSVERSION__=4 -D_CRT_SECURE_NO_DEPRECATE=1 idlc.cc idlpython.cc idlfixed.cc idlconfig.cc idldump.cc idlvalidate.cc idlast.cc idlexpr.cc idlscope.cc idlrepoId.cc idltype.cc idlutil.cc idlerr.cc lex.yy.cc y.tab.cc
C:\Users\[user]\Documents\omniORB-4.2.3\bin\x86_win32\omkdepend.exe: warning:  idlpython.cc, line 57: incomplete include == "#  include PYTHON_INCLUDE"

代码语言:javascript
运行
复制
idlpython.cc(31): error C2006: '#include': expected a filename, found 'identifier'
idlpython.cc(31): fatal error C1083: Cannot open include file: '': No such file or directory
make[3]: *** [../../../../mk/win32.mk:490: idlpython.o] Error 2
make[3]: Leaving directory '/cygdrive/c/Users/[user]/Documents/omniORB-4.2.3/src/tool/omniidl/cxx'
make[2]: *** [dir.mk:16: export] Error 2
make[2]: Leaving directory '/cygdrive/c/Users/[user]/Documents/omniORB-4.2.3/src/tool/omniidl'
make[1]: *** [dir.mk:22: export] Error 2
make[1]: Leaving directory '/cygdrive/c/Users/[user]/Documents/omniORB-4.2.3/src/tool'
make: *** [dir.mk:26: export] Error 2

有人知道如何解决我面临的这个问题吗?

EN

回答 1

Stack Overflow用户

发布于 2020-05-22 09:46:47

我想

代码语言:javascript
运行
复制
PYTHON = /cygdrive/c/Software/Python/Python36

这里的问题是:

代码语言:javascript
运行
复制
...
make[2]: /cygdrive/c/Software/Python/Python36: Command not found
...

这一行应该指定python可执行文件,而且至少在我的Python2.7设置中,exe只是名为python.exe,没有任何版本后缀。

所以,这一行可能真的应该是

代码语言:javascript
运行
复制
PYTHON = /cygdrive/c/Software/Python/python
** or maybe
PYTHON = /cygdrive/c/Software/Python/Python36/python

还请注意,我在构建脚本上的注释显示,cygwin的内容是区分大小写的。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58301473

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档