torch / image

An Image toolbox for Torch.
Other
209 stars 141 forks source link

Fix "undefined symbol: luaopen_libpng" when running torch-android #214

Closed wartstone closed 7 years ago

wartstone commented 7 years ago

libpng is a high usage lib for android' image related apps. Thus, when android has already loaded "libpng" module in system, the other "libpng" library generated by torch-image module would have a name conflict issue. Thus, when lua tried to require 'libpng', the dlsym() func would always return the older lib handle, which leads that torch cannot find "luaopen_libpng" exported func.

Solution: we rename this lib to avoid name conflict issue.