Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Need some build assistance with MozJpeg 3.0

224 views
Skip to first unread message

Scott Baker

unread,
Jan 14, 2015, 4:16:07 PM1/14/15
to dev-m...@lists.mozilla.org
I want to build the command line utility to mass compress some JPEGs for
a project I'm working on. I've cloned the repo and now I'm having
problems building. I didn't find any specific build instructions in any
of the docs so maybe I'm doing something wrong.

bakers@snikt(/tmp/baker/mozjpeg)
:cmake .
-- The C compiler identification is GNU 4.9.2
-- Check for working C compiler: /usr/lib64/ccache/cc
-- Check for working C compiler: /usr/lib64/ccache/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- CMAKE_BUILD_TYPE = Release
-- VERSION = 3.0, BUILD = 20150113
-- Arithmetic encoding support enabled
-- Arithmetic decoding support enabled
-- TurboJPEG C wrapper enabled
-- TurboJPEG Java wrapper disabled
-- In-memory source/destination managers enabled
-- 64-bit build
-- Install directory = c:/mozjpeg-gcc64
-- Building x86_64 SIMD extensions
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/baker/mozjpeg

:make
Scanning dependencies of target simd
[ 1%] Generating jfdctflt-sse-64.obj
[ 1%] Generating jccolor-sse2-64.obj
[ 2%] Generating jcgray-sse2-64.obj
<snipped>
[ 27%] Building C object CMakeFiles/jpeg-static.dir/jmemnobs.c.o
[ 27%] Building C object CMakeFiles/jpeg-static.dir/jaricom.c.o
[ 28%] Building C object CMakeFiles/jpeg-static.dir/jcarith.c.o
[ 28%] Building C object CMakeFiles/jpeg-static.dir/jdarith.c.o
[ 28%] Building C object CMakeFiles/jpeg-static.dir/simd/jsimd_x86_64.c.o
Linking C static library libjpeg.a
[ 28%] Built target jpeg-static
Scanning dependencies of target cjpeg-static
[ 28%] Building C object CMakeFiles/cjpeg-static.dir/cjpeg.c.o
[ 29%] Building C object CMakeFiles/cjpeg-static.dir/cdjpeg.c.o
/tmp/baker/mozjpeg/cdjpeg.c:19:59: fatal error: io.h: No such file or
directory
#include <io.h> /* to declare setmode() */
^
compilation terminated.
CMakeFiles/cjpeg-static.dir/build.make:77: recipe for target
'CMakeFiles/cjpeg-static.dir/cdjpeg.c.o' failed
make[2]: *** [CMakeFiles/cjpeg-static.dir/cdjpeg.c.o] Error 1
CMakeFiles/Makefile2:60: recipe for target
'CMakeFiles/cjpeg-static.dir/all' failed
make[1]: *** [CMakeFiles/cjpeg-static.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

It's complaining about the lack of <io.h>? That comes from glibc-devel
right? I'm building this on Fedora 21 if it makes a difference.

--
Scott Baker - Canby Telcom
Senior System Administrator - RHCE

Sigurður Guðbrandsson

unread,
Feb 2, 2015, 7:20:23 PM2/2/15
to mozilla-d...@lists.mozilla.org
You may need nasm and glibc-headers

Take a look at this build package .. https://sundaram.fedorapeople.org/packages/libmozjpeg.spec
0 new messages