469,916 Members | 2,523 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,916 developers. It's quick & easy.

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

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
3 1255
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
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
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.

Similar topics

12 posts views Thread by Terry Richards | last post: by
2 posts views Thread by Joe | last post: by
10 posts views Thread by svenn.are | last post: by
6 posts views Thread by Kevin Atherton | last post: by
4 posts views Thread by andrea | last post: by
3 posts views Thread by M K | last post: by
reply views Thread by sskaje | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.