Creation of a share library for Python
cguilbert at picasso.ucsf.edu
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
g++ $(SHARED_LIB_OPTIONS) -o mordorpy.so -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/Makefile.am:7: linker flags such as `-I/usr/include/python2.2'
belong in `test_LDFLAGS
gmake: *** [Makefile.in] Error 1
gmake: *** [all-recursive] Error 1
gmake: Leaving directory `/home/chris/project/test/test'
gmake: 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 kdevelop.org with the following body:
More information about the KDevelop