[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#404393: libcamlimages-ocaml-dev: Fails to load images.

Package: libcamlimages-ocaml-dev
Version: 2.20-8
Severity: normal

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-686
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to POSIX)

Versions of packages libcamlimages-ocaml-dev depends on:
ii  libcamlimages-ocaml       2.20-8         OCaml image processing library
ii  libfreetype6-dev          2.2.1-5        FreeType 2 font engine, developmen
ii  libjpeg62-dev             6b-13          Development files for the IJG JPEG
ii  liblablgtk2-ocaml-dev     2.6.0-7        OCaml bindings to Gtk+ version 2
ii  libpng12-dev              1.2.15~beta5-1 PNG library - development
ii  libtiff4-dev              3.8.2-6        Tag Image File Format library (TIF
ii  libungif4-dev             4.1.4-4        shared library for GIF images (dev
ii  libxpm-dev                1:3.5.5-2      X11 pixmap library (development he
ii  ocaml [ocaml-3.09.2]      3.09.2-7       ML language implementation with a 

libcamlimages-ocaml-dev recommends no packages.

-- no debconf information

The simplest program (load_image.ml) using camlimages:

    let _ =
	    let filename = Sys.argv.(1) in
	    let img = OImage.load filename [] in
	    let img = OImage.rgb24 img in
	    ignore img

and compiled with:

    ocamlopt -o load_image -I +camlimages camlimages.cmx region.cmx tmpfile.cmx bitmap.cmx \
		genimage.cmx cmyk32.cmx rgba32.cmx rgb24.cmx mstring.cmx color.cmx index8.cmx \
		index16.cmx images.cmx oColor.cmx oImage.cmx load_image.ml

and then run with:

    ./load_image <somefile>

always fails with the following message:

    Fatal error: exception Images.Wrong_file_type

regardless of the type of the file or even if the files doesn't exist.

Reply to: