error loading module 'libjpeg' from file '/home/anurag/torch/install/lib/lua/5.1/libjpeg.so': /home/anurag/torch/install/lib/lua/5.1/libjpeg.so: undefined symbol: jpeg_mem_src warning: <libjpeg> could not be loaded (is it installed?)
error loading module 'libpng' from file '/home/anurag/torch/install/lib/lua/5.1/libpng.so': /home/anurag/torch/install/lib/lua/5.1/libpng.so: undefined symbol: png_set_longjmp_fn warning: <libpng> could not be loaded (is it installed?)
/home/anurag/torch/install/share/lua/5.1/dok/inline.lua:629: <image.lena> no bindings available to load images (libjpeg AND libpng missing)
stack traceback:
[C]: in function 'error'
/home/anurag/torch/install/share/lua/5.1/dok/inline.lua:629: in function 'error'
/home/anurag/torch/install/share/lua/5.1/image/init.lua:1071: in function 'lena'
[string "local f = function() return image.display(ima..."]:1: in function 'f'
[string "local f = function() return image.display(ima..."]:1: in main chunk
[C]: in function 'xpcall'
/home/anurag/torch/install/share/lua/5.1/itorch/main.lua:194: in function </home/anurag/torch/install/share/lua/5.1/itorch/main.lua:160>
/home/anurag/torch/install/share/lua/5.1/lzmq/poller.lua:75: in function 'poll'
/home/anurag/torch/install/share/lua/5.1/lzmq/impl/loop.lua:307: in function 'poll'
/home/anurag/torch/install/share/lua/5.1/lzmq/impl/loop.lua:325: in function 'sleep_ex'
/home/anurag/torch/install/share/lua/5.1/lzmq/impl/loop.lua:370: in function 'start'
/home/anurag/torch/install/share/lua/5.1/itorch/main.lua:374: in main chunk
[C]: in function 'require'
(command line):1: in main chunk
[C]: at 0x00404670
When I run the "nm -g" command on the *so files, I find the symbols defined.
I even re-installed image library by downloading the source and running "luarocks make". Please help. Thanks :)--
You received this message because you are subscribed to the Google Groups "torch7" group.
To unsubscribe from this group and stop receiving emails from it, send an email to torch7+un...@googlegroups.com.
To post to this group, send email to tor...@googlegroups.com.
Visit this group at http://groups.google.com/group/torch7.
For more options, visit https://groups.google.com/d/optout.
you probably need libjpeg and libpng installed on your centos 6.5 machine. sudo yum install libjpeg-devel libpng-develThen you might have to reinstall the image package: luarocks install image
Anoop, torch does not build it's own libpng/libjpeg. it compiles lua wrappers around the existing libpng/libjpeg if they are found on the system.
--
You received this message because you are subscribed to a topic in the Google Groups "torch7" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/torch7/uzEouI3pwhA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to torch7+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/torch7.
~/torch/install/share/lua/5.1/image/init.lua:212: Wrong JPEG library version: library is 80, caller expects 62
Any thoughts on what would be expecting the 6.2 version of libjpeg?
Btw, here is what I get when I did ldd on libjpeg installed in the torch directory.
$> ldd ~/torch/install/lib/lua/5.1/libjpeg.so
linux-vdso.so.1 => (0x00007fff9c9ff000)
libluaT.so =>~/torch/install/lib/libluaT.so (0x00002ba1cdab3000)
libTH.so => ~/torch/install/lib/libTH.so (0x00002ba1cdcbc000)
libjpeg.so.8 => ~/jpeg_dir/lib/libjpeg.so.8 (0x00002ba1ce0b0000)
libblas.so.3 => /usr/lib64/libblas.so.3 (0x00002ba1ce301000)
liblapack.so.3 => /usr/lib64/atlas/liblapack.so.3 (0x00002ba1ce559000)
librt.so.1 => /lib64/librt.so.1 (0x00002ba1ced7a000)
libgomp.so.1 => /usr/lib64/libgomp.so.1 (0x00002ba1cef82000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002ba1cf198000)
libc.so.6 => /lib64/libc.so.6 (0x00002ba1cf3b5000)
/lib64/ld-linux-x86-64.so.2 (0x00002ba1cd688000)
libm.so.6 => /lib64/libm.so.6 (0x00002ba1cf749000)
libgfortran.so.3 => /usr/lib64/libgfortran.so.3 (0x00002ba1cf9ce000)
libf77blas.so.3 => /usr/lib64/atlas/libf77blas.so.3 (0x00002ba1cfcc0000)
libcblas.so.3 => /usr/lib64/atlas/libcblas.so.3 (0x00002ba1cfedf000)
libatlas.so.3 => /usr/lib64/atlas/libatlas.so.3 (0x00002ba1d0100000)