[omniORB] Python needed for Win32 VC8 binary distribution (4.0.7)?

Greco Van der Ven Greco.VanderVen at bestnv.com
Mon Apr 24 11:31:36 BST 2006


Yes! It works perfectly now. 

Thank you so much Peter.

-----Original Message-----
From: Peter Klotz [mailto:peter.klotz at aon.at] 
Sent: Friday, April 21, 2006 17:43
To: Greco Van der Ven; omniorb-list at omniorb-support.com
Subject: Re: [omniORB] Python needed for Win32 VC8 binary distribution
(4.0.7)?

Hi Greco

> I have installed the binary distribution 4.0.7 for Windows, VC8, and 
> although the documentation states that I do not need to install the
full 
> version of Python, I'm starting to have my doubts if that is true.
> 
> Dependency walker tells me that omniidl.exe depends on python24.dll 
> which is not in the distribution. Obviously it is also not in the 
> omnipython package that is four years old now and doesn't seem to get 
> updated (it's on python 1.5).
> 
> I don't want to make my workspace more complex than it already is by 
> having to install extra tools that I might not really need. Installing

> being the key word here; unzipping and setting some environment 
> variables would be acceptable if that's what it takes. (I would like
to 
> be able to put the entire working folder including all tools like 
> omniorb in a version control database. Someone else should be able to 
> get a local copy, run a "setprojectenvironment.bat" file and compile
the 
> whole thing. We want to avoid installing software "the Windows way" as

> much as possible).
> 

As long as you are compiling for x86 (not x64) Windows you can download 
a binary version of Python 2.4.3 from http://www.python.org/ and take 
these files from the distribution:

	python24.dll
         copy_reg.py
         getopt.py
         ntpath.py
         os.py
         re.py
         sre.py
         sre_compile.py
         sre_constants.py
         sre_parse.py
         stat.py
         string.py
         types.py
         UserDict.py

Just copy all these files into the directory where omniidl.exe is
located.

When you add an empty site.py file you can suppress the 'import site 
failed' message displayed by Python.

You only have to compile Python yourself when compiling for x64 Windows 
since no binary Python distribution for this platform exists for
download.

In this case you need the attached patch since Python compiles out of 
the box with cl 14.00 (VS2005) but it crashes when starting up.

Best regards, Peter.



More information about the omniORB-list mailing list