From: Alexander B. <ale...@gm...> - 2013-06-24 08:01:49
|
Hi all, I try to build matplotlib 1.2.1 under Windows and create package for OSGeo4W [0]. OSGeo4W contains most of the necessary dependencies: Python 2.7.2, numpy 1.5.1, libpng 1.2.34, Qt 4.7.1, freetype 2.3.7 and others. After downloading and unpacking matplotlib sources I edited setupext.py file and add 'C:\OSGeo4W' to basedir list basedir = defaultdict(lambda: ['/usr/local', '/usr'], { # execptions to the ['/usr/local', '/usr'] defaults 'win32' : ['win32_static', 'c:\\OSGeo4W'], # <---- here is it 'darwin' : ['/usr/local/', '/usr', '/usr/X11', '/opt/local'], 'sunos5' : [os.getenv('MPLIB_BASE') or '/usr/local',], 'gnu0' : ['/usr'], 'aix5' : ['/usr/local'], }) Than in commandline I run python setup.py build, from output I found that include files can't be found by compiler (see build.log.1 file from attached zip). So I open setupext.py again and modify check_for_freetype and add_ft2font_flags functions adding to them path to osgeo4w includes (freetype includes in osgeo4w located at C:\OSGeo4W\include\freetype, without 2 at end), modified file attached. After this modification build process started, there are no missed includes, but another error appears, see file build.log.2. I checked and found that in OSGeo4W freetype library localed here C:\OSGeo4W\lib\freetype237.lib. Is it possible to specify name of the library file somewhere? Maybe there is build guide? I found instructions at github [1], but all this guildes used self-compiled dependencies, while I want to use dependencies from OSGeo4W to make fully compatible package. Any hints and help is welcome [0] http://trac.osgeo.org/osgeo4w/ [1] https://github.com/matplotlib/matplotlib/issues/1717 Thanks and sorry for my English -- Alexander Bruy |