OCaml Forge

Detail: [#1179] update build system using new version of ocaml-autoconf, for cross-compilation

Patches: Browse | Download .csv | Monitor

[#1179] update build system using new version of ocaml-autoconf, for cross-compilation

Date:
2012-06-27 15:34
Priority:
3
State:
Closed
Submitted by:
William R (william)
Assigned to:
Christophe Troestler (chris)
Resolution:
Rejected
Version:
None
Component:
None
 
Summary:
update build system using new version of ocaml-autoconf, for cross-compilation

Detailed description
Hello,

As I needed to port my app that uses cairo-ocaml to windows, I integrated it in the MXE framework (set of patches and make commands to cross-compile hundreds of packages). So now I am able to cross-compile it from linux to windows, and I would like to submit the patch now in case future versions of ocaml-cairo are provided.

- add META file : it is used by ocamlfind (findlib). Providing the file upstream is important, otherwise people with godi, debian, cygwin all make their own file, with different options, making it impossible to port a makefile from a platform to an other.
- update ocaml.m4 with last version of ocaml-autoconf (that allows for cross-compilation)
- update configure.ac to use the updated ocaml.m4 file.


With this, it is now "easy" to cross-compile cairo-ocaml.

To apply the patch :
cd cairo-ocaml-1.2.0
patch -p1 < /path/to/ocaml-cairo-1-fixes.patch

Best regards,
William

Followup

Message
Date: 2013-06-16 15:49
Sender: William R

hello, sorry, I am using "cairo-ocaml", which is a different project, and not yours.

Adapting a project for cross-compilation with MXE depends on build system and dependencies. I know a bit with autoconf (and ocaml-autoconf) and ocamlbuild, but not oasis.

Best regards
Date: 2013-06-15 11:40
Sender: Christophe Troestler

I will certainly be glad to have this project to work with MXE (which I do not know). Please add a note to this but report if some patches are required (as I use oasis, you may also want to check https://github.com/ocaml/oasis and http://oasis.forge.ocamlcore.org/).
Date: 2012-06-27 15:39
Sender: William R

well, it seems that my patch request does not apply to your project, sorry. That was targeting cairo-ocaml, not yours ;-)

Attached Files:

Attachments:
ocaml-cairo-1-fixes.patch

Changes:

Field Old Value Date By
status_idOpen2013-06-16 16:13chris
close_dateNone2013-06-16 16:13chris
ResolutionAwaiting Response2013-06-16 16:13chris
ResolutionNone2013-06-15 11:40chris
assigned_tonone2013-06-15 11:40chris
File Added183: ocaml-cairo-1-fixes.patch2012-06-27 15:34william