How to fix the Unbound module Graphics in an ocaml project

Image
From ~/pr/gitl/ocaml-gol In a constant effort to learn new programming languages, I'm currently trying to use ocaml , a free and open-source general-purpose, multi-paradigm programming language maintained at the Inria . It's basically an extension of Caml with object-oriented features. I'm mostly interested by its functionnal and pattern matching features but the module part of the language can be a bit difficult to understand for someone with little to none ML (Meta Language) background.   The error When trying to use the graphics module to create a graphical window and go just a little further than the simplest helloworld program, here is the result : If the project uses dune : (executable (name ocaml_project) (libraries lwt.unix graphics) ) with this code : let () = Printf.printf "Hello, world!\n";; Lwt_io.printf "Hello, world!\n";; Graphics.open_graph " 800x600";; The first times I built this project running the du...

Introducing elecrud, a C++/electron based multi-user CRUD operator generator

Well, this name is a bit weird but the project's still cool and since it's a new project, here it is : elecrud is a C++ fox-toolkit-based multi-user CRUD operator electron application generator.

A cropped screenshot of the elecrud editor


The goal is to create a lightweight yet portable graphical application used to edit and generate an electron application used to feed and edit a persistant set (i.e. a database) via standardized CRUD operations.

Presentation

This project is mainly a way to keep learning fox-toolkit, a very lightweight, open source and cross-platform widget toolkit libray licensed under LGPL. The main advantage of this toolkit, apart being lightweight is to have the same lookn-n-feel on all plateforms.

While the first steps of the project seems pretty straightforward (mainwindow and menu stuff), project serialization thing, the electron application squeleton and generation may fastly become challenging.

The application is available under GPL v3 or later and hosted at github : https://github.com/jepasq/elecrud.

Project structure

Since the project is written in C++, it needs a project builder. I only use cmake for that since I replaced autotools-powered project with it.

The project will also use reswrap tool to handle graphical resources like icons (here is its man page). This tool is used to generate a C/C++ header containing an initialized data array that represents an image, a text or any other binary resource.

Comments

Popular posts from this blog

How to make a map of variant in C++