The relevant part of the Makefile:

ifeq ($(shell uname -s), Darwin)
  export BIN_PROT_CPP = cc -E -no-cpp-precomp -x c
else
  export BIN_PROT_CPP = cpp
endif

and at the top of the source, used make OCamlMakefile:
(*pp $BIN_PROT_CPP $ARCH_FLAGS *)

I've never tried to get bin-prot to compile on windows, I'm image you'll
have to get the tarball of the source and hack around for a bit.


On Sat, Aug 1, 2009 at 7:22 AM, Jerome Benoit
<[email protected]>wrote:

> Hi,
>
> I'm having hard time to compile bin-prot with the mingw32 compiler
> shipped in cygwin :
>
> => Checksum OK for bin-prot-1.2.18.tar.gz.
> ===> Extracting for godi-bin-prot-1.2.18godi1
> /bin/mkdir -p
> /home/fraggle/godi/build/godi/godi-bin-prot/work/bin-prot-1.2.18
> ===> Patching for godi-bin-prot-1.2.18godi1
> ===> Configuring for godi-bin-prot-1.2.18godi1
> ===> Building for godi-bin-prot-1.2.18godi1
> make[7]: Entering directory
> `/home/fraggle/godi/build/godi/godi-bin-prot/work/bin-prot-1.2.18'
> make[8]: Entering directory
> `/home/fraggle/godi/build/godi/godi-bin-prot/work/bin-prot-1.2.18/lib'
> make[9]: Entering directory
> `/home/fraggle/godi/build/godi/godi-bin-prot/work/bin-prot-1.2.18/lib'
> ocamlfind ocamldep utils.mli > ._bcdi/utils.di
> ocamlfind ocamldep -pp "$BIN_PROT_CPP $ARCH_FLAGS " type_class.mli >
> ._bcdi/type_class.di
> '$BIN_PROT_CPP' n'est pas reconnu en tant que commande interne
> ou externe, un programme ex<82>cutable ou un fichier de commandes.
> Preprocessing error on file type_class.mli
>
> The environment variable BIN_PROT_CCP seems empty ... Where is it
> defined in GODI bin-prot package for mingw installation
> (needless to say that mingw ccp.exe is in the path) ?
>
> Thks.
>
> --
> Jérôme Benoit aka fraggle
> La Météo du Net - http://grenouille.com
> OpenPGP Key ID : 9FE9161D
> Key fingerprint : 9CA4 0249 AF57 A35B 34B3 AC15 FAA0 CB50 9FE9 161D
>
> _______________________________________________
> Godi-list mailing list
> [email protected]
> https://godirepo.camlcity.org/mailman/listinfo/godi-list
>



-- 
Ralph
_______________________________________________
Godi-list mailing list
[email protected]
https://godirepo.camlcity.org/mailman/listinfo/godi-list

Reply via email to