Skip to content

Instantly share code, notes, and snippets.

View adongy's full-sized avatar
🚧

Anthony Dong adongy

🚧
  • France
View GitHub Profile
@adongy
adongy / test.lua
Last active August 29, 2015 14:00
How-to run chdkptp from a lua shell
--[[
first make sure that chdkptp works with the binary
./chdkptp -e"exec require'camtests'.runbatch{bench=true,filexfer=true}"
]]
require('lfs')
require('chdkptp')
require('lbuf')
require('rawimg')
require('io')
require('os')
@adongy
adongy / chdkptp_lib.patch
Last active August 29, 2015 14:00
Patch to build chdkptp into lua-importable libraries
Index: trunk/include.mk
===================================================================
--- trunk/include.mk (revision 599)
+++ trunk/include.mk (working copy)
@@ -7,6 +7,7 @@
ifeq ($(HOSTPLATFORM),MINGW)
OSTYPE=Windows
EXE=.exe
+LIB=.dll
# Note may be freetype or freetype6 depending on your CD version, zlib requried for 5.5 and later