Ok, here's what I've found out. The mac tool is called otool but the output is different than ldd so that piece of freeze.py would need to be rewritten.
But that's not the bad part. Even without ldd, the executable gets created but it is not truly standalone. I create a very simple test.py which print out the version of python: test.py ------- import sys print sys.version_info[:3] python -V reports 2.5.4 which is the version I built and python test.py gives the expected (2, 5, 4) But after freezing it reports (2, 5, 1) which is the version in /usr/local/bin Has anyone gotten cx_Freeze to work successfully on the mac or do I need to look at py2app as suggested? Jeff -----Original Message----- From: Anthony Tuininga [mailto:[email protected]] Sent: Friday, March 20, 2009 11:08 AM To: primary discussion list for use and development of cx_Freeze Subject: Re: [cx-freeze-users] cx_Freeze on the Mac Do you not have an ldd command in your path? cx_Freeze uses that to determine which shared libraries are required in order to support the frozen executable. On Fri, Mar 20, 2009 at 8:19 AM, Smith, Jeff <[email protected]> wrote: > I have built Python and cx_Freeze on Mac OS X 10.5 using the latest > xcode toolset. Everything works fine until I go to actually freeze an > executable. > > Then I get the following errors: > > copying > /opt/tcdevenv/Darwin96i386/lib/python2.5/site-packages/cx_Freeze/bases > /Console > -> /Users/jsmith/tmp/dist/test > sh: ldd: command not found > writing zip file /Users/jsmith/tmp/dist/test > > Name File > ---- ---- > m UserDict > /opt/tcdevenv/Darwin96i386/lib/python2.5/UserDict.py > m __builtin__ > m __main__ test.py > m _codecs > m _sre > m _types > m array > /opt/tcdevenv/Darwin96i386/lib/python2.5/lib-dynload/array.so > m codecs > /opt/tcdevenv/Darwin96i386/lib/python2.5/codecs.py > m copy > /opt/tcdevenv/Darwin96i386/lib/python2.5/copy.py > m copy_reg > /opt/tcdevenv/Darwin96i386/lib/python2.5/copy_reg.py > m cx_Freeze__init__ > /opt/tcdevenv/Darwin96i386/lib/python2.5/site-packages/cx_Freeze/inits > cripts/Console.py > P encodings > /opt/tcdevenv/Darwin96i386/lib/python2.5/encodings/__init__.py > m encodings.aliases > /opt/tcdevenv/Darwin96i386/lib/python2.5/encodings/aliases.py > m errno > m imp > m itertools > /opt/tcdevenv/Darwin96i386/lib/python2.5/lib-dynload/itertools.so > m linecache > /opt/tcdevenv/Darwin96i386/lib/python2.5/linecache.py > m os > /opt/tcdevenv/Darwin96i386/lib/python2.5/os.py > m popen2 > /opt/tcdevenv/Darwin96i386/lib/python2.5/popen2.py > m posix > m posixpath > /opt/tcdevenv/Darwin96i386/lib/python2.5/posixpath.py > m pwd > m re > /opt/tcdevenv/Darwin96i386/lib/python2.5/re.py > m repr > /opt/tcdevenv/Darwin96i386/lib/python2.5/repr.py > m sre_compile > /opt/tcdevenv/Darwin96i386/lib/python2.5/sre_compile.py > m sre_constants > /opt/tcdevenv/Darwin96i386/lib/python2.5/sre_constants.py > m sre_parse > /opt/tcdevenv/Darwin96i386/lib/python2.5/sre_parse.py > m stat > /opt/tcdevenv/Darwin96i386/lib/python2.5/stat.py > m sys > m types > /opt/tcdevenv/Darwin96i386/lib/python2.5/types.py > m warnings > /opt/tcdevenv/Darwin96i386/lib/python2.5/warnings.py > m zipimport > m zlib > /opt/tcdevenv/Darwin96i386/lib/python2.5/lib-dynload/zlib.so > > copying /opt/tcdevenv/Darwin96i386/lib/python2.5/lib-dynload/array.so > -> /Users/jsmith/tmp/dist/array.so > sh: ldd: command not found > copying > /opt/tcdevenv/Darwin96i386/lib/python2.5/lib-dynload/itertools.so -> > /Users/jsmith/tmp/dist/itertools.so > sh: ldd: command not found > copying /opt/tcdevenv/Darwin96i386/lib/python2.5/lib-dynload/zlib.so > -> /Users/jsmith/tmp/dist/zlib.so > sh: ldd: command not found > Jeff > > > Confidentiality Notice: The information contained in this electronic > transmission is confidential and may be legally privileged. It is > intended only for the addressee(s) named above. If you are not an > intended recipient, be aware that any disclosure, copying, > distribution or use of the information contained in this transmission > is prohibited and may be unlawful. If you have received this > transmission in error, please notify us by telephone (513) 229-5500 or > by email ([email protected]). After replying, please erase it from your > computer system. > ---------------------------------------------------------------------- > -------- Apps built with the Adobe(R) Flex(R) framework and Flex > Builder(TM) are powering Web 2.0 with engaging, cross-platform > capabilities. Quickly and easily build your RIAs with Flex Builder, > the Eclipse(TM)based development software that enables intelligent > coding and step-through debugging. > Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com > _______________________________________________ > cx-freeze-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users > > ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ cx-freeze-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cx-freeze-users Confidentiality Notice: The information contained in this electronic transmission is confidential and may be legally privileged. It is intended only for the addressee(s) named above. If you are not an intended recipient, be aware that any disclosure, copying, distribution or use of the information contained in this transmission is prohibited and may be unlawful. If you have received this transmission in error, please notify us by telephone (513) 229-5500 or by email ([email protected]). After replying, please erase it from your computer system. ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ cx-freeze-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cx-freeze-users
