How to debug marble-qt in build folder without sudo make install
王璀 WANG Cui
iucgnaw at msn.com
Sun Mar 19 16:46:04 GMT 2023
Hi Torsten,
Thank you for the quick help!
You are right, I am building and debug marble on Ubuntu 22.04.
I do as your recommended, and added the built library paths:
build/src/lib/marble
build/src/lib/astro
into /etc/ld.so.conf.d/local.conf
Now I do can run ./marble from build folder.
However, it shows a blank Marble window as attached screenshot, also below displayed in Terminal window:
--------
$ ./marble-qt
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Map theme file does not exist: ""
No plugins loaded. Please check if the plugins were installed in the correct path, or if any errors occurred while loading plugins.
Falling back to default theme: "earth/srtm/srtm.dgml"
Map theme file does not exist: ""
Couldn't find a valid DGML map.
[5816:7:0320/003352.567904:ERROR:command_buffer_proxy_impl.cc(141)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.
[5805:7:0320/003352.569258:ERROR:command_buffer_proxy_impl.cc(141)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.
--------
I guess it is because marble can’t find data/plugin path (which suppose to be installed by sudo make install)? Is there way to let marble also know to get such data/plugin from build folder?
Thanks in advance!
From: Torsten Rahn <tackat at t-online.de>
Sent: Sunday, March 19, 2023 11:33 PM
To: ?? WANG Cui <iucgnaw at msn.com>; Mailinglist, Marble-Devel <marble-devel at kde.org>
Subject: AW: How to debug marble-qt in build folder without sudo make install
Hello,
thanks for looking into the adventure of compiling marble-qt (which should be relatively easy compared to other software).
Your problem sounds like a typical one that frequently happens to people compiling on Ubuntu/Debian.
As a possible quick fix you might want to start marble-qt on the terminal/shell via:
LD_LIBRARY_PATH=/usr/local/lib marble-qt
In case this works you might want to follow up on this stackoverflow question (the common place where coders borrowed their knowledge/codesamples from before chatgpt arrived):
https://stackoverflow.com/questions/69061258/permanent-fix-for-export-ld-library-path-usr-local-libld-library-path
Hope this helps :-)
BR
Torsten
-----Original-Nachricht-----
Betreff: How to debug marble-qt in build folder without sudo make install
Datum: 2023-03-19T15:54:22+0100
Von: "?? WANG Cui" <iucgnaw at msn.com<mailto:iucgnaw at msn.com>>
An: "marble-devel-owner at kde.org<mailto:marble-devel-owner at kde.org>" <marble-devel-owner at kde.org<mailto:marble-devel-owner at kde.org>>
Hi,
As I want to debug marble-qt and library, but after finish build, by default can run marble-qt in build folder as it won’t find library in system folder.
Right now I have to run sudo make install all these files, then debug it.
I just wonder is there a way to run marble-qt and let it find library and data in the marble/build folder, without have to install them after rebuild?
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20230319/d62fc10c/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: screenshot.png
Type: image/png
Size: 32864 bytes
Desc: screenshot.png
URL: <http://mail.kde.org/pipermail/marble-devel/attachments/20230319/d62fc10c/attachment-0001.png>
More information about the Marble-devel
mailing list