Self inflicted wounds using cx_freeze
authorSam Moore <[email protected]>
Mon, 28 Jan 2013 14:54:56 +0000 (22:54 +0800)
committerSam Moore <[email protected]>
Mon, 28 Jan 2013 14:54:56 +0000 (22:54 +0800)
commit444244d5c7698bb7861cdb7c0ec6bfb0e8cebfb7
treee9236ebd83bb0a2e9a7d71efecc0c76bbc572a0d
parent707e794d26062516eb4188d1cd2902929613c46b
Self inflicted wounds using cx_freeze

The pain is freezing me.

I've been trying to freeze the qchess.py script into a win32 binary, so that windows people don't need to install python.
Except I've realised that they will probably install python to enter anyway, since it is the easiest language.
HER DURP.

I mostly got cx_freeze to work.

Fun tip: Unicode strings cause segmentation faults

So wrote hacky script to save unicode characters to png files, then use png files in frozen versions.

cx_freeze in linux worked amazingly well.

For windows... I installed python and cx_freeze in wine... this was probably a mistake,
because all the dll files were missing. But I found all the dll files, so that's fixed.

qchess.exe works in wine, but can't load python agent programs... because windows doesn't understand #!
Well, fuck. Also annoying bug with Tk open file dialog mouse which I cannot be bothered chasing.

Tried hacky batch file, but it doesn't work in wine. Will try in Windows 7 soon.

PS:
Also changed directory structure somewhat.

Ironically, using cx_freeze doesn't result in freezing programs!
46 files changed:
agents/bishop.py
agents/win32_bishop.bat [new file with mode: 0755]
qchess/Makefile
qchess/board.py [deleted file]
qchess/build.py [new file with mode: 0644]
qchess/build/exe.linux-x86_64-2.7.zip [new file with mode: 0644]
qchess/build/exe.win32-2.7.zip [new file with mode: 0644]
qchess/game.py [deleted file]
qchess/graphics.py [deleted file]
qchess/main.py [deleted file]
qchess/network.py [deleted file]
qchess/piece.py [deleted file]
qchess/player.py [deleted file]
qchess/qchess.py
qchess/src/Makefile [new file with mode: 0644]
qchess/src/board.py [new file with mode: 0644]
qchess/src/game.py [new file with mode: 0644]
qchess/src/graphics.py [new file with mode: 0644]
qchess/src/images.py [new file with mode: 0644]
qchess/src/main.py [new file with mode: 0644]
qchess/src/network.py [new file with mode: 0644]
qchess/src/piece.py [new file with mode: 0644]
qchess/src/player.py [new file with mode: 0644]
qchess/src/thread_util.py [new file with mode: 0644]
qchess/src/timeout_player.py [new file with mode: 0644]
qchess/thread_util.py [deleted file]
qchess/tools/image_builder.py [new file with mode: 0644]
qchess/tools/images.py [new symlink]
qchess/tools/images.pyc [new file with mode: 0644]
qchess/update.sh [deleted file]
qchess/win32_dll/SDL.dll [new file with mode: 0644]
qchess/win32_dll/SDL_image.dll [new file with mode: 0644]
qchess/win32_dll/SDL_mixer.dll [new file with mode: 0644]
qchess/win32_dll/SDL_ttf.dll [new file with mode: 0644]
qchess/win32_dll/jpeg.dll [new file with mode: 0644]
qchess/win32_dll/libfreetype-6.dll [new file with mode: 0644]
qchess/win32_dll/libjpeg-8.dll [new file with mode: 0644]
qchess/win32_dll/libpng12-0.dll [new file with mode: 0644]
qchess/win32_dll/libpng15-15.dll [new file with mode: 0644]
qchess/win32_dll/libtiff-5.dll [new file with mode: 0644]
qchess/win32_dll/libwebp-2.dll [new file with mode: 0644]
qchess/win32_dll/mfc42.dll [new file with mode: 0644]
qchess/win32_dll/smpeg.dll [new file with mode: 0644]
qchess/win32_dll/tcl85.dll [new file with mode: 0644]
qchess/win32_dll/tk85.dll [new file with mode: 0644]
qchess/win32_dll/zlib1.dll [new file with mode: 0644]

UCC git Repository :: git.ucc.asn.au