Skip to content

c++ working standalone example #209

@gftabor

Description

@gftabor

Is your feature request related to a problem? Please describe.
Trying to link against this project in C++ (to use the optimizer) doesn't seem well supported.

Here you discuss how to build from source and add the built packages as a python library, and nothing about make installing it as a C++ library.

Then in the examples cmake you assume the examples are being compiled alongside the library and all the environment variables are already known to cmake. https://github.com/symforce-org/symforce/blob/main/symforce/examples/CMakeLists.txt#L15

Describe the solution you'd like
A recommended way to install the project after building from source. (presumably sudo make install) This should provide FindSymForce.cmake etc for each separate module that might be needed by cmake.
Seems like it would be

  • symforce_gen
  • symforce_opt

Here you talk about splitting the c++ examples into separate cmakes, which would be nice but more importantly a standalone example (maybe its own repo) of compiling an example from source using an installed symforce. (Using standard find_package(symforce REQUIRED) in cmakelists)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions