building Demo/embed on Mac OS 10.10 from source: configure args?
vaporbleep at gmail.com
vaporbleep at gmail.com
Tue Oct 6 21:03:47 EDT 2015
I'm trying to build the embedding demo (Demo/embed in the source directory)
After configuring with
$ ./configure --enable-framework MACOSX_DEPLOYMENT_TARGET=10.10
And calling "make" in the root source directory to build python.exe
I then change directory to Demo/embed and edit LIBS and LDFLAGS in Demo/embed (per instructions in Makefile)
Now I can make the "demo"
$ make demo
gcc -g -I../../Include -I../.. -c -o demo.o demo.c
demo.c:7:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
main(int argc, char **argv)
^
1 warning generated.
gcc demo.o ../../libpython2.7.a -ldl -framework CoreFoundation -lm -o demo
But when I try to run it,
$ ./demo
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
ImportError: No module named site
Mac OS X
Version 10.10.5
MacBook Pro
Not sure what is going on here / what the problem is
My goal is to change the Python commands in demo.c to a simple script to put up the pyglet Hello, World: http://pyglet-current.readthedocs.org/en/latest/programming_guide/quickstart.html
When I run the file
Python source distribution 2.7.10
Is anyone else finding it impossible to get Demo/embed to run on a Mac?
More information about the Python-list
mailing list