Enable 3.2.0 on OS X 64-bit

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Enable 3.2.0 on OS X 64-bit

David Warde-Farley
Hi,

Does Enable depend critically on having a wx install available?  This  
happens when I try to build Enable 3.2.0 with a universal 64-bit  
Python on OS X 10.5.8 (I have a 64-bit Qt available).

Thanks,

David


dwf@morrislab:~/src/tarball/Enable-3.2.0$ python setup.py config
Could not locate executable wx-config
File not found: None. Cannot determine wx info.
Traceback (most recent call last):
   File "setup.py", line 138, in <module>
     config = configuration().todict()
   File "setup.py", line 129, in configuration
     config.add_subpackage('enthought.kiva')
   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/numpy/distutils/misc_util.py", line 852, in  
add_subpackage
     caller_level = 2)
   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/numpy/distutils/misc_util.py", line 835, in  
get_subpackage
     caller_level = caller_level + 1)
   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/numpy/distutils/misc_util.py", line 782, in  
_get_configuration_from_setup_py
     config = setup_module.configuration(*args)
   File "enthought/kiva/setup.py", line 38, in configuration
     config.add_subpackage('mac')
   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/numpy/distutils/misc_util.py", line 852, in  
add_subpackage
     caller_level = 2)
   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/numpy/distutils/misc_util.py", line 835, in  
get_subpackage
     caller_level = caller_level + 1)
   File "/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/site-packages/numpy/distutils/misc_util.py", line 782, in  
_get_configuration_from_setup_py
     config = setup_module.configuration(*args)
   File "enthought/kiva/mac/setup.py", line 14, in configuration
     for macro, value in wx_info['define_macros']:
KeyError: 'define_macros'

_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: Enable 3.2.0 on OS X 64-bit

Robert Kern
On Mon, Feb 22, 2010 at 1:56 PM, David Warde-Farley <[hidden email]> wrote:
> Hi,
>
> Does Enable depend critically on having a wx install available?  This
> happens when I try to build Enable 3.2.0 with a universal 64-bit
> Python on OS X 10.5.8 (I have a 64-bit Qt available).

The Qt backend currently uses Agg on OS X anyways, so you can remove
enthought/kiva/mac/setup.py entirely, if you wish.

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: Enable 3.2.0 on OS X 64-bit

David Warde-Farley

On 22-Feb-10, at 2:59 PM, Robert Kern wrote:

> The Qt backend currently uses Agg on OS X anyways, so you can remove
> enthought/kiva/mac/setup.py entirely, if you wish.

Thanks. I did that, but unfortunately it seems to still want the  
CarbonCore framework:

compile options: '-Ienthought/kiva/agg/freetype2/src/base -Ienthought/
kiva/agg/freetype2/src/bdf -Ienthought/kiva/agg/freetype2/src/cache -
Ienthought/kiva/agg/freetype2/src/cff -Ienthought/kiva/agg/freetype2/
src/cid -Ienthought/kiva/agg/freetype2/src/pcf -Ienthought/kiva/agg/
freetype2/src/pfr -Ienthought/kiva/agg/freetype2/src/psaux -Ienthought/
kiva/agg/freetype2/src/pshinter -Ienthought/kiva/agg/freetype2/src/
psnames -Ienthought/kiva/agg/freetype2/src/raster -Ienthought/kiva/agg/
freetype2/src/sfnt -Ienthought/kiva/agg/freetype2/src/smooth -
Ienthought/kiva/agg/freetype2/src/truetype -Ienthought/kiva/agg/
freetype2/src/type1 -Ienthought/kiva/agg/freetype2/src/type42 -
Ienthought/kiva/agg/freetype2/src/winfonts -Ienthought/kiva/agg/
freetype2/src/gzip -Ienthought/kiva/agg/freetype2/include -Ienthought/
kiva/agg/freetype2/src -I/Developer/Headers/FlatCarbon -I/Library/
Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/
numpy/core/include -c'
gcc-4.0: enthought/kiva/agg/freetype2/src/type1/type1.c
gcc-4.0: enthought/kiva/agg/freetype2/src/base/ftmm.c
gcc-4.0: enthought/kiva/agg/freetype2/src/psnames/psnames.c
gcc-4.0: enthought/kiva/agg/freetype2/src/base/ftglyph.c
gcc-4.0: enthought/kiva/agg/freetype2/src/base/ftbdf.c
gcc-4.0: enthought/kiva/agg/freetype2/src/bdf/bdf.c
gcc-4.0: enthought/kiva/agg/freetype2/src/base/ftbase.c
gcc-4.0: enthought/kiva/agg/freetype2/src/base/ftxf86.c
gcc-4.0: enthought/kiva/agg/freetype2/src/winfonts/winfnt.c
gcc-4.0: enthought/kiva/agg/freetype2/src/base/ftbbox.c
gcc-4.0: enthought/kiva/agg/freetype2/src/sfnt/sfnt.c
gcc-4.0: enthought/kiva/agg/freetype2/src/base/ftsystem.c
gcc-4.0: enthought/kiva/agg/freetype2/src/base/ftmac.c
enthought/kiva/agg/freetype2/src/base/ftmac.c: In function ‘is_dfont’:
enthought/kiva/agg/freetype2/src/base/ftmac.c:144: error: ‘struct  
FSSpec’ has no member named ‘name’
enthought/kiva/agg/freetype2/src/base/ftmac.c:148: error: ‘struct  
FSSpec’ has no member named ‘name’
enthought/kiva/agg/freetype2/src/base/ftmac.c: In function  
‘get_file_location’:
enthought/kiva/agg/freetype2/src/base/ftmac.c:193: error: ‘FCBPBRec’  
undeclared (first use in this function)


etc. Later, a lot of references to things in /System/Library/
Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework.

Is there a way to build Enable without Carbon? Perhaps a compiler flag  
I need to set? Or can I get it to use an external version of freetype?

David
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: Enable 3.2.0 on OS X 64-bit

Robert Kern
On Mon, Feb 22, 2010 at 2:42 PM, David Warde-Farley <[hidden email]> wrote:
>
> On 22-Feb-10, at 2:59 PM, Robert Kern wrote:
>
>> The Qt backend currently uses Agg on OS X anyways, so you can remove
>> enthought/kiva/mac/setup.py entirely, if you wish.
>
> Thanks. I did that, but unfortunately it seems to still want the
> CarbonCore framework:

> etc. Later, a lot of references to things in /System/Library/
> Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework.
>
> Is there a way to build Enable without Carbon? Perhaps a compiler flag
> I need to set? Or can I get it to use an external version of freetype?

The new FreeType that Peter just checked in may not need it.
Experiment, and let us know what works. We do not have 10.6 installed
anywhere and cannot spare much resources at the moment to do such
work.

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev
Reply | Threaded
Open this post in threaded view
|

Re: Enable 3.2.0 on OS X 64-bit

David Warde-Farley
On 22-Feb-10, at 3:46 PM, Robert Kern wrote:

> The new FreeType that Peter just checked in may not need it.
> Experiment, and let us know what works. We do not have 10.6 installed
> anywhere and cannot spare much resources at the moment to do such
> work.

Ah, this is on 10.5 actually, but with a 64-bit Python (in fact, a PPC  
Mac, so 10.6 isn't an option even if I wanted it).

I noticed the other thread where Peter mentioned the check-in and  
tried just now. Trunk seems to build cleanly, though there are  
worrying (unnecessary, probably) '-framework Carbon' arguments in some  
places.

python setup.py install (or nosetests) goes off and tries to fetch a  
newer version of Traits, so I guess I'd better build Traits,  
TraitsGUI, and TraitsBackendQt from trunk.

Thanks for the help,

David
_______________________________________________
Enthought-Dev mailing list
[hidden email]
https://mail.enthought.com/mailman/listinfo/enthought-dev