ç»åãã¥ã¼ã¢GImageViewã®éçºã®ãã®å¾(2014å¹´10ææç¹)ã¨libmngã®ãã¹ãããã°ã©ã ã®åé¡ã«ã¤ãã¦
Â
- éçºçã½ã¼ã¹ã®æ°ãããªãã¸ããªã«ã¤ãã¦
- ãªãã¸ããªç§»è¡å¾ã®ä¿®æ£ç¹
- libmngã®æ¤åºã«å¤±æãã件ã¨ãã®å¯¾å¦
éçºçã½ã¼ã¹ã®æ°ãããªãã¸ããªã«ã¤ãã¦
ããã¾ã§Subversionãç¨ãã¦ç®¡çããã¦ããã½ã¼ã¹ã¯ãã®å¾
github.com/ashie/gimageview
ã§ç®¡çããã¦ãã
sourceforge.net/p/gtkmmviewer/code/HEAD/tree/
ã®æçµãªãã¸ã§ã³ã§ããr1215(2010å¹´11æ)ããå¾ã®å¤æ´ã¯ããã§é©ç¨ããã¦ããã
ãªãã¸ããªç§»è¡å¾ã®ä¿®æ£ç¹
PPAãªãã¸ããªãppa:kakurasan/unstableãã§å ¬éãã¦ããUbuntuåãã®èªä½ããã±ã¼ã¸(ããã¾ã§ã®å ¬éãã¼ã¸ã§ã³ã¯r1215)ã§
- å é¨ã¢ã¤ã³ã³ãã¡ã¤ã«ã®ã¤ã³ã¹ãã¼ã«ã«é¢ããè¨è¿°ã®éè¤å¯¾ç
- Ubuntu 13.04ã®ã¨ãã«çºçãããªã³ã¯ã¨ã©ã¼å¯¾ç
ã¨ãã¦ç¬èªã«ä½æãã¦å ¥ãã¦ãããããã¨åæ§ã®ä¿®æ£ãã¨ãã«2014å¹´9æã«å ¥ã£ã¦ãããr1215ããå¾ã«ã¯ãã以å¤ã®ä¿®æ£ç¹ã¯ãªãã
libmngã®æ¤åºã«å¤±æãã件ã¨ãã®å¯¾å¦
MNGå½¢å¼ã®ã¢ãã¡ã¼ã·ã§ã³ç»åãæ±ãã(GImageViewå ã§è¡¨ç¤ºã§ãã)ããã«ããã©ã¤ãã©ãªlibmngã(éçºããã±ã¼ã¸å«ã)ã·ã¹ãã ã«ã¤ã³ã¹ãã¼ã«ããã¦ãã¦ãæ¤åºã«å¤±æãããã¨ãåãã£ãã
(configureã¹ã¯ãªããã®åºå) $ ./configure ... checking libmng.h usability... yes checking libmng.h presence... yes checking for libmng.h... yes checking for mng_initialize in -lmng... yes checking for libmng functions... configure: WARNING: *** MNG library (libmng) is found but it is too old *** no ... Configure Result : C Compiler : gcc ... MNG (libmng) : no ... (libmngã®ãã¼ã¸ã§ã³ã確èª) $ pkg-config --modversion libmng 2.0.2
[å¼ç¨]ãã¡ã¤ã«å: config.log ãã
configure:16737: checking for libmng functions configure:16766: gcc -c -g -O2 conftest.c >&5 In file included from /usr/include/libmng_types.h:203:0, from /usr/include/libmng.h:386, from conftest.c:26: /usr/include/jpeglib.h:1000:30: error: unknown type name 'FILE' EXTERN(void) jpeg_stdio_dest JPP((j_compress_ptr cinfo, FILE * outfile)); ^ /usr/include/jpeglib.h:1001:29: error: unknown type name 'FILE' EXTERN(void) jpeg_stdio_src JPP((j_decompress_ptr cinfo, FILE * infile)); ^ configure:16766: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "gimageview" | #define PACKAGE_TARNAME "gimageview" | #define PACKAGE_VERSION "0.3.0" | #define PACKAGE_STRING "gimageview 0.3.0" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "" | #define PACKAGE "gimageview" | #define VERSION "0.3.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_PROGRESSIVE_JPEG 1 | #define ENABLE_JPEG 1 | #define ENABLE_EXIF 1 | /* end confdefs.h. */ | #include <libmng.h> | int | main () | { | mng_handle handle; | mng_version_text(); | handle = mng_initialize(NULL, NULL, NULL, MNG_NULL); | mng_setcb_errorproc(handle, NULL); | mng_setcb_openstream(handle, NULL); | mng_setcb_closestream(handle, NULL); | mng_setcb_readdata(handle, NULL); | mng_setcb_gettickcount(handle, NULL); | mng_setcb_settimer(handle, NULL); | mng_setcb_processheader(handle, NULL); | mng_setcb_getcanvasline(handle, NULL); | mng_setcb_refresh(handle, NULL); | mng_get_userdata(handle); | mng_set_canvasstyle(handle, MNG_CANVAS_RGB8); | mng_set_bgcolor(handle, 0, 0, 0); | mng_readdisplay(handle); | mng_readdisplay_resume(handle); | ; | return 0; | } configure:16773: WARNING: *** MNG library (libmng) is found but it is too old *** configure:16777: result: no
FILEåã¯æ¨æºCã©ã¤ãã©ãªãç¨ãããã¡ã¤ã«å
¥åºåã§ç¨ãããããããããç¨ããã«ã¯ããããã¡ã¤ã«stdio.hãåãè¾¼ãã°ãããããåãã¡ã¤ã«ãå
ã«åãè¾¼ã¾ããããã«ããã°ããã
å®éã¨ãã¦ã¯configure.acã®
AC_TRY_COMPILE([ #include <libmng.h> ],
ã®è¡ã
AC_TRY_COMPILE([ #include <stdio.h> #include <libmng.h> ],
ã¨ãããã¨ã§
$ ./configure ... checking libmng.h usability... yes checking libmng.h presence... yes checking for libmng.h... yes checking for mng_initialize in -lmng... yes checking for libmng functions... yes ... Configure Result : C Compiler : gcc ... MNG (libmng) : yes ...
ç¡äºã«æ¤åºããããã«ãããå®è¡ãã¡ã¤ã«ãç¨ãã¦æ£å¸¸ã«MNGãã¡ã¤ã«ãéãããã¨ã確èªã§ããã
ãã ããã®ä»¶ã«ã¤ãã¦ã¯ã¡ãã»ã¼ã¸ã®å
容ãããåããéããåå ã¯libmngãããã¯libjpegã®ããããã¡ã¤ã«ã®å´ã«ãã
bugs.launchpad.net/ubuntu/+source/libmng/+bug/1342459
ã®ä»¶ã¨ãåããã®ã¨æããããããGImageViewå´ãä¿®æ£ããã®ãé©åãªã®ãã©ããã¯åãããªãããã ãconfigure.acãè¦ãã¨libjpegã®(ããããã¡ã¤ã«ã®)æ¤åºã§ã¯ãã¹ãããã°ã©ã ã«ã#include <stdio.h>ããå
¥ã£ã¦ããã®ã§ãlibmngã®ãã¹ãããã°ã©ã ã«å
¥ãã¦ãåé¡ã¯ãªããããªæ°ãããã
使ç¨ãããã¼ã¸ã§ã³:
- GImageView 2014/9/5ç