[odb-users] How to execute odb-compiler without installing build2

Boris Kolpackov boris at codesynthesis.com
Mon Oct 7 06:49:55 EDT 2024


DEMBROGE Michael <michael.dembroge at leica-geosystems.com> writes:

> Is it possible to build the ODB compiler and libraries and publish them
> somewhere so that others can just use them without having to install
> the entire build2 infrastructure?

You can do that though it will require some effort to separate MinGW
GCC from the rest of build2. We are planning to provide such a .zip
file (i.e., ODB + MinGW GCC) once the ODB 2.5.0 final is released
(hopefully in a month or two).

So I would suggest that in the meantime you install ODB into the
build2 installation directory, zip everything up, and distribute
that. And once 2.5.0 is released, you can switch to the minimal
archive.


> The issue we are having is that after I build ODB and publish
> to a central location (shared disk), it is failing on other's
> computers because they don't have the g++ compiler installed.

Right, is Gilles mentioned in another reply, ODB is implemented
as a GCC plugin (it uses GCC to parse C++). The only way around
this is to distribute pre-generate *-odb.?xx files, as Tony has
suggested.



More information about the odb-users mailing list