share library bug and advise
Christophe Guilbert
cguilbert at picasso.ucsf.edu
Fri May 16 22:34:01 BST 2003
Hi ,
I am struggling to initiate my project since 1 week now, and I don't
have any answer at all from the kdevelop community to the questions I
asked.
Sadly, It looks like nobody is working with kdevelop which I sure is not
true , I hope the Kdevelop project is not dead.
Here is my problem
I try to create a share library for python in C++, I could easily link
with python's library (-I/usr/include/python2.2) in kevelop 2.1 , but I
had too many trouble to create a share library the way I wanted and also
because compiling/linking give a bunch or errors in the redhat 9.0.
Gideon where supposed to have a better support for the creation of a
share library, unfortunately I could not find out how to link my source
to python.
Here I have done so far:
***first attempt*****
I create a directory with two files mordorpy.cpp ( C++ share library
which is a module of python) and a Makefile which is the following:
--------------------------------------
SHARED_LIB_OPTIONS = -shared
mordorpy.so: mordorpy.cpp
g++ $(SHARED_LIB_OPTIONS) -o mordorpy.so -I/usr/include/python2.2 \
mordorpy.cpp
-----------------------------
I open Gideon and did "project" -> "import existing project" (generic
C++ application (automake base))
From that point, I was able to create my library (mordorpy.so) by
doing "build" ->"build target". But the strange thing is that I don't
see anything about mordorpy.cpp file in the "class brother window" which
means I can't modified it !
****second attempt*****
Instead of choosing "generic C++ application (automake base)" I choose
"Generic C++ Application with custom Makefile".
NOW I can't see mordorpy.cpp with "the class brother window" and can add
feature/modify this file. I can't also compile it using "build" ->
"build target".
THE PROBLEM now is that Gideon do not upgrade (or build) the Makefile
when adding a new class to the project.
***third attempt****
As read in the kdevelop's forum and in order to generate automatically a
makefile, I wanted to create a small c++ "hello word" using Gideon,
create a directory and import mordorpy.cpp file as a share library.
Unfortunately I could make it with "project" -> "create new project" ->
"C++" -> "simple hello word program".
the error message is the following:
----------
Can't locate gideon.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl
/usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .
/home/chris/prog/Kdevelop-3/share/apps/kdevappwizard/template-common) at
/usr/local/kde/share/apps/kdevappwizard/template-cpphello/script line 3.
* BEGIN failed--compilation aborted at
/usr/local/kde/share/apps/kdevappwizard/template-cpphello/script line 3.
* *** Exited with status: 2 ***
------------
My question is how I can build a share library in kdevelop 2.1 or even
better in 3.alpha so I can compile/debug/etc in Kevelop.
Please try to be explicit since I have no experience at all using any of
IDE.
Chris
--------------------------------------------------------------------------
In a world without walls and fences,
who needs Windows and Gates?
- Sun Microsystems
-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe »your-email-address«
More information about the KDevelop
mailing list