Hi Kay,

> I've rewritten the CMakeLists.txt, thanks for help from T. Modes and
> Kornel Benko for help! I am using a slightly different approach to
> precompiling the headers which produce accessor code for image
> variables which, I think, is more obvious. The CMakeLists.txt now also
> has all dependencies of the SWIG interfcae code. And it's probably
> nicer to read as well.... ;-)

There were some more changes in the code necessary:
The MSVC compiler does not support the -o switch. So using
redirection.
There was missing a statement: SET_SOURCE_FILES_PROPERTIES(${out}
GENERATED)

bogous and vaccine needs to be link against ${PYTHON_LIBRARIES}

> if anyone cares just to get an idea about the project without actually
> downloading the code. In the source code, there's a demonstration of
> the curious crash I experience on my system (Kubuntu 10.10 / Python
> 2.6) if any of the C++ code outputs to cerr - and a remedy I found
> effective against the problem, again on my system. I'd be curious to
> hear if anyone can reproduces this. There's more on the issue in
>
> http://groups.google.com/group/hugin-ptx/browse_thread/thread/51bd6ca...
>

On windows the bogous project works fine:

Python 2.7.1 (r271:86832, Dec  5 2010, 12:04:08) [MSC v.1500 32 bit
(Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import bogous
>>> bogous.use_cerr()
hallohallo
>>>

So I commited the changes to repository with the following addtional
changes:
I removed the bogous and vaccine project.
I renamed the folder the hugin_script_interface to better match the
existing folder structure.

Thomas

PS: In Python I can run "import hsi" and then modify the panorama
object. But the hugin python interface does not work correctly. It
crashes hugin when running a script that works when running directly
in python.
PPS: In demo_plugin.py and hpi.py the removed function pano_open is
still used. This needs to be rewritten with the modified syntax.
PPPS: Is the file hsi.cpp still needed? It seems that it is not used
any more.

-- 
You received this message because you are subscribed to the Google Groups 
"Hugin and other free panoramic software" group.
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/hugin-ptx

Reply via email to