From: Gerd S. <in...@ge...> - 2015-11-05 09:47:54
|
I create the documentation all the time. You need a fully configured ocamlnet, with all bells and whistles. Which makes sense, because the docs should be complete. Gerd Am Mittwoch, den 04.11.2015, 16:34 +0100 schrieb Oliver Bandel: > Well, the main problem was: > > ocamlfind: Package `lablgtk' not found > > > Now I tried with svn-stuff. > > The configure seems to have different defaults. > -enable-gtk2 seems not to be necessary. > > So I did just "./configure". > Then "make doc" > > Result: > > ============================================================================================ > ~/tmp/OCamlnet-Docs/trunk/code >make doc > for pkg in src/*/.; do \ > test ! -f $pkg/Makefile -o -f $pkg/doc-ignore || \ > { ( cd $pkg && make -f Makefile.pre generate ) || exit; \ > ( cd $pkg && make -f Makefile.pre depend ) || exit; \ > ( cd $pkg && make ocamldoc.dump ) || exit; \ > }; \ > done > make[1]: Entering directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/equeue-tcl' > make[2]: Entering directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/equeue-tcl' > sed -e 's/@VERSION@/4.0.4/' \ > -e 's/@AUTHDHREQS@//' \ > -e 's/@PREFERRED_CGI_PKG@//' \ > -e 's/@REGEXP_PROVIDER@/str/' \ > -e 's/@COMPAT_PCRE_PROVIDER@//' \ > -e 's/@ZIP_PROVIDER@//' \ > META.in >META > make[2]: Leaving directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/equeue-tcl' > make[1]: Leaving directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/equeue-tcl' > make[1]: Entering directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/equeue-tcl' > ocamlfind ocamldep *.ml *.mli >depend || { rm -f depend; exit 1; } > make[1]: Leaving directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/equeue-tcl' > make[1]: Entering directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/equeue-tcl' > ocamlfind ocamlc -g -I ../../src/equeue -I ../../src/netsys -package > "unix" -w -3-25 -c uq_tcl.mli > File "uq_tcl.mli", line 3, characters 5-11: > Error: Unbound module Equeue > ../../Makefile.rules:120: recipe for target 'uq_tcl.cmi' failed > make[1]: *** [uq_tcl.cmi] Error 2 > make[1]: Leaving directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/equeue-tcl' > Makefile:40: recipe for target 'doc' failed > make: *** [doc] Error 2 > ============================================================================================ > > > Then directly afterwards I compiled the software, before starting > again a "make doc". > Software builds. > > Result of "make doc", after is does some work: > ============================================================================================ > [...] > ocamlfind ocamlc -g -I ../../src/netsys -I ../../src/netstring > -package "unix unix" -w -3-25 -c nettls_gnutls.ml > ocamlfind ocamldoc -dump ocamldoc.dump -stars -I ../../src/netsys -I > ../../src/netstring -package "unix unix" nettls_gnutls_bindings.mli > nettls_nettle_bindings.mli nettls_gnutls.mli || { rm -f ocamldoc.dump; > exit 1; } > Warning: Module type Netsys_crypto_types.DIGESTS not found > Warning: Module type Netsys_crypto_types.SYMMETRIC_CRYPTO not found > Warning: Module type Netsys_crypto_types.TLS_PROVIDER not found > Warning: Module or module type Netsys_crypto_types.TLS_PROVIDER not found > Warning: Element Netsys_types.memory not found > Warning: Element Netsys_types not found > Warning: Element Netsys_types not found > make[1]: Leaving directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/nettls-gnutls' > make[1]: Entering directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netunidata' > make[2]: Entering directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netunidata' > make[2]: Nothing to be done for 'realgenerate'. > make[2]: Leaving directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netunidata' > make[1]: Leaving directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netunidata' > make[1]: Entering directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netunidata' > make[1]: 'depend' is up to date. > make[1]: Leaving directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netunidata' > make[1]: Entering directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netunidata' > ocamlfind ocamldoc -dump ocamldoc.dump -stars -I ../../src/netstring > -package "unix" netunidata.mli || { rm -f ocamldoc.dump; exit 1; } > Warning: Element Netconversion not found > make[1]: Leaving directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netunidata' > make[1]: Entering directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netzip' > make[2]: Entering directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netzip' > sed -e 's/@VERSION@/4.0.4/' \ > -e 's/@AUTHDHREQS@//' \ > -e 's/@PREFERRED_CGI_PKG@//' \ > -e 's/@REGEXP_PROVIDER@/str/' \ > -e 's/@COMPAT_PCRE_PROVIDER@//' \ > -e 's/@ZIP_PROVIDER@//' \ > META.in >META > make[2]: Leaving directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netzip' > make[1]: Leaving directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netzip' > make[1]: Entering directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netzip' > ocamlfind ocamldep *.ml *.mli >depend || { rm -f depend; exit 1; } > make[1]: Leaving directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netzip' > make[1]: Entering directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netzip' > ocamlfind ocamlc -g -I ../../src/netstring -package "unix " -w -3-25 > -c netgzip.mli > File "netgzip.mli", line 5, characters 19-34: > Error: Unbound module Gzip > ../../Makefile.rules:120: recipe for target 'netgzip.cmi' failed > make[1]: *** [netgzip.cmi] Error 2 > make[1]: Leaving directory > '/home/oliver/tmp/OCamlnet-Docs/trunk/code/src/netzip' > Makefile:40: recipe for target 'doc' failed > make: *** [doc] Error 2 > ~/tmp/OCamlnet-Docs/trunk/code > > ============================================================================================ > > > So it's not possible to generate the docs from the svn-stuff, even > though the lib itself can be build. > > Ciao, > Oliver > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Zitat von Gerd Stolpmann <in...@ge...> (Wed, 04 Nov 2015 > 10:56:44 +0100) > > > Try it with a checked-out version of ocamlnet: > > > > svn co https://godirepo.camlcity.org/svn/lib-ocamlnet2/trunk ocamlnet > > > > Obviously the file src/equeue-gtk1/doc-ignore is missing in the tarball. > > > > Gerd > > > > > > Am Freitag, den 30.10.2015, 22:44 +0100 schrieb Oliver Bandel: > >> Hello, > >> > >> my main goal was, to get the documentation as pdf. > >> > >> So I tried the target "doc" with "make doc", to see what happens. > >> > >> The process failed with a message, that "lablgtk" is unknown. > >> I tried with "-enable-gtk2" (after using a fresh source dir to be sure > >> about this problem). > >> > >> But "lablgtk" is used anyway for the "make doc" and the stuff fails again. > >> > >> > >> > >> Here is the output from "make doc": > >> > >> > >> ================================================================================================= > >> ocamlnet-4.0.4> make doc > >> for pkg in src/*/.; do \ > >> test ! -f $pkg/Makefile -o -f $pkg/doc-ignore || \ > >> { ( cd $pkg && make -f Makefile.pre generate ) || exit; \ > >> ( cd $pkg && make -f Makefile.pre depend ) || exit; \ > >> ( cd $pkg && make ocamldoc.dump ) || exit; \ > >> }; \ > >> done > >> make[1]: Entering directory > >> '/home/oliver/AUR4/ocamlnet/src/ocamlnet-4.0.4/src/equeue-gtk1' > >> make[2]: Entering directory > >> '/home/oliver/AUR4/ocamlnet/src/ocamlnet-4.0.4/src/equeue-gtk1' > >> sed -e 's/@VERSION@/4.0.4/' \ > >> -e 's/@AUTHDHREQS@//' \ > >> -e 's/@PREFERRED_CGI_PKG@//' \ > >> -e 's/@REGEXP_PROVIDER@/str/' \ > >> -e 's/@COMPAT_PCRE_PROVIDER@//' \ > >> -e 's/@ZIP_PROVIDER@//' \ > >> META.in >META > >> make[2]: Leaving directory > >> '/home/oliver/AUR4/ocamlnet/src/ocamlnet-4.0.4/src/equeue-gtk1' > >> make[1]: Leaving directory > >> '/home/oliver/AUR4/ocamlnet/src/ocamlnet-4.0.4/src/equeue-gtk1' > >> make[1]: Entering directory > >> '/home/oliver/AUR4/ocamlnet/src/ocamlnet-4.0.4/src/equeue-gtk1' > >> make[1]: Leaving directory > >> '/home/oliver/AUR4/ocamlnet/src/ocamlnet-4.0.4/src/equeue-gtk1' > >> make[1]: Entering directory > >> '/home/oliver/AUR4/ocamlnet/src/ocamlnet-4.0.4/src/equeue-gtk1' > >> ocamlfind ocamlc -g -I ../../src/equeue -I ../../src/netsys -package > >> "unix lablgtk" -pp "../../tools/cppo-0.9.4/cppo -D GTK1" -w -3-25 -c > >> uq_gtk_helper.ml > >> ocamlfind: Package `lablgtk' not found > >> ../../Makefile.rules:117: recipe for target 'uq_gtk_helper.cmo' failed > >> make[1]: *** [uq_gtk_helper.cmo] Error 2 > >> make[1]: Leaving directory > >> '/home/oliver/AUR4/ocamlnet/src/ocamlnet-4.0.4/src/equeue-gtk1' > >> Makefile:40: recipe for target 'doc' failed > >> make: *** [doc] Error 2 > >> ocamlnet-4.0.4> > >> ================================================================================================= > >> > >> Any ideas on that? > >> > >> Ciao, > >> Oliver > >> > >> > >> ------------------------------------------------------------------------------ > >> _______________________________________________ > >> Ocamlnet-devel mailing list > >> Oca...@li... > >> https://lists.sourceforge.net/lists/listinfo/ocamlnet-devel > > > > -- > > ------------------------------------------------------------ > > Gerd Stolpmann, Darmstadt, Germany ge...@ge... > > My OCaml site: http://www.camlcity.org > > Contact details: http://www.camlcity.org/contact.html > > Company homepage: http://www.gerd-stolpmann.de > > ------------------------------------------------------------ > > > -- ------------------------------------------------------------ Gerd Stolpmann, Darmstadt, Germany ge...@ge... My OCaml site: http://www.camlcity.org Contact details: http://www.camlcity.org/contact.html Company homepage: http://www.gerd-stolpmann.de ------------------------------------------------------------ |