Page MenuHomeVyOS Platform

Instructions to build libvyosconfig multiplatform
Not ApplicablePublicFEATURE REQUEST

Description

The README of libvyosconfig should contain instructions to build libvyosconfig for other platforms. Then the Python library configtree.py can be used on Windows, to serve applications that generates VyOS-configuration.

It would be great if the Docker-environment (from vyos-build) also builds libvyosconfig cross platform. Maybe using opam-cross-windows. The current build script only targets Debian.
https://github.com/vyos/vyos-build/blob/current/scripts/build-submodules

I don't now if this is even possible, as I don't have any experience with OCaml.

My question at the forum "Build libvyosconfig for Windows?":
https://forum.vyos.io/t/build-libvyosconfig-for-windows/3564

Details

Version
-

Event Timeline

syncer triaged this task as Wishlist priority.
syncer edited projects, added VyOS 1.3 Equuleus; removed VyOS 1.2 Crux.

This hasn't been possible because it links to vyconf, which makes a UNIX cultural assumption. However, I'm moving the tree handling modules and the parsers into a reusable library that can be used by both vyconf and libvyosconfig, and custom applications as well. Then it should be possible.

I've also tested creating executables for Windows through opam-cross-windows and it works well, haven't tried shared libraries yet though.

dmbaturin subscribed.
syncer closed this task as Not Applicable.Oct 28 2024, 6:25 AM
syncer removed a project: VyOS 1.3 Equuleus (1.3.8).