Quantcast
Channel: OCaml - Topics tagged dune
Browsing all 517 articles
Browse latest View live

Linking several *.so libraries produced by dune

Dune makes it very easy to build shared objects (*.so) so that OCaml libraries can be used from C. You can see a minimal example here. To give you an overview of this example, here is the dune file...

View Article


Dune do not build bytecode

Hey all, I am trying to compile a file with the intention of dynamically loading it as a plugin later. As I don’t intent to use the bytecode version I am only interested in its native version,...

View Article


Limiting tests executed during package build when generating opam files with...

Is there a way to limit which tests get executed by default by dune? Especially in case when generating opam files. Basically my use case is that, in letters, I have some tests that I would like to...

View Article

Set c_library_flags in env

There appears to be no way to set c_library_flags in an env stanza. I’m trying to add -L/usr/local/lib for linker execution in all subdirectories. Is there a good way to do this at the top level and...

View Article

Cram - Tests on Short Notice

Does it seem like writing unit tests is endlessly boring and time consuming? Does your test suite require constant attention and tweaking, and yet the stream of bugs never seems to end? I feel the...

View Article


[ANN] Dune 2.7.0

On behalf of the dune team, I’m pleased to announce the release of dune 2.7.0. This release adds a couple of important features and many bug fixes. I’ll just briefly summarize the two features, and...

View Article

Image may be NSFW.
Clik here to view.

Dune question: loading plugins, requried for PPX rewriters

I have a problem with ppx rewriters. In there repo you can find lib/libmain which is a library with logic of rewriter lib/libplugin which is a dynamically loadable plugin for lib/libmain lib/ppxmain...

View Article

Running dune through Emacs minor mode - can't find opam libraries

Hi there. I’m pretty new to OCaml (on macOS). Currently getting into the ecosystem with development workflow. Got a project setup properly now using dune. Now since I’m a TDD’ler I’d like to run a...

View Article


Image may be NSFW.
Clik here to view.

Ocamlunit emacs minor-mode

Hi. Here is a first version of this plugin that allows running dune test with an Emacs key stroke. It shows the test result in a separate buffer and a simple colorized status ‘message’. GitHub...

View Article


Error: Don't know how to build

Hi folks, When i try compile my scanner.ml with the command: $ dune build scanner.exe i receive the following message in my terminal: Error: Don’t know how to build scanner.exe Done: 0/0 (jobs: 0) I’m...

View Article

[ANN] Dune 1.10.0

On behalf of the dune team, I’m pleased to announce the 1.10.0 release of dune. This release is packed with bug fixes, but it also introduces a few interesting features. I’ll highlight one important...

View Article

Moving to Dune 2.0 for C stubs

I have a project with C stubs that requires an extended list of C headers and links against a list of libraries. This worked so far with the following Dune file: (library (name lpe) (c_names...

View Article

Image may be NSFW.
Clik here to view.

Using Dune to work on multiple projects simultaneously

I did some work on two related libraries in the last few days which weren’t using Dune, so was using opam pin extensively. Having added the features I wanted, and made pull requests, I then converted...

View Article


Using output of `ocamlfind -only-show` in a dune build

Can it be done? Context: I’m trying to build LinearML using dune and one remaining stumbling block is this. The compiler limlc build, but when when compiling LinearML stdlib it fails with the...

View Article

[ANN] Easy cross compilation using esy

Hello, I’ve been working on this for a couple of months now, and now it is ready for an initial announcement of my tools to cross compiling OCaml and ReasonML Native....

View Article


Why does `dune build @runtest` accept `let () = 1`?

Hi, Am I running dune incorrectly somehow so that it finds nothing to do even when I have an obvious type error in my code? Here’s my dune call and its output: accessor/test [master●] » dune build -w...

View Article

Image may be NSFW.
Clik here to view.

[ANN] opam-bin.1.0.0: binary packages for opam

Hi, I am happy to announce the first stable release of opam-bin, version 1.0.0, a framework to CREATE, USE and SHARE binary relocatable packages with opam, to speed-up installation of packages. It is...

View Article


Dune.build doesn't have installation instructions

Hi, I’m not sure if this is the best place to put this. While dune.build front page is fairly nifty and compact and has all the key information that a person new to dune needs, including a little...

View Article

Writing a wrapper stub to something dynamic, where static linking would...

What I have: dune opam opencv (headers in /usr/include, and shared objects) a cxx stub main project in ocaml What I want: to build the project with dune The problem: I can’t seem to find in dune docs...

View Article

Dune, dynlink, and undefined symbol

Hello. I have this interface for plugins to register plugins in my program: let ht : (string, (string * (_ -> _ -> bool))) Hashtbl.t = Hashtbl.create 0 let assets = ref "" let register ~ns m fn...

View Article
Browsing all 517 articles
Browse latest View live