<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:等线;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"\@等线";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:等线;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-family:等线">Hi Torsten,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">Thank you for the quick help!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">You are right, I am building and debug marble on Ubuntu 22.04.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">I do as your recommended, and added the built library paths:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">build/src/lib/marble<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">build/src/lib/astro<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">into /etc/ld.so.conf.d/local.conf<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">Now I do can run ./marble from build folder.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">However, it shows a blank Marble window as attached screenshot, also below displayed in Terminal window:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">--------<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">$ ./marble-qt<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">Map theme file does not exist: ""<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">No plugins loaded. Please check if the plugins were installed in the correct path, or if any errors occurred while loading plugins.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">Falling back to default theme: "earth/srtm/srtm.dgml"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">Map theme file does not exist: ""<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">Couldn't find a valid DGML map.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">[5816:7:0320/003352.567904:ERROR:command_buffer_proxy_impl.cc(141)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">[5805:7:0320/003352.569258:ERROR:command_buffer_proxy_impl.cc(141)] ContextResult::kTransientFailure: Failed to send GpuChannelMsg_CreateCommandBuffer.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">--------<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">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?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线">Thanks in advance!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:等线"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Torsten Rahn <tackat@t-online.de> <br>
<b>Sent:</b> Sunday, March 19, 2023 11:33 PM<br>
<b>To:</b> ?? WANG Cui <iucgnaw@msn.com>; Mailinglist, Marble-Devel <marble-devel@kde.org><br>
<b>Subject:</b> AW: How to debug marble-qt in build folder without sudo make install<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p style="margin:0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Hello,</span><o:p></o:p></p>
<p style="margin:0in"> <o:p></o:p></p>
<p style="margin:0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">thanks for looking into the adventure of compiling marble-qt (which should be relatively easy compared to other software).</span><o:p></o:p></p>
<p style="margin:0in"> <o:p></o:p></p>
<p style="margin:0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">Your problem sounds like a typical one that frequently happens to people compiling on Ubuntu/Debian.</span><o:p></o:p></p>
<p style="margin:0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">As a possible quick fix you might want to start marble-qt on the terminal/shell via:</span><o:p></o:p></p>
<p style="margin:0in"> <o:p></o:p></p>
<p style="margin:0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">LD_LIBRARY_PATH=/usr/local/lib marble-qt</span><o:p></o:p></p>
<p style="margin:0in"> <o:p></o:p></p>
<p style="margin:0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">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):</span><o:p></o:p></p>
<p style="margin:0in"> <o:p></o:p></p>
<p style="margin:0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"><a href="https://stackoverflow.com/questions/69061258/permanent-fix-for-export-ld-library-path-usr-local-libld-library-path">https://stackoverflow.com/questions/69061258/permanent-fix-for-export-ld-library-path-usr-local-libld-library-path</a></span><o:p></o:p></p>
<p style="margin:0in"> <o:p></o:p></p>
<p style="margin:0in">Hope this helps :-)<o:p></o:p></p>
<p style="margin:0in"> <o:p></o:p></p>
<p style="margin:0in">BR<o:p></o:p></p>
<p style="margin:0in">Torsten<o:p></o:p></p>
<p style="margin:0in"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black"> </span><o:p></o:p></p>
<p style="margin:0in"> <o:p></o:p></p>
<p style="margin:0in"> <o:p></o:p></p>
<p style="margin:0in">-----Original-Nachricht-----<o:p></o:p></p>
<p style="margin:0in">Betreff: How to debug marble-qt in build folder without sudo make install<o:p></o:p></p>
<p style="margin:0in">Datum: 2023-03-19T15:54:22+0100<o:p></o:p></p>
<p style="margin:0in">Von: "?? WANG Cui" <<a href="mailto:iucgnaw@msn.com">iucgnaw@msn.com</a>><o:p></o:p></p>
<p style="margin:0in">An: "<a href="mailto:marble-devel-owner@kde.org">marble-devel-owner@kde.org</a>" <<a href="mailto:marble-devel-owner@kde.org">marble-devel-owner@kde.org</a>><o:p></o:p></p>
<p style="margin:0in"> <o:p></o:p></p>
<p style="margin:0in"> <o:p></o:p></p>
<p style="margin:0in"> <o:p></o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">Hi,<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">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</span><span lang="ZH-CN" style="font-size:9.0pt;font-family:等线;color:black">’</span><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">t find library in system folder.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">Right now I have to run sudo make install all these files, then debug it.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">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?<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black">Thanks in advance.<o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:black"> <o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p></o:p></p>
</div>
</body>
</html>