Creation of a share library for Python

Christophe Guilbert cguilbert at
Tue May 13 20:17:20 BST 2003


I have many problems using Kdevelop

I am writing a share library for python in C++, I could not link my 
python.cpp with python library (-I/usr/include/python2.2) in Kdevelop.

My makefile (which works in xterm) is the following:

SHARED_LIB_OPTIONS = -shared mordorpy.cpp
         g++ $(SHARED_LIB_OPTIONS) -o -I/usr/include/python2.2 \

How I could integrate these Makefile in Kdevelop so I can 
compile/debug/etc in Kevelop.

Please try to be explicit since I have no experience at all using any of 

Here is what I tried so far:

I add -I/usr/include/python2.2 in Project -> Option -> linker Option,
I also try to add it  in Make Option (additional Options) ... without 

When doing build-> make I have the following message:
/bin/sh /home/chris/project/test/admin/missing --run automake --gnu 
aclocal.m4:3009: your implementation of AM_INIT_AUTOMAKE comes from an
aclocal.m4:3009: old Automake version. You should recreate aclocal.m4
aclocal.m4:3009: with aclocal and run automake again.
test/ linker flags such as `-I/usr/include/python2.2' 
belong in `test_LDFLAGS
gmake[2]: *** [] Error 1
gmake[1]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/home/chris/project/test/test'
gmake[1]: Leaving directory `/home/chris/project/test'
gmake: *** [all] Error 2
*** failed ***

When doing build -> diskclean/rebuild all, I don't have the previous 
message but the compiler could not find the python library ( 
mordorpy.cpp:8:20: Python.h: No such file or directory ).

Thanks for any help


to unsubscribe from this list send an email to kdevelop-request at with the following body:
unsubscribe »your-email-address«

More information about the KDevelop mailing list