Skip to content

Cannot compile with BUILD_GUI=OFF option #35

@Kiko-RWan

Description

@Kiko-RWan

Hello author!

According to the include in main.cc

#include "../libGUI3D/libGUI3D/GUI3D.h"
the program will eventually call imgui.h. However, imgui.h is only used when linking libGraphSLAMGUI according to makefile.txt, so BUILD_GUI=ON option must be enabled. Otherwise it leads to the related issue lossing imgui.h #29 #26 #12.

If I simply compile and link by adding BUILD_GUI=ON, even if I call ./exe_GraphSLAM, it will render in main.cc based on conditional compilation.

Since I don't have a graphical interface (unable to use X11 forwarding), I want to compile a version with BUILD_GUI=OFF. I am new to C++ programming and used a simple method that I could think of. I try modifying the main.cc code(delete parts involving conditional compilation related to GUI in main.cc to prevent GUI rendering), then camke -BUILD_GUI=ON .. . It runs but reports a core dump. Below are my modifications and results.

Image

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions