Discussion:
[omniORB] Using omniidl to generate stubs ...
Marcus MacWilliam
2013-01-25 16:56:30 UTC
Permalink
Hello,

I am trying to build a project that was written 10+ years ago,
with a newer version of OmniORB (4.1.6), on a Windows 7
machine with Visual Studio 2010, for 32-bit.

I have successfully downloaded the ORB ZIP, and built the
entire project, with 'make export'.

Part of the makefile involves running omniidl to generate the
stub files from our IDL file, for compilation into the server.
The output from our build, and the error message, are below:

Running command: C:\omniORB-4.1.6\bin\x86_win32\omniidl -bcxx -C\\gothic-samba\gothic\src\gijeprog\win7-devt -Wbh=_s.h -Wbs=_s.cpp \\gothic-samba\gothic\src\gijeprog\win7-devt\OO-Toolkit.idl
omniidl: Could not import back-end 'cxx'
omniidl: Maybe you need to use the -p option?
omniidl: (The error was 'No module named cxx')

Can anyone explain why this did not work?

Cheers,

--
Marcus A.T MacWilliam, Senior Software Engineer. 1Spatial Ltd.
Tel: +44 (0)1223 420414, ext 2289, Mob: +44 (0)7803 706597.
E-Mail: marcus.macwilliam at 1spatial.com<mailto:marcus.macwilliam at 1spatial.com> Skype:marcus.macwilliam

Tennyson House, 7 Cambridge Business Park, Cambridge, CB4 0WZ.
Registered in England No. 4785688, VAT Reg. No. 135539408.
Website: http://www.1spatial.com/ E-mail: info at 1spatial.com<mailto:info at 1spatial.com>

[Loading Image...]<http://www.1spatial.com>





[Loading Image...]<http://www.youtube.com/user/1SpatialGroup> [Loading Image...] <https://www.facebook.com/1Spatial> [Loading Image...] <http://www.linkedin.com/company/1spatial> [Loading Image...] <http://www.twitter.com/1spatial>

________________________________

The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. Any views or opinions expressed in this e-mail may be solely those of the author and are not necessarily those of 1Spatial Plc. This email has been scanned for viruses and message content. 1Spatial Group Limited is a company registered in England and Wales No.4785688. Registered Office: Tennyson House, Cambridge Business Park, Cambridge CB4 0WZ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20130125/c58d5d4c/attachment.html>
Marcus MacWilliam
2013-01-25 17:18:21 UTC
Permalink
I have also tried adding the -p option:

Running command: C:\omniORB-4.1.6\bin\x86_win32\omniidl -bcxx -pC:\omniORB-4.1.6\lib\python -C\\gothic-samba\gothic\src\gijeprog\win7-devt -Wbh=_s.h -Wbs=_s.cpp \\gothic-samba\gothic\src\gijeprog\win7-devt\OO-Toolkit.idl
omniidl: Could not import back-end 'cxx'
omniidl: Maybe you need to use the -p option?
omniidl: (The error was 'No module named cxx')

Marcus A.T MacWilliam, Senior Software Engineer. 1Spatial Ltd.
Tel: +44 (0)1223 420414, ext 2289, Mob: +44 (0)7803 706597.
E-Mail: marcus.macwilliam at 1spatial.com<mailto:marcus.macwilliam at 1spatial.com> Skype:marcus.macwilliam

Tennyson House, 7 Cambridge Business Park, Cambridge, CB4 0WZ.
Registered in England No. 4785688, VAT Reg. No. 135539408.
Website: http://www.1spatial.com/ E-mail: info at 1spatial.com<mailto:info at 1spatial.com>

On 25/01/13 16:56, Marcus MacWilliam wrote:
Hello,

I am trying to build a project that was written 10+ years ago,
with a newer version of OmniORB (4.1.6), on a Windows 7
machine with Visual Studio 2010, for 32-bit.

I have successfully downloaded the ORB ZIP, and built the
entire project, with 'make export'.

Part of the makefile involves running omniidl to generate the
stub files from our IDL file, for compilation into the server.
The output from our build, and the error message, are below:

Running command: C:\omniORB-4.1.6\bin\x86_win32\omniidl -bcxx -C\\gothic-samba\gothic\src\gijeprog\win7-devt -Wbh=_s.h -Wbs=_s.cpp \\gothic-samba\gothic\src\gijeprog\win7-devt\OO-Toolkit.idl
omniidl: Could not import back-end 'cxx'
omniidl: Maybe you need to use the -p option?
omniidl: (The error was 'No module named cxx')

Can anyone explain why this did not work?

Cheers,

--
Marcus A.T MacWilliam, Senior Software Engineer. 1Spatial Ltd.
Tel: +44 (0)1223 420414, ext 2289, Mob: +44 (0)7803 706597.
E-Mail: marcus.macwilliam at 1spatial.com<mailto:marcus.macwilliam at 1spatial.com> Skype:marcus.macwilliam

Tennyson House, 7 Cambridge Business Park, Cambridge, CB4 0WZ.
Registered in England No. 4785688, VAT Reg. No. 135539408.
Website: http://www.1spatial.com/ E-mail: info at 1spatial.com<mailto:info at 1spatial.com>

[http://www.1spatial.com/signatures/1SpatialLogo_Small.jpg]<http://www.1spatial.com>





[http://www.1spatial.com/wp-content/themes/1spatial/images/youtube.png]<http://www.youtube.com/user/1SpatialGroup> [http://www.1spatial.com/wp-content/themes/1spatial/images/facebook.png] <https://www.facebook.com/1Spatial> [http://www.1spatial.com/wp-content/themes/1spatial/images/linkedIn.png] <http://www.linkedin.com/company/1spatial> [http://www.1spatial.com/wp-content/themes/1spatial/images/twitter.png] <http://www.twitter.com/1spatial>

________________________________

The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. Any views or opinions expressed in this e-mail may be solely those of the author and are not necessarily those of 1Spatial Plc. This email has been scanned for viruses and message content. 1Spatial Group Limited is a company registered in England and Wales No.4785688. Registered Office: Tennyson House, Cambridge Business Park, Cambridge CB4 0WZ



_______________________________________________
omniORB-list mailing list
omniORB-list at omniorb-support.com<mailto:omniORB-list at omniorb-support.com>
http://www.omniorb-support.com/mailman/listinfo/omniorb-list


[http://www.1spatial.com/signatures/1SpatialLogo_Small.jpg]<http://www.1spatial.com>





[http://www.1spatial.com/wp-content/themes/1spatial/images/youtube.png]<http://www.youtube.com/user/1SpatialGroup> [http://www.1spatial.com/wp-content/themes/1spatial/images/facebook.png] <https://www.facebook.com/1Spatial> [http://www.1spatial.com/wp-content/themes/1spatial/images/linkedIn.png] <http://www.linkedin.com/company/1spatial> [http://www.1spatial.com/wp-content/themes/1spatial/images/twitter.png] <http://www.twitter.com/1spatial>

________________________________

The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. Any views or opinions expressed in this e-mail may be solely those of the author and are not necessarily those of 1Spatial Plc. This email has been scanned for viruses and message content. 1Spatial Group Limited is a company registered in England and Wales No.4785688. Registered Office: Tennyson House, Cambridge Business Park, Cambridge CB4 0WZ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20130125/4fb54251/attachment.html>
Marcus MacWilliam
2013-01-25 17:37:24 UTC
Permalink
Adding the omnidl_be directory to -p gives a different error:

Running command: C:\omniORB-4.1.6\bin\x86_win32\omniidl -bcxx -pC:\omniORB-4.1.6\lib\python\omniidl_be -C\\gothic-samba\gothic\src\gijeprog\win7-devt -Wbh=_s.h -Wbs=_s.cpp \\gothic-samba\gothic\src\gijeprog\win7-devt\OO-Toolkit.idl
omniidl: Could not import back-end 'cxx'
omniidl: Maybe you need to use the -p option?
omniidl: (The error was 'cannot import name config')

Marcus A.T MacWilliam, Senior Software Engineer. 1Spatial Ltd.
Tel: +44 (0)1223 420414, ext 2289, Mob: +44 (0)7803 706597.
E-Mail: marcus.macwilliam at 1spatial.com<mailto:marcus.macwilliam at 1spatial.com> Skype:marcus.macwilliam

Tennyson House, 7 Cambridge Business Park, Cambridge, CB4 0WZ.
Registered in England No. 4785688, VAT Reg. No. 135539408.
Website: http://www.1spatial.com/ E-mail: info at 1spatial.com<mailto:info at 1spatial.com>

On 25/01/13 17:18, Marcus MacWilliam wrote:
I have also tried adding the -p option:

Running command: C:\omniORB-4.1.6\bin\x86_win32\omniidl -bcxx -pC:\omniORB-4.1.6\lib\python -C\\gothic-samba\gothic\src\gijeprog\win7-devt -Wbh=_s.h -Wbs=_s.cpp \\gothic-samba\gothic\src\gijeprog\win7-devt\OO-Toolkit.idl
omniidl: Could not import back-end 'cxx'
omniidl: Maybe you need to use the -p option?
omniidl: (The error was 'No module named cxx')

Marcus A.T MacWilliam, Senior Software Engineer. 1Spatial Ltd.
Tel: +44 (0)1223 420414, ext 2289, Mob: +44 (0)7803 706597.
E-Mail: marcus.macwilliam at 1spatial.com<mailto:marcus.macwilliam at 1spatial.com> Skype:marcus.macwilliam

Tennyson House, 7 Cambridge Business Park, Cambridge, CB4 0WZ.
Registered in England No. 4785688, VAT Reg. No. 135539408.
Website: http://www.1spatial.com/ E-mail: info at 1spatial.com<mailto:info at 1spatial.com>

On 25/01/13 16:56, Marcus MacWilliam wrote:
Hello,

I am trying to build a project that was written 10+ years ago,
with a newer version of OmniORB (4.1.6), on a Windows 7
machine with Visual Studio 2010, for 32-bit.

I have successfully downloaded the ORB ZIP, and built the
entire project, with 'make export'.

Part of the makefile involves running omniidl to generate the
stub files from our IDL file, for compilation into the server.
The output from our build, and the error message, are below:

Running command: C:\omniORB-4.1.6\bin\x86_win32\omniidl -bcxx -C\\gothic-samba\gothic\src\gijeprog\win7-devt -Wbh=_s.h -Wbs=_s.cpp \\gothic-samba\gothic\src\gijeprog\win7-devt\OO-Toolkit.idl
omniidl: Could not import back-end 'cxx'
omniidl: Maybe you need to use the -p option?
omniidl: (The error was 'No module named cxx')

Can anyone explain why this did not work?

Cheers,

--
Marcus A.T MacWilliam, Senior Software Engineer. 1Spatial Ltd.
Tel: +44 (0)1223 420414, ext 2289, Mob: +44 (0)7803 706597.
E-Mail: marcus.macwilliam at 1spatial.com<mailto:marcus.macwilliam at 1spatial.com> Skype:marcus.macwilliam

Tennyson House, 7 Cambridge Business Park, Cambridge, CB4 0WZ.
Registered in England No. 4785688, VAT Reg. No. 135539408.
Website: http://www.1spatial.com/ E-mail: info at 1spatial.com<mailto:info at 1spatial.com>

[http://www.1spatial.com/signatures/1SpatialLogo_Small.jpg]<http://www.1spatial.com>





[http://www.1spatial.com/wp-content/themes/1spatial/images/youtube.png]<http://www.youtube.com/user/1SpatialGroup> [http://www.1spatial.com/wp-content/themes/1spatial/images/facebook.png] <https://www.facebook.com/1Spatial> [http://www.1spatial.com/wp-content/themes/1spatial/images/linkedIn.png] <http://www.linkedin.com/company/1spatial> [http://www.1spatial.com/wp-content/themes/1spatial/images/twitter.png] <http://www.twitter.com/1spatial>

________________________________

The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. Any views or opinions expressed in this e-mail may be solely those of the author and are not necessarily those of 1Spatial Plc. This email has been scanned for viruses and message content. 1Spatial Group Limited is a company registered in England and Wales No.4785688. Registered Office: Tennyson House, Cambridge Business Park, Cambridge CB4 0WZ



_______________________________________________
omniORB-list mailing list
omniORB-list at omniorb-support.com<mailto:omniORB-list at omniorb-support.com>
http://www.omniorb-support.com/mailman/listinfo/omniorb-list


[http://www.1spatial.com/signatures/1SpatialLogo_Small.jpg]<http://www.1spatial.com>





[http://www.1spatial.com/wp-content/themes/1spatial/images/youtube.png]<http://www.youtube.com/user/1SpatialGroup> [http://www.1spatial.com/wp-content/themes/1spatial/images/facebook.png] <https://www.facebook.com/1Spatial> [http://www.1spatial.com/wp-content/themes/1spatial/images/linkedIn.png] <http://www.linkedin.com/company/1spatial> [http://www.1spatial.com/wp-content/themes/1spatial/images/twitter.png] <http://www.twitter.com/1spatial>

________________________________

The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. Any views or opinions expressed in this e-mail may be solely those of the author and are not necessarily those of 1Spatial Plc. This email has been scanned for viruses and message content. 1Spatial Group Limited is a company registered in England and Wales No.4785688. Registered Office: Tennyson House, Cambridge Business Park, Cambridge CB4 0WZ



_______________________________________________
omniORB-list mailing list
omniORB-list at omniorb-support.com<mailto:omniORB-list at omniorb-support.com>
http://www.omniorb-support.com/mailman/listinfo/omniorb-list


[http://www.1spatial.com/signatures/1SpatialLogo_Small.jpg]<http://www.1spatial.com>





[http://www.1spatial.com/wp-content/themes/1spatial/images/youtube.png]<http://www.youtube.com/user/1SpatialGroup> [http://www.1spatial.com/wp-content/themes/1spatial/images/facebook.png] <https://www.facebook.com/1Spatial> [http://www.1spatial.com/wp-content/themes/1spatial/images/linkedIn.png] <http://www.linkedin.com/company/1spatial> [http://www.1spatial.com/wp-content/themes/1spatial/images/twitter.png] <http://www.twitter.com/1spatial>

________________________________

The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. Any views or opinions expressed in this e-mail may be solely those of the author and are not necessarily those of 1Spatial Plc. This email has been scanned for viruses and message content. 1Spatial Group Limited is a company registered in England and Wales No.4785688. Registered Office: Tennyson House, Cambridge Business Park, Cambridge CB4 0WZ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20130125/e6186b31/attachment-0001.html>
Duncan Grisby
2013-01-28 15:09:05 UTC
Permalink
Post by Marcus MacWilliam
I am trying to build a project that was written 10+ years ago,
with a newer version of OmniORB (4.1.6), on a Windows 7
machine with Visual Studio 2010, for 32-bit.
I have successfully downloaded the ORB ZIP, and built the
entire project, with 'make export'.
Presumably that completed without error?
Post by Marcus MacWilliam
Part of the makefile involves running omniidl to generate the
stub files from our IDL file, for compilation into the server.
Running command: C:\omniORB-4.1.6\bin\x86_win32\omniidl -bcxx -C\
\gothic-samba\gothic\src\gijeprog\win7-devt -Wbh=_s.h -Wbs=_s.cpp \
\gothic-samba\gothic\src\gijeprog\win7-devt\OO-Toolkit.idl
omniidl: Could not import back-end 'cxx'
Can you build the echo example? Go to src/examples/echo and run make.
Does that work? If so, how does its omniidl command line differ from
yours?

Try adding a -v flag to omniidl, so it outputs more information about
what's going on:

c:\omniORB-4.1.6\bin\x86_win32\omniidl -v -bcxx ...

What is in c:\omniORB-4.1.6\lib\python\omniidl_be\ ?

Duncan.
--
-- Duncan Grisby --
-- duncan at grisby.org --
-- http://www.grisby.org --
Marcus MacWilliam
2013-01-28 16:29:31 UTC
Permalink
Duncan,

I now believe it is an environment problem. I have successfully
run omniidl on OO-Toolkit.idl with the command line options:

-bcxx -Wbh=_s.h -Wbs=_s.cpp -C

in a windows environment started via the shortcut for a VS10,
from the Start menu. This succeeds, and has a PATH:

Path=C:\Program Files (x86)\Microsoft Visual Studio
10.0\Common7\IDE\;C:\Program
Files (x86)\Microsoft Visual Studio 10.0\VC\BIN;C:\Program Files
(x86)\Microsof
t Visual Studio
10.0\Common7\Tools;C:\Windows\Microsoft.NET\Framework\v4.0.30319
;C:\Windows\Microsoft.NET\Framework\v3.5;C:\Program Files
(x86)\Microsoft Visual
Studio 10.0\VC\VCPackages;C:\Program Files (x86)\Microsoft
SDKs\Windows\v7.0A\b
in\NETFX 4.0 Tools;C:\Program Files (x86)\Microsoft
SDKs\Windows\v7.0A\bin;C:\Wi
ndows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPo
werShell\v1.0\;C:\Program
Files\TortoiseSVN\bin;M:\data\bat;C:\Cygwin\bin;C:\Pro
gra~2\Java\jdk1.7.0_7\bin;C:\eclipse-java-juno-SR1-win32-x86_64-1spatial;C:\apac
he-maven-3.0.3\bin;C:\Progra~2\FME2013
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

However when it is run from my GDE (Gothic Development Environment) via
the makefile it fails, PATH is:

Path=\\gothic-samba\gothic\unix\utilsupp\v4-6;\\gothic-samba\gothic\unix\devsupp\v4-8;c:\progra~2\Ja
va\jdk1.6.0_29\bin;\\1spatial.local\shares\python\Python-1.5;C:\Program
Files (x86)\Microsoft Visual
Studio 10.0\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual
Studio 10.0\VC\BIN;C:\Program File
s (x86)\Microsoft Visual Studio
10.0\Common7\Tools;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\
Windows\Microsoft.NET\Framework\v3.5;C:\Program Files (x86)\Microsoft
Visual Studio 10.0\VC\VCPackag
es;C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0
Tools;C:\Program Files (x86)\Mi
crosoft
SDKs\Windows\v7.0A\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\Sy
stem32\WindowsPowerShell\v1.0\;C:\Program
Files\TortoiseSVN\bin;M:\data\bat;C:\Cygwin\bin;C:\Progra~
2\Java\jdk1.7.0_7\bin;C:\eclipse-java-juno-SR1-win32-x86_64-1spatial;C:\apache-maven-3.0.3\bin;C:\Pr
ogra~2\FME2013;\\1spatial.local\shares\gis\DevStudio10.0\x86;\\1spatial.local\shares\GIS\sentinel\nt
_x86\Delivery\LaserScan;C:\Progra~2\Hummingbird\Connectivity\14.00\Exceed;c:\progra~2\hummingbird\co
nnectivity\14.00\exceed;\\gothic-samba\gothic\com\mdasupp\x1-44;\\gothic-samba\gothic\com\aidu_mdasu
pp\x2-83;\\gothic-samba\gothic\unix\issuesupp\v3-101;\\gothic-samba\gothic\unix\gdesupp\v3-1;\\gothi
c-samba\gothic\unix\autotestsupp\v1-3;;M:\\gothic_bin\win7\matm_client_core\nt_x86_10.0\lib\main\rcs
test
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

Could it be the inclusion of python-1.5 in the path? I have tried inserting
C:\Python27 into the path at the beginning, and it still does not work.

Cheers,

Marcus A.T MacWilliam, Senior Software Engineer. 1Spatial Ltd.
Tel: +44 (0)1223 420414, ext 2289, Mob: +44 (0)7803 706597.
E-Mail: marcus.macwilliam at 1spatial.com Skype:marcus.macwilliam

Tennyson House, 7 Cambridge Business Park, Cambridge, CB4 0WZ.
Registered in England No. 4785688, VAT Reg. No. 135539408.
Website: http://www.1spatial.com/ E-mail: info at 1spatial.com
Post by Duncan Grisby
Post by Marcus MacWilliam
I am trying to build a project that was written 10+ years ago,
with a newer version of OmniORB (4.1.6), on a Windows 7
machine with Visual Studio 2010, for 32-bit.
I have successfully downloaded the ORB ZIP, and built the
entire project, with 'make export'.
Presumably that completed without error?
Post by Marcus MacWilliam
Part of the makefile involves running omniidl to generate the
stub files from our IDL file, for compilation into the server.
Running command: C:\omniORB-4.1.6\bin\x86_win32\omniidl -bcxx -C\
\gothic-samba\gothic\src\gijeprog\win7-devt -Wbh=_s.h -Wbs=_s.cpp \
\gothic-samba\gothic\src\gijeprog\win7-devt\OO-Toolkit.idl
omniidl: Could not import back-end 'cxx'
Can you build the echo example? Go to src/examples/echo and run make.
Does that work? If so, how does its omniidl command line differ from
yours?
Try adding a -v flag to omniidl, so it outputs more information about
c:\omniORB-4.1.6\bin\x86_win32\omniidl -v -bcxx ...
What is in c:\omniORB-4.1.6\lib\python\omniidl_be\ ?
Duncan.
[http://www.1spatial.com/signatures/1SpatialLogo_Small.jpg] <http://www.1spatial.com>





[http://www.1spatial.com/wp-content/themes/1spatial/images/youtube.png]<http://www.youtube.com/user/1SpatialGroup> [http://www.1spatial.com/wp-content/themes/1spatial/images/facebook.png] <https://www.facebook.com/1Spatial> [http://www.1spatial.com/wp-content/themes/1spatial/images/linkedIn.png] <http://www.linkedin.com/company/1spatial> [http://www.1spatial.com/wp-content/themes/1spatial/images/twitter.png] <http://www.twitter.com/1spatial>

________________________________

The information in this e-mail is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorised. Any views or opinions expressed in this e-mail may be solely those of the author and are not necessarily those of 1Spatial Plc. This email has been scanned for viruses and message content. 1Spatial Group Limited is a company registered in England and Wales No.4785688. Registered Office: Tennyson House, Cambridge Business Park, Cambridge CB4 0WZ
Duncan Grisby
2013-02-01 15:18:12 UTC
Permalink
Post by Marcus MacWilliam
I now believe it is an environment problem. I have successfully
-bcxx -Wbh=_s.h -Wbs=_s.cpp -C
[...]
Post by Marcus MacWilliam
However when it is run from my GDE (Gothic Development Environment) via
Could it be the inclusion of python-1.5 in the path? I have tried inserting
C:\Python27 into the path at the beginning, and it still does not work.
What else is in the environment? Anything to do with Python? In
particular, is there a PYTHONPATH set?

You could try setting the environment variable PYTHONVERBOSE=1 which
will cause Python to tell you lots of stuff about what it's importing
from where.

Duncan.
--
-- Duncan Grisby --
-- duncan at grisby.org --
-- http://www.grisby.org --
Loading...