[omniORB] Using omniidl to generate stubs ...

Marcus MacWilliam marcus.macwilliam at 1spatial.com
Mon Jan 28 16:29:31 GMT 2013


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

On 28/01/13 15:09, Duncan Grisby wrote:
> On Fri, 2013-01-25 at 16:56 +0000, Marcus MacWilliam wrote:
>
>> 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?
>
>> 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'
> 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.
>

 [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




More information about the omniORB-list mailing list