[Kde-games-devel] crash in knights, dokumentation for libkdegames, etc.

Albert Astals Cid aacid at kde.org
Sun Mar 20 21:41:26 UTC 2016


El dijous, 10 de març de 2016, a les 23:19:37 CET, Alexander Semke va escriure:
> I'm looking at https://bugs.kde.org/show_bug.cgi?id=319298
> 
> I can reproduce this crash and I also see another crash with a different
> call stack (segfault in KgTheme). I have no debug symbols installed for
> libkdegames, so I cannot debug the last couple of frames.

Tried to reproduce, works just fine here.

You're trying the kf5 build, right?

Do you have a valgrind trace or something?

BTW, the current master doesn't build
https://build.kde.org/job/knights%20master%20kf5-qt5/PLATFORM=Linux,compiler=gcc/24/console


BTW2, you have a valgrind warning just starting up

==26734== Conditional jump or move depends on uninitialised value(s)
==26734==    at 0x4C38B1: Knights::Board::mapToScene(Knights::Pos) (board.cpp:327)
==26734==    by 0x4C3B53: Knights::Board::centerAndResize(Knights::Item*, QSize, bool) (board.cpp:345)
==26734==    by 0x4C545A: Knights::Board::updateGraphics() (board.cpp:522)
==26734==    by 0x4C499C: Knights::Board::updateTheme() (board.cpp:462)
==26734==    by 0x4C1677: Knights::Board::Board(KgThemeProvider*, QObject*) (board.cpp:83)
==26734==    by 0x4CA29D: Knights::KnightsView::drawBoard(KgThemeProvider*) (knightsview.cpp:70)
==26734==    by 0x4D0064: Knights::MainWindow::MainWindow() (knights.cpp:101)
==26734==    by 0x4DB8CA: main (main.cpp:74)

> 
> How do you do this? How is the dev-environment usually setup so that the
> libraries you're developing on do not interfere with the "standard" kf5
> libraries of your distributions? I saw an article on techbase long time ago
> on this but cannot find it anymore. Can somebody please point me into the
> right direction?

Just install into a prefix you want and set LD_LIBRARY_PATH to point there, 
these are some of the exports i have for using that prefix instead of the regular one, at this point i'm not sure all of thema
are needed, but they don't seem to hurt much

export KDEDIR=MY_INSTALL_PREFIX
export KDEDIRS=MY_INSTALL_PREFIX
export PATH=MY_INSTALL_PREFIX/bin:$PATH
export LD_LIBRARY_PATH=MY_INSTALL_PREFIX/lib:MY_INSTALL_PREFIX/lib/x86_64-linux-gnu/
export PKG_CONFIG_PATH=MY_INSTALL_PREFIX/lib/pkgconfig
export XDG_DATA_DIRS=MY_INSTALL_PREFIX/share:/usr/share
export QT_PLUGIN_PATH=MY_INSTALL_PREFIX/lib/kde4/plugins:MY_INSTALL_PREFIX/lib/x86_64-linux-gnu/plugins
export STRIGI_PLUGIN_PATH=MY_INSTALL_PREFIX/lib/strigi
alias cmake="cmake -DCMAKE_INSTALL_PREFIX=MY_INSTALL_PREFIX -DCMAKE_BUILD_TYPE=debug"

https://quickgit.kde.org/?p=scratch%2Fapol%2Fprefixsetup.git is supposed to have something like this but at this point i can't get quickgit
to work for me so i can't check

Cheers,
  Albert

> 
> Also, where is the documentation for kde games lib located? Searching on
> http://api.kde.org for KgTheme or KGameRendererClient give me only links for
> the kdegames4 module.
> 
> 
> https://techbase.kde.org/Projects/Games  is this everything that is
> available about kde games in general or is there more documentation
> somewhere else?




More information about the kde-games-devel mailing list