Skip to content

Commit

Permalink
Fix include (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
ar4s authored Nov 19, 2021
1 parent 909d686 commit 9809e11
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
4 changes: 4 additions & 0 deletions Sources/CMozJpeg/includes/cdjpeg.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

#define JPEG_CJPEG_DJPEG /* define proper options in jconfig.h */
#define JPEG_INTERNAL_OPTIONS /* cjpeg.c,djpeg.c need to see xxx_SUPPORTED */
#ifndef cdjpeg_h
#define cdjpeg_h
#include "jinclude.h"
#include "jpeglib.h"
#include "jerror.h" /* get library error codes too */
Expand Down Expand Up @@ -162,3 +164,5 @@ EXTERN(FILE *) write_stdout (void);
#ifndef EXIT_WARNING
#define EXIT_WARNING 2
#endif

#endif /* cdjpeg_h */
25 changes: 12 additions & 13 deletions install-linux-dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
#!/bin/bash
set -ex

MOZJPEG_VER=3.3.1

mkdir -p /app && cd /app

mkdir -p /build/lib && mkdir -p /build/bin

ADD . .

apt-get update
apt-get install -y wget libssl-dev autoconf automake libtool pkg-config nasm make
apt-get update
apt-get install -y wget libssl-dev autoconf automake libtool pkg-config nasm make

# build and install mozjpeg
wget https://github.com/mozilla/mozjpeg/archive/v$MOZJPEG_VER.tar.gz
tar -xvf v$MOZJPEG_VER.tar.gz
cd mozjpeg-$MOZJPEG_VER
autoreconf -fiv
mkdir build
cd build
sh ../configure && make install
rm /app/v$MOZJPEG_VER.tar.gz
echo "/opt/mozjpeg/lib64/" >> /etc/ld.so.conf.d/mozjpeg.conf
wget https://github.com/mozilla/mozjpeg/archive/v$MOZJPEG_VER.tar.gz
tar -xvf v$MOZJPEG_VER.tar.gz
cd mozjpeg-$MOZJPEG_VER
autoreconf -fiv
mkdir build
cd build
sh ../configure && make install
rm /app/v$MOZJPEG_VER.tar.gz
echo "/opt/mozjpeg/lib64/" >> /etc/ld.so.conf.d/mozjpeg.conf
ldconfig

0 comments on commit 9809e11

Please sign in to comment.