Re: [cx-freeze-users] Frozen binary still needs Python installed
Brought to you by:
atuining
From: Anthony T. <ant...@gm...> - 2007-02-27 18:45:02
|
Ok. Let's try something else. Instead of using -static and -dynamic, please try replacing -lpython with /usr/lib/python2.4/config/libpython2.4.a. In that fashion the static library will be used and perhaps there won't be any confusion. If that doesn't work I guess I'll have to set things up similarly on my own machine and see how to get around it. On 2/27/07, Tim Rees <tim...@ho...> wrote: > > > > >From: "Anthony Tuininga" <ant...@gm...> > > >If you allow dynamic linking for the remainder it should be fine. Let > >me know if this does work as if I can detect the use of a shared > >library for Python I can perhaps add these options automatically. > > Hello > > I tried with > > linkerFlags += " -static -lpython%d.%d -dynamic" % sys.version_info[:2] > > but unfortunately I am getting the same error. I installed Python2.5 and > tried with python2.5 instead of just python, but I get the same thing. > > Here is the output from MakeFrozenBases.py for Python 2.4: > > ---------------------------- > tim@lofty:/home/tim/cx_Freeze-3.0.3$ python MakeFrozenBases.py > gcc -c -I. -I/usr/include/python2.4 -I/usr/include/python2.4 -o Console.o > Console.c > gcc -o bases/Console Console.o -s -Xlinker -export-dynamic > -L/usr/lib/python2.4/config -static -lpython2.4 -dynamic -lpthread -ldl > -lutil -lm > /usr/lib/python2.4/config/libpython2.4.a(dynload_shlib.o): In function > `_PyImport_GetDynLoadFunc': > (.text+0x1a8): warning: Using 'dlopen' in statically linked applications > requires at runtime the shared libraries from the glibc version used for > linking > /usr/lib/python2.4/config/libpython2.4.a(posixmodule.o): In function > `posix_tmpnam': > (.text+0x564): warning: the use of `tmpnam_r' is dangerous, better use > `mkstemp' > /usr/lib/python2.4/config/libpython2.4.a(posixmodule.o): In function > `posix_tempnam': > (.text+0x634): warning: the use of `tempnam' is dangerous, better use > `mkstemp' > /usr/lib/python2.4/config/libpython2.4.a(pwdmodule.o): In function > `pwd_getpwall': > (.text+0x201): warning: Using 'getpwent' in statically linked applications > requires at runtime the shared libraries from the glibc version used for > linking > /usr/lib/python2.4/config/libpython2.4.a(pwdmodule.o): In function > `pwd_getpwnam': > (.text+0x2c7): warning: Using 'getpwnam' in statically linked applications > requires at runtime the shared libraries from the glibc version used for > linking > /usr/lib/python2.4/config/libpython2.4.a(pwdmodule.o): In function > `pwd_getpwuid': > (.text+0x337): warning: Using 'getpwuid' in statically linked applications > requires at runtime the shared libraries from the glibc version used for > linking > /usr/lib/python2.4/config/libpython2.4.a(pwdmodule.o): In function > `pwd_getpwall': > (.text+0x1fb): warning: Using 'setpwent' in statically linked applications > requires at runtime the shared libraries from the glibc version used for > linking > /usr/lib/python2.4/config/libpython2.4.a(pwdmodule.o): In function > `pwd_getpwall': > (.text+0x243): warning: Using 'endpwent' in statically linked applications > requires at runtime the shared libraries from the glibc version used for > linking > gcc -c -I. -I/usr/include/python2.4 -I/usr/include/python2.4 -o > ConsoleKeepPath.o ConsoleKeepPath.c > gcc -o bases/ConsoleKeepPath ConsoleKeepPath.o -s -Xlinker -export-dynamic > -L/usr/lib/python2.4/config -static -lpython2.4 -dynamic -lpthread -ldl > -lutil -lm > /usr/lib/python2.4/config/libpython2.4.a(dynload_shlib.o): In function > `_PyImport_GetDynLoadFunc': > (.text+0x1a8): warning: Using 'dlopen' in statically linked applications > requires at runtime the shared libraries from the glibc version used for > linking > /usr/lib/python2.4/config/libpython2.4.a(posixmodule.o): In function > `posix_tmpnam': > (.text+0x564): warning: the use of `tmpnam_r' is dangerous, better use > `mkstemp' > /usr/lib/python2.4/config/libpython2.4.a(posixmodule.o): In function > `posix_tempnam': > (.text+0x634): warning: the use of `tempnam' is dangerous, better use > `mkstemp' > /usr/lib/python2.4/config/libpython2.4.a(pwdmodule.o): In function > `pwd_getpwall': > (.text+0x201): warning: Using 'getpwent' in statically linked applications > requires at runtime the shared libraries from the glibc version used for > linking > /usr/lib/python2.4/config/libpython2.4.a(pwdmodule.o): In function > `pwd_getpwnam': > (.text+0x2c7): warning: Using 'getpwnam' in statically linked applications > requires at runtime the shared libraries from the glibc version used for > linking > /usr/lib/python2.4/config/libpython2.4.a(pwdmodule.o): In function > `pwd_getpwuid': > (.text+0x337): warning: Using 'getpwuid' in statically linked applications > requires at runtime the shared libraries from the glibc version used for > linking > /usr/lib/python2.4/config/libpython2.4.a(pwdmodule.o): In function > `pwd_getpwall': > (.text+0x1fb): warning: Using 'setpwent' in statically linked applications > requires at runtime the shared libraries from the glibc version used for > linking > /usr/lib/python2.4/config/libpython2.4.a(pwdmodule.o): In function > `pwd_getpwall': > (.text+0x243): warning: Using 'endpwent' in statically linked applications > requires at runtime the shared libraries from the glibc version used for > linking > ---------------------------------- > > > and here is the output for freezing PythonFreeze: > > ----------------------------------- > tim@lofty:/home/tim/cx_Freeze-3.0.3$ python FreezePython.py --no-copy-deps > FreezePython.py > > Name File > ---- ---- > m Freezer Freezer.py > m ModuleFinder ModuleFinder.py > m StringIO /usr/lib/python2.4/StringIO.py > m UserDict /usr/lib/python2.4/UserDict.py > m __builtin__ > m __main__ FreezePython.py > m _locale /usr/lib/python2.4/lib-dynload/_locale.so > m _sre > m array /usr/lib/python2.4/lib-dynload/array.so > m binascii /usr/lib/python2.4/lib-dynload/binascii.so > m copy /usr/lib/python2.4/copy.py > m copy_reg /usr/lib/python2.4/copy_reg.py > m cx_Freeze__init__ > /mnt/hgfs/Shared/cx_Freeze-3.0.3/initscripts/ConsoleKeepPath.py > m dis /usr/lib/python2.4/dis.py > m errno > m exceptions > m fnmatch /usr/lib/python2.4/fnmatch.py > m getopt /usr/lib/python2.4/getopt.py > m gettext /usr/lib/python2.4/gettext.py > m glob /usr/lib/python2.4/glob.py > m imp > m inspect /usr/lib/python2.4/inspect.py > m itertools /usr/lib/python2.4/lib-dynload/itertools.so > m linecache /usr/lib/python2.4/linecache.py > m locale /usr/lib/python2.4/locale.py > m macpath /usr/lib/python2.4/macpath.py > m marshal > m modulefinder /usr/lib/python2.4/modulefinder.py > m new /usr/lib/python2.4/new.py > m ntpath /usr/lib/python2.4/ntpath.py > m opcode /usr/lib/python2.4/opcode.py > m optparse /usr/lib/python2.4/optparse.py > m os /usr/lib/python2.4/os.py > m os2emxpath /usr/lib/python2.4/os2emxpath.py > m popen2 /usr/lib/python2.4/popen2.py > m posix > m posixpath /usr/lib/python2.4/posixpath.py > m pwd > m py_compile /usr/lib/python2.4/py_compile.py > m re /usr/lib/python2.4/re.py > m repr /usr/lib/python2.4/repr.py > m shutil /usr/lib/python2.4/shutil.py > m sre /usr/lib/python2.4/sre.py > m sre_compile /usr/lib/python2.4/sre_compile.py > m sre_constants /usr/lib/python2.4/sre_constants.py > m sre_parse /usr/lib/python2.4/sre_parse.py > m stat /usr/lib/python2.4/stat.py > m string /usr/lib/python2.4/string.py > m strop /usr/lib/python2.4/lib-dynload/strop.so > m struct /usr/lib/python2.4/lib-dynload/struct.so > m sys > m textwrap /usr/lib/python2.4/textwrap.py > m time /usr/lib/python2.4/lib-dynload/time.so > m token /usr/lib/python2.4/token.py > m tokenize /usr/lib/python2.4/tokenize.py > m traceback /usr/lib/python2.4/traceback.py > m types /usr/lib/python2.4/types.py > m zipfile /usr/lib/python2.4/zipfile.py > m zipimport > m zlib /usr/lib/python2.4/lib-dynload/zlib.so > > Missing modules: > ? Carbon.File imported from macpath > ? MacOS imported from py_compile > ? _emx_link imported from os > ? ce imported from os > ? mac imported from os > ? nt imported from ntpath, os > ? org.python.core imported from copy > ? os.path imported from os, shutil > ? os2 imported from os > ? riscos imported from os > ? riscosenviron imported from os > ? riscospath imported from os > Frozen binary /home/tim/cx_Freeze-3.0.3/FreezePython created. > Done. > ---------------------------------- > > thanks > > _________________________________________________________________ > Exclusive Ed Byrne daily comedy clips on MSN Video > http://specials.uk.msn.com/edbyrne/ > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > cx-freeze-users mailing list > cx-...@li... > https://lists.sourceforge.net/lists/listinfo/cx-freeze-users > |