Alexander K. Hansen wrote: > Martin Costabel wrote: > >> Jean-François Mertens wrote: >> >> >>> On 05 Jul 2007, at 00:10, Martin Costabel wrote: >>> >>> >>> >>>> fink builds pyqt-py24-3.17.2-1 almost OK for me (on a dual G5, OSX >>>> 10.4.10), up to the linker line for qt.so which fails with lots of >>>> undefined symbols. >>>> >>>> Adding >>>> LFLAGS="-undefined dynamic_lookup" LFLAGS_PLUGIN="-bundle" >>>> to the config.py line lets me build pyqt-py24 completely. >>>> >>>> >>> don't all those symbols come from %p/lib/python2.5/config/ >>> libpython2.5.dylib >>> (with the right python-version) ? >>> >>> >> They are defined in the python dylib, but they are also defined in the >> /sw/bin/python2.4 executable. >> >> >> >>> isn't it safer to this on the link command ? >>> >>> >> I am no expert in loadable modules vs dylibs, but I suspect that the >> python modules are loaded via dlopen & friends rather than dyld, and >> that they get their undefined symbols from the python executable. >> >> One could perhaps even use the -bundle_loader %p/bin/pythonX.X flag. >> But the python modules that I have seen all use -undefined >> dynamic_lookup. The sip package does this too, BTW. >> >> There is another thing that worries me about the sip/pyqt combination: >> In the installed q*mod.sip files, there are a lot of lines >> >> QMAKE_LFLAGS += -framework Python >> >> AFAICT they come from the decision to use the macx-g++ specs file in the >> sip package and to modify it only as far as necessary to build sip >> itself with Fink's python. >> >> One would need to test whether the packages not only build OK, but also >> *work*. I could imagine that it becomes necessary to use the darwin-g++ >> spec file for sip instead of macx-g++, so that the Python framework is >> completely eradicated from the sources used. >> >> >> > I based what I was doing on the prior packaging, so I'm in favor of > trying an option that is more in tune with Fink builds. > > But, unfortunately, when I tried using "darwin-g++" and no .patch in sip-py.info, I got:
The platform/compiler configuration is darwin-g++. Creating sipconfig.py... Creating top level Makefile... Creating sip code generator Makefile... Creating sip module Makefile... Error: SIP requires Python to be built as a framework -- Alexander K. Hansen akh AT finkproject DOT org Fink User Liaison and Documenter ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel