By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,696 Members | 2,213 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,696 IT Pros & Developers. It's quick & easy.

Can't compile with --enable-shared on MacOSX

P: n/a
Help,

i tried to generate a dynamic library from the official
Python-2.4.0.tgz on MacOSX 10.3 but when i do the

../configure --enable-shared ; make ; sudo make install

or

../configure --enable-shared=yes ; make ; sudo make install
It links statically. It's also strange that i can't find a
libpython2.4.a in my
/usr/local/lib. It's not installed by the install command.

Also /usr/local/bin/python24 works fine.

I get an error that TK/TCL was not found. Is this the reason, i
thought i can simply ignore this error message.
Jul 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
In article <6e**************************@posting.google.com >,
ll*****@web.de (Lothar Scholz) wrote:
i tried to generate a dynamic library from the official
Python-2.4.0.tgz on MacOSX 10.3 but when i do the

./configure --enable-shared ; make ; sudo make install

It links statically. It's also strange that i can't find a
libpython2.4.a in my
/usr/local/lib. It's not installed by the install command.
On Mac OS X the shared library functionality is obtained through
frameworks. It may detect this by default, but I'm not sure about
that. In any case read the install documentation, the correct options
are mentioned there, or you could just use the pre-built binary
install from python.org
I get an error that TK/TCL was not found. Is this the reason, i
thought i can simply ignore this error message.


Is not the reason, will go away once tcl/tk is installed (there is a
nice binary installer in the mac os x downloads section at apple.com

Maarten
Jul 19 '05 #2

P: n/a
Maarten Sneep <iintbeumtnbfkcpntohw__NOSP@M__xs4all.nl.invalid > wrote in message news:<42*********************@news.xs4all.nl>...
On Mac OS X the shared library functionality is obtained through
frameworks. It may detect this by default, but I'm not sure about


Not good. I don't want frameworks. I must embedd python into my
application.
Setting up a framework and installing/maintaining it is much more work
especially when i'm already doing my own maintainance for the
Linux/Windows port.

No ther way then stealing the dylib from the framework directory ?
Jul 19 '05 #3

P: n/a
Lothar Scholz wrote:
Maarten Sneep <iintbeumtnbfkcpntohw__NOSP@M__xs4all.nl.invalid > wrote in message news:<42*********************@news.xs4all.nl>...

On Mac OS X the shared library functionality is obtained through
frameworks. It may detect this by default, but I'm not sure about

Not good. I don't want frameworks. I must embedd python into my
application.
Setting up a framework and installing/maintaining it is much more work
especially when i'm already doing my own maintainance for the
Linux/Windows port.

No ther way then stealing the dylib from the framework directory ?


Umm, the framework gets embedded into the app bundle when you build it.
I think you do want frameworks.

--
Robert Kern
rk***@ucsd.edu

"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richard Harter

Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.