Skip to content

Linux compilation #23

@NicolasIriarte

Description

@NicolasIriarte

Hi hello! Maybe I'm missing something but the current source code doesn't copile: It throw:

/home/user/Gits/chigraph-gui/src/mainwindow.cpp:265:41: error: ‘textTriggered’ is not a member of ‘KSelectAction’
  265 |                         &KSelectAction::textTriggered, this,
      |                                         ^~~~~~~~~~~~~
/home/user/Gits/chigraph-gui/src/mainwindow.cpp: In member function ‘virtual void MainWindow::closeEvent(QCloseEvent*)’:
/home/user/Gits/chigraph-gui/src/mainwindow.cpp:391:40: error: ‘questionTwoActionsCancel’ is not a member of ‘KMessageBox’
  391 |                 auto bc = KMessageBox::questionTwoActionsCancel(
      |                                        ^~~~~~~~~~~~~~~~~~~~~~~~
/home/user/Gits/chigraph-gui/src/mainwindow.cpp:398:35: error: ‘PrimaryAction’ is not a member of ‘KMessageBox’
  398 |                 case KMessageBox::PrimaryAction:
      |                                   ^~~~~~~~~~~~~
/home/user/Gits/chigraph-gui/src/mainwindow.cpp:402:35: error: ‘SecondaryAction’ is not a member of ‘KMessageBox’
  402 |                 case KMessageBox::SecondaryAction:
      |                                   ^~~~~~~~~~~~~~~
make[2]: *** [src/CMakeFiles/chigraphgui.dir/build.make:115: src/CMakeFiles/chigraphgui.dir/mainwindow.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:935: src/CMakeFiles/chigraphgui.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

That error I could fix it but there are another one on thememanager.cpp (I disable the theme manager on my build).

Once installed the user interface works, but it is extremely buggy, throwing segmentation faults on simple actions.

I have some questions:

  • It is always this buggy? (I know it is on active development and I'm not expecting a full working application, but this point is unusable)
  • Clearly the linux build doesn't even compile, the given kf5 version doesn't have the method KSelectAction::textTriggered -> I'm missing something here?

On any case, I can make a PR fixing that compile error.

Thanks for this amazing project!

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