Am 20.04.2013 19:23:23 schrieb(en) William R:
once godi-camlimages 4.0.1 was installed, I could do native compilation. But it failed with byte compilation. I guess it is a problem from the camlimage compilation, but I am not sure :

Ah, looking closer to your error I see the problem: You are using -custom.

Fixed that in 4.0.1godi2.

For reference, these commands work now all (using the converter example):

ocamlfind ocamlc -o converter -package camlimages,camlimages.all_formats -linkpkg converter.ml

ocamlfind ocamlc -custom -o converter -package camlimages,camlimages.all_formats -linkpkg converter.ml

ocamlfind ocamlopt -o converter -package camlimages,camlimages.all_formats -linkpkg converter.ml

Gerd


/tmp/cc2bZjQw.o:(.data+0x36a8): undefined reference to `dGifOpenFileName'
/tmp/cc2bZjQw.o:(.data+0x36b0): undefined reference to `dGifCloseFile'
/tmp/cc2bZjQw.o:(.data+0x36b8): undefined reference to `dGifGetRecordType' /tmp/cc2bZjQw.o:(.data+0x36c0): undefined reference to `dGifGetImageDesc'
/tmp/cc2bZjQw.o:(.data+0x36c8): undefined reference to `dGifGetLine'
/tmp/cc2bZjQw.o:(.data+0x36d0): undefined reference to `dGifGetExtension' /tmp/cc2bZjQw.o:(.data+0x36d8): undefined reference to `eGifOpenFileName'
/tmp/cc2bZjQw.o:(.data+0x36e0): undefined reference to `eGifCloseFile'
/tmp/cc2bZjQw.o:(.data+0x36e8): undefined reference to `eGifPutScreenDesc' /tmp/cc2bZjQw.o:(.data+0x36f0): undefined reference to `eGifPutImageDesc'
/tmp/cc2bZjQw.o:(.data+0x36f8): undefined reference to `eGifPutLine'
/tmp/cc2bZjQw.o:(.data+0x3700): undefined reference to `eGifPutExtension' /tmp/cc2bZjQw.o:(.data+0x3708): undefined reference to `read_jpeg_scanline' /tmp/cc2bZjQw.o:(.data+0x3710): undefined reference to `close_jpeg_file_for_read' /tmp/cc2bZjQw.o:(.data+0x3718): undefined reference to `open_jpeg_file_for_write' /tmp/cc2bZjQw.o:(.data+0x3720): undefined reference to `write_jpeg_scanline' /tmp/cc2bZjQw.o:(.data+0x3728): undefined reference to `close_jpeg_file_for_write' /tmp/cc2bZjQw.o:(.data+0x3730): undefined reference to `open_jpeg_file_for_write_cmyk' /tmp/cc2bZjQw.o:(.data+0x3738): undefined reference to `read_jpeg_scanlines' /tmp/cc2bZjQw.o:(.data+0x3740): undefined reference to `open_jpeg_file_for_read' /tmp/cc2bZjQw.o:(.data+0x3748): undefined reference to `jpeg_set_scale_denom' /tmp/cc2bZjQw.o:(.data+0x3750): undefined reference to `open_jpeg_file_for_read_start' /tmp/cc2bZjQw.o:(.data+0x3758): undefined reference to `write_png_file_index' /tmp/cc2bZjQw.o:(.data+0x3760): undefined reference to `write_png_file_rgb'
/tmp/cc2bZjQw.o:(.data+0x3768): undefined reference to `read_png_file'
/tmp/cc2bZjQw.o:(.data+0x3770): undefined reference to `read_png_file_as_rgb24' /tmp/cc2bZjQw.o:(.data+0x3778): undefined reference to `open_tiff_file_for_read' /tmp/cc2bZjQw.o:(.data+0x3780): undefined reference to `read_tiff_scanline' /tmp/cc2bZjQw.o:(.data+0x3788): undefined reference to `close_tiff_file' /tmp/cc2bZjQw.o:(.data+0x3790): undefined reference to `open_tiff_file_for_write' /tmp/cc2bZjQw.o:(.data+0x3798): undefined reference to `write_tiff_scanline'
/tmp/cc2bZjQw.o:(.data+0x37a0): undefined reference to `read_xpm_file'
collect2: ld returned 1 exit status
File "_none_", line 1:
Error: Error while building custom runtime system
Command exited with code 2.
Compilation unsuccessful after building 458 targets (454 cached) in 00:00:02.

I've updated the package again, hoping to fix issues (man, camlimages is really buggy upstream).

I'm not sure whether your problem is solved by this. If it persists, I'd need more input here (what I've checked is that you can load camlimages into the toploop with all formats, i.e.

#use "topfind";;
#require "camlimages.all_formats";;
).


Hello, it did not solve the problem.
Do you have ideas of the origin of the problem ? would it be at camlimage compile time ? or problem in META file ? or problem from my side ?

William



--
------------------------------------------------------------
Gerd Stolpmann, Darmstadt, Germany    g...@gerd-stolpmann.de
Creator of GODI and camlcity.org.
Contact details:        http://www.camlcity.org/contact.html
Company homepage:       http://www.gerd-stolpmann.de
------------------------------------------------------------
_______________________________________________
Godi-list mailing list
Godi-list@ocaml-programming.de
https://godirepo.camlcity.org/mailman/listinfo/godi-list

Reply via email to