Giter Site home page Giter Site logo

proj4ml's Introduction

proj4ml - OCaml bindings to the PROJ.4 library

PROJ.4 is a library that converts between geographic coordinate systems. The API currently closely follows the C API.

PROJ.4 and these OCaml bindings are distributed under the MIT license.

proj4ml's People

Contributors

hcarty avatar igarnier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

proj4ml's Issues

opam build problem on MacOS / Xcode

On MacOS with Xcode 10.2 and apparently the gcc extension for labelling struct fields is generating a warning/error.

% opam install proj4
The following actions will be performed:

  • install proj4 0.9.2

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[proj4.0.9.2] found in cache

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] The compilation of proj4 failed at "/Users/mhayden/.opam/opam-init/hooks/sandbox.sh build ocaml setup.ml -build".

#=== ERROR while compiling proj4.0.9.2 ========================================#

context 2.0.3 | macos/x86_64 | ocaml-variants.4.07.1+macos10.11+flambda+no-flat-float-array | https://opam.ocaml.org/#c261c4ee

path ~/.opam/macos.dev/.opam-switch/build/proj4.0.9.2

command ~/.opam/opam-init/hooks/sandbox.sh build ocaml setup.ml -build

exit-code 1

env-file ~/.opam/log/proj4-31773-05296d.env

output-file ~/.opam/log/proj4-31773-05296d.out

output

src/proj4_stubs.c:42:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]

[...]

src/proj4_stubs.c:43:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]

serialize: custom_serialize_default,

^~~~~~~~~~

.serialize =

src/proj4_stubs.c:44:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]

deserialize: custom_deserialize_default

^~~~~~~~~~~~

.deserialize =

6 warnings and 1 error generated.

Command exited with code 2.

E: Failure("Command ''/Users/mhayden/.opam/macos.dev/bin/ocamlbuild' src/libproj4_stubs.a src/dllproj4_stubs.so src/proj4.cma src/proj4.cmxa src/proj4.a src/proj4.cmxs -tag debug' terminated with error code 10")

<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build proj4 0.9.2
+-

  • No changes have been performed

Run eval opam env to update the current shell environment

ocaml 4.06.0+beta2

The setup.ml build script seems to not be updated for the new default safe strings.

best, Mark

=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ð
[proj4] Archive in cache

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ð
[ERROR] The compilation of proj4 failed at "ocaml setup.ml -configure --prefix /Users/mhayden/.opam/macos.dev".
Processing 1/1: [proj4: ocamlfind remove]
#=== ERROR while installing proj4.0.9.1 =======================================#

opam-version 1.2.2

os darwin

command ocaml setup.ml -configure --prefix /Users/mhayden/.opam/macos.dev

path /Users/mhayden/.opam/macos.dev/build/proj4.0.9.1

compiler 4.06.0+beta2+flambda

exit-code 2

env-file /Users/mhayden/.opam/macos.dev/build/proj4.0.9.1/proj4-16733-1872ec.env

stdout-file /Users/mhayden/.opam/macos.dev/build/proj4.0.9.1/proj4-16733-1872ec.out

stderr-file /Users/mhayden/.opam/macos.dev/build/proj4.0.9.1/proj4-16733-1872ec.err

stderr

File "./setup.ml", line 234, characters 8-26:

Warning 3: deprecated: String.set

Use Bytes.set instead.

File "./setup.ml", line 234, characters 8-11:

Error: This expression has type string but an expression was expected of type

bytes

=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ð
The following actions failed
â install proj4 0.9.1
No changes have been performed

=-=- proj4.0.9.1 troobleshooting =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= ð
=> This package relies on external (system) dependencies that may be missing. `opam depext proj4.0.9.1' may help you find the correct
installation for your system.

opam build problem on MacOS / Xcode

Issue #5 (closed) of the same name has been fixed and incorporated into github repository, but is not yet released in opam. I posted a note sometime back on the closed issue. Could you please release the changes on opam?

thanks!

`The following actions will be performed:

  • install proj4 0.9.2

<><> Gathering sources ><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[proj4.0.9.2] found in cache

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
[ERROR] The compilation of proj4 failed at
"/Users/mhayden/.opam/opam-init/hooks/sandbox.sh build ocaml setup.ml
-build".

#=== ERROR while compiling proj4.0.9.2 ========================================#

context 2.0.5 | macos/x86_64 | ocaml-variants.4.08.0+flambda+no-flat-float-array | https://opam.ocaml.org/#513397db

path ~/.opam/macos.dev2/.opam-switch/build/proj4.0.9.2

command ~/.opam/opam-init/hooks/sandbox.sh build ocaml setup.ml -build

exit-code 1

env-file ~/.opam/log/proj4-52462-05296d.env

output-file ~/.opam/log/proj4-52462-05296d.out

output

src/proj4_stubs.c:42:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]

[...]

src/proj4_stubs.c:43:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]

serialize: custom_serialize_default,

^~~~~~~~~~

.serialize =

src/proj4_stubs.c:44:5: warning: use of GNU old-style field designator extension [-Wgnu-designator]

deserialize: custom_deserialize_default

^~~~~~~~~~~~

.deserialize =

6 warnings and 1 error generated.

Command exited with code 2.

E: Failure("Command ''/Users/mhayden/.opam/macos.dev2/bin/ocamlbuild' src/libproj4_stubs.a src/dllproj4_stubs.so src/proj4.cma src/proj4.cmxa src/proj4.a src/proj4.cmxs -tag debug' terminated with error code 10")

<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
+- The following actions failed
| - build proj4 0.9.2
+-

  • No changes have been performed
    sakhalin% `

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.