Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MagickWand-config location in Debian jessie #51

Open
szepeviktor opened this issue May 16, 2015 · 1 comment
Open

MagickWand-config location in Debian jessie #51

szepeviktor opened this issue May 16, 2015 · 1 comment

Comments

@szepeviktor
Copy link

I've added in configure.ac

ECK_PROGS(MAGICK_CONFIG, MagickWand-config Magick-config, "/usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16/MagickWand-config")

then

make
make  all-recursive
make[1]: Entering directory '/root/debian-server-tools/monitoring/cpu-speed/x/imgmin'
Making all in src
make[2]: Entering directory '/root/debian-server-tools/monitoring/cpu-speed/x/imgmin/src'
gcc -std=gnu99 -W -Wall -Os  `/usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16/MagickWand-config --cflags --cppflags` -o imgmin imgmin.c dssim.c `/usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16/MagickWand-config --ldflags --libs` -lm
imgmin.c: In function ‘convert_row_callback’:
imgmin.c:197:51: warning: unused parameter ‘inf’ [-Wunused-parameter]
 void convert_row_callback(const dssim_info *const inf, float *const channels[], const int num_channels, const int y, const int orig_width, void *user_data) {
                                                   ^
imgmin.c:197:91: warning: unused parameter ‘num_channels’ [-Wunused-parameter]
 void convert_row_callback(const dssim_info *const inf, float *const channels[], const int num_channels, const int y, const int orig_width, void *user_data) {
                                                                                           ^
imgmin.c:197:115: warning: unused parameter ‘y’ [-Wunused-parameter]
 void convert_row_callback(const dssim_info *const inf, float *const channels[], const int num_channels, const int y, const int orig_width, void *user_data) {
                                                                                                                   ^
imgmin.c: In function ‘do_png’:
imgmin.c:429:9: warning: initialization discards ‘const’ qualifier from pointer target type
         char * const argv[] = { "pngnq", "-f", src, (char*)0};
         ^
imgmin.c:439:9: warning: initialization discards ‘const’ qualifier from pointer target type
         char * const argv[] = { "pngcrush", "-force", src, out, (char*)0 };
         ^
imgmin.c:446:9: warning: initialization discards ‘const’ qualifier from pointer target type
         char * const argv[] = { "pngquant", "-force", "256", src, (char*)0 };
         ^
imgmin.c:469:9: warning: initialization discards ‘const’ qualifier from pointer target type
         char * const argv[] = { "cp", files[0].path, dst, NULL };
         ^
imgmin.c:408:32: warning: unused parameter ‘mw’ [-Wunused-parameter]
 static void do_png(MagickWand *mw, const char *src, const char *dst,
                                ^
imgmin.c:409:50: warning: unused parameter ‘opt’ [-Wunused-parameter]
                     const struct imgmin_options *opt)
                                                  ^
dssim.c: In function ‘convert_image_row’:
dssim.c:304:55: warning: unused parameter ‘inf’ [-Wunused-parameter]
 static void convert_image_row(const dssim_info *const inf, float *const channels[], const int num_channels, const int y, const int width, void *user_data)
                                                       ^
make[2]: Leaving directory '/root/debian-server-tools/monitoring/cpu-speed/x/imgmin/src'
make[2]: Entering directory '/root/debian-server-tools/monitoring/cpu-speed/x/imgmin'
make[2]: Leaving directory '/root/debian-server-tools/monitoring/cpu-speed/x/imgmin'
make[1]: Leaving directory '/root/debian-server-tools/monitoring/cpu-speed/x/imgmin'

It produced imgmin executable.

@szepeviktor
Copy link
Author

Newer autoconf (2.69-8) produces remarkable warnings:

# autoreconf -fiv
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/bin/autoconf --force
autoreconf: running: /usr/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
configure.ac:8: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated.  For more info, see:
configure.ac:8: http://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation
src/Makefile.am:8: warning: deprecated feature: target 'imgmin' overrides 'imgmin$(EXEEXT)'
src/Makefile.am:8: change your target to read 'imgmin$(EXEEXT)'
/usr/share/automake-1.14/am/program.am: target 'imgmin$(EXEEXT)' was defined here
src/Makefile.am:5:   while processing program 'imgmin'
src/Makefile.am:11: warning: deprecated feature: target 'mod_imgmin' overrides 'mod_imgmin$(EXEEXT)'
src/Makefile.am:11: change your target to read 'mod_imgmin$(EXEEXT)'
/usr/share/automake-1.14/am/program.am: target 'mod_imgmin$(EXEEXT)' was defined here
src/Makefile.am:5:   while processing program 'mod_imgmin'
src/apache2/Makefile.am:6: warning: source file '../imgmin.c' is in a subdirectory,
src/apache2/Makefile.am:6: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled.  For now, the corresponding output
automake: object file(s) will be placed in the top-level directory.  However,
automake: this behaviour will change in future Automake versions: they will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
src/apache2/Makefile.am:6: warning: source file '../dssim.c' is in a subdirectory,
src/apache2/Makefile.am:6: but option 'subdir-objects' is disabled
src/apache2/Makefile.am:8: warning: deprecated feature: target 'mod_imgmin_la' overrides 'mod_imgmin_la$(EXEEXT)'
src/apache2/Makefile.am:8: change your target to read 'mod_imgmin_la$(EXEEXT)'
/usr/share/automake-1.14/am/program.am: target 'mod_imgmin_la$(EXEEXT)' was defined here
src/apache2/Makefile.am:5:   while processing program 'mod_imgmin_la'
autoreconf: Leaving directory `.'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant