« Reply #28 on: 20 / April / 2013, 18:53:28 »
It's working in trunk, revision 2713 should fix the release-1.1 version.
Hmmmm ... I get
liblua.a(limathlib.o): In function `imath_sqrt':
/home/build/chdk/tools/hostlua/../../lib/lua/limathlib.c:181: undefined reference to `sqrt'
liblua.a(limathlib.o): In function `imath_pow':
/home/build/chdk/tools/hostlua/../../lib/lua/limathlib.c:175: undefined reference to `pow'
liblua.a(limathlib.o): In function `imath_log10':
/home/build/chdk/tools/hostlua/../../lib/lua/limathlib.c:170: undefined reference to `log10'
liblua.a(limathlib.o): In function `imath_log2':
/home/build/chdk/tools/hostlua/../../lib/lua/limathlib.c:165: undefined reference to `log2'
liblua.a(limathlib.o): In function `imath_log':
/home/build/chdk/tools/hostlua/../../lib/lua/limathlib.c:160: undefined reference to `log'
liblua.a(cordic_math.o): In function `cathetus':
/home/build/chdk/tools/hostlua/../../modules/cordic_math.c:126: undefined reference to `sqrt'
collect2: error: ld returned 1 exit status
make: *** [lua] Error 1
when I type "make" in the tools/hostlua directory using svn rev 2713 of the trunk.
It works on Windows and OSX.
I'm getting the same error on Linux using Hacki's toolchain so perhaps there's a problem with that.
Phil.
Logged
CHDK ports:
sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
g12 (1.00c, 1.00e, 1.00f & 1.00g)
sx130is (1.01d & 1.01f)
ixus310hs (1.00a & 1.01a)
sx40hs (1.00d, 1.00g & 1.00i)
g1x (1.00e, 1.00f & 1.00g)
g5x (1.00c, 1.01a, 1.01b)
g7x2 (1.01a, 1.01b, 1.10b)