[prev in list] [next in list] [prev in thread] [next in thread]
List: kdevelop
Subject: Re: Python in C++
From: Jörg_Preiß <J.Preiss () gastrofix ! com>
Date: 2001-05-15 12:59:22
[Download RAW message or body]
Well, I have to agree that the doc is not enough to extend C++-Apps. I
have the same problem, I want to get access to my own classes from
python.
Until now, I did not have the time to have a look at swig, but I think
that's the best way to do it.
Bernd Gehrmann wrote:
>
> On Tue, 15 May 2001, gleki wrote:
> > I wonder if any experienced programmer could give me some hint on where
> > can I
> > get a manual or whatsoever on embedding Python code in C++ apps. The one
> > on
> > python.org/doc is not very much complete...
>
> Hmm, it was enough for me to use it :-) What do you think is
> missing?
>
> > How can be this done in KDevelop? Can it handle also the makefiles in
> > the
> > corresponding manner?
>
> When you are writing a KDE program with the according admin directory,
> you have to add a check
>
> KDE_CHECK_PYTHON
>
> to your configure.in.in and rerun autoconf. After that, the configure
> script will find the include paths and link command for your installed
> python version. In the Makefile.am, you have to add
>
> $(PYTHONINC)
>
> to the INCLUDES variable and
>
> $(PYTHONLIB) $(LIBPYTHON)
>
> to the foo_LDADD line. In the KDevelop HEAD branch, the python
> part is an example how to do it.
>
> Bernd.
>
> -
> to unsubscribe from this list send an email to kdevelop-request@kdevelop.org with the following body:
> unsubscribe »your-email-address«
-
to unsubscribe from this list send an email to kdevelop-request@kdevelop.org with the following body:
unsubscribe »your-email-address«
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic