Orange Forum • View topic - buildC45 under SnowLeopard

buildC45 under SnowLeopard

Report bugs (or imagined bugs).
(Archived/read-only, please use our ticketing system for reporting bugs and their discussion.)
Forum rules
Archived/read-only, please use our ticketing system for reporting bugs and their discussion.

buildC45 under SnowLeopard

Postby randal » Tue May 04, 2010 1:36

I ran into a little bump installing C45 under Snow Leopard. By default, fink installs as mostly 32-bit, while gcc by default builds 64-bit binaries. When you try to create a C45 object, python complains about not finding a suitable target.

So, to make buildC45 as general as possible, I added a couple of target architecture switches at around line 78 that make the target so file dual architecture.

Unless I am missing something, this might be a helpful change for everyone. While it's true that you might want to do as much as possible in 64-bit, lots of fink packages are not really ready. Further, the default is still 32-bit, and that will be what most people install when they set things up.

Change from

Code: Select all
ret = os.system('gcc -F. -bundle -O3 ensemble.c -o %s/c45.so' % orangedir)


to

Code: Select all
ret = os.system('gcc -F. -bundle -O3  -arch i386 -arch x86_64 ensemble.c -o %s/c45.so' % orangedir)


OK. Now I am ready to play with Orange!

Postby Mitar » Tue May 25, 2010 0:00

Thanks.


Return to Bugs