Re: [Matplotlib-users] Static linking problem on matplotlib eggs
I'm hoping someone can shed some light on this. I get the following error when building on OSX. Notice that it looks into /usr/local for libraries: /usr/local/include/ft2build.h:56:38:/usr/local/include/ft2build.h:56:38: error: error: freetype/config/ftheader.h: No such file or directoryfreetype/config/ftheader.h: No such file or directory Even though there is nothing that points there in my env: MANPATH=/usr/share/man:/usr/local/share/man:/usr/X11/man TERM=xterm-color SHELL=/bin/bash SSH_CLIENT=fe80::211:24ff:fe8d:9019%en1 57594 22 OLDPWD=/Users/chris/Development/freetype-2.3.5 LFLAGS=-arch ppc -arch i386 -L/Users/chris/Development/libpng-1.2.23 -L/Users/chris/Development/freetype-2.3.5 SSH_TTY=/dev/ttys001 USER=chris PAGER=less MAIL=/var/mail/chris PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin: /usr/local/bin:/usr/texbin PWD=/Users/chris/Development/matplotlib PS1=(\[$(tput md)\]\t \w\[$(tput me)\]) $(echo $?) \$ SHLVL=1 HOME=/Users/chris CFLAGS=-arch ppc -arch i386 -I/Users/chris/Development/libpng-1.2.23 -I/Users/chris/Development/freetype-2.3.5 PYTHONPATH=/Library/Python/2.5/site-packages: LESS=-r LOGNAME=chris SSH_CONNECTION=fe80::211:24ff:fe8d:9019%en1 57594 fe80::214:51ff:feef:bad8%en1 22 _=/usr/bin/env Moreover, basedir['darwin'] is set to [] in setupext.py. So, I'm totally baffled. Where else could matplotlib be getting library path information from?? Thanks. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Static linking problem on matplotlib eggs
OK, I managed to build with the setupext.py list empty as you specified. However, for some reason, the resulting matplotlib egg *still* looks for dynamic libraries in /usr/local: ImportError: dlopen(/Library/Python/2.5/site-packages/ matplotlib-0.98pre-py2.5-macosx-10.5-i386.egg/matplotlib/_path.so, 2): Library not loaded: /usr/local/lib/libpng12.0.dylib Referenced from: /Library/Python/2.5/site-packages/ matplotlib-0.98pre-py2.5-macosx-10.5-i386.egg/matplotlib/_path.so Reason: image not found This is pretty bizarre. On 12/01/2008, at 12:42 PM, Charlie Moad wrote: I just had to rebuild the OSX binary because a similar reason. I forgot to change the basedir['darwin'] entry in setupext.py. Around line 50. Change: 'darwin' : ['/sw/lib/freetype2', '/sw/lib/freetype219', '/usr/ local', '/usr', '/sw', '/usr/X11R6'], To: 'darwin' : [], This will ensure you don't pick up shared libraries over the static ones since they are preferred by gcc. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
[Matplotlib-users] Static linking problem on matplotlib eggs
I'm trying to build some matplotlib eggs to bundle and distribute with some other python packages. So, I am doing my best to statically link to libraries like libpng, libfreetype, etc. that users may not have installed. I am building using the following: python setupegg.py config -L../staticlibs build bdist_egg where ../staticlibs contains the libraries that I am statically linking. Unfortunately, users are still getting errors such as the following: ImportError: dlopen(/Library/Python/2.5/site-packages/ matplotlib-0.98pre-py2.5-macosx-10.5-i386.egg/matplotlib/_path.so, 2): Library not loaded: /usr/local/lib/libpng12.0.dylib Referenced from: /Library/Python/2.5/site-packages/ matplotlib-0.98pre-py2.5-macosx-10.5-i386.egg/matplotlib/_path.so Reason: image not found Anyone have a clue what I am not doing properly? Thanks, Chris - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Static linking problem on matplotlib eggs
I just had to rebuild the OSX binary because a similar reason. I forgot to change the basedir['darwin'] entry in setupext.py. Around line 50. Change: 'darwin' : ['/sw/lib/freetype2', '/sw/lib/freetype219', '/usr/local', '/usr', '/sw', '/usr/X11R6'], To: 'darwin' : [], This will ensure you don't pick up shared libraries over the static ones since they are preferred by gcc. - Charlie On Jan 12, 2008 12:04 PM, Chris [EMAIL PROTECTED] wrote: I'm trying to build some matplotlib eggs to bundle and distribute with some other python packages. So, I am doing my best to statically link to libraries like libpng, libfreetype, etc. that users may not have installed. I am building using the following: python setupegg.py config -L../staticlibs build bdist_egg where ../staticlibs contains the libraries that I am statically linking. Unfortunately, users are still getting errors such as the following: ImportError: dlopen(/Library/Python/2.5/site-packages/ matplotlib-0.98pre-py2.5-macosx-10.5-i386.egg/matplotlib/_path.so, 2): Library not loaded: /usr/local/lib/libpng12.0.dylib Referenced from: /Library/Python/2.5/site-packages/ matplotlib-0.98pre-py2.5-macosx-10.5-i386.egg/matplotlib/_path.so Reason: image not found Anyone have a clue what I am not doing properly? Thanks, Chris - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] Static linking problem on matplotlib eggs
Thanks Charlie, I've done this, but for some reason, its still looking for things in / usr/local: In file included from src/ft2font.h:11, from src/ft2font.cpp:2: /usr/local/include/ft2build.h:56:38: error: freetype/config/ ftheader.h: No such file or directory cf On 12/01/2008, at 12:42 PM, Charlie Moad wrote: I just had to rebuild the OSX binary because a similar reason. I forgot to change the basedir['darwin'] entry in setupext.py. Around line 50. Change: 'darwin' : ['/sw/lib/freetype2', '/sw/lib/freetype219', '/usr/ local', '/usr', '/sw', '/usr/X11R6'], To: 'darwin' : [], This will ensure you don't pick up shared libraries over the static ones since they are preferred by gcc. - Charlie On Jan 12, 2008 12:04 PM, Chris [EMAIL PROTECTED] wrote: I'm trying to build some matplotlib eggs to bundle and distribute with some other python packages. So, I am doing my best to statically link to libraries like libpng, libfreetype, etc. that users may not have installed. I am building using the following: python setupegg.py config -L../staticlibs build bdist_egg where ../staticlibs contains the libraries that I am statically linking. Unfortunately, users are still getting errors such as the following: ImportError: dlopen(/Library/Python/2.5/site-packages/ matplotlib-0.98pre-py2.5-macosx-10.5-i386.egg/matplotlib/_path.so, 2): Library not loaded: /usr/local/lib/libpng12.0.dylib Referenced from: /Library/Python/2.5/site-packages/ matplotlib-0.98pre-py2.5-macosx-10.5-i386.egg/matplotlib/_path.so Reason: image not found Anyone have a clue what I am not doing properly? Thanks, Chris - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users