<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 28 Jun 2020 at 22:32, René J.V. Bertin <<a href="mailto:rjvbertin@gmail.com">rjvbertin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sunday June 28 2020 20:25:26 Steve the Fiddle wrote:<br>
<br>
>wxWidgets is installed at "/opt/wxWidgets/lib/", and this is set in<br>
>"~/.bashrc" with:<br>
>"export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/wxWidgets/lib/"<br>
<br>
A more proper way to work with this kind of install would be to add /opt/wxWidgets/lib to Audacity's rpath. Or, if any and all wxWidgets apps should use the libraries there you could add the location to ldconfig.<br></blockquote><div><br></div><div>The version of wxWidgets required for this app is not available in my distro (Xubuntu 18.04), so I only want to use this build of wxWidgets for this project only.</div><div><br></div><div>I'd prefer to avoid modifying CMakeLists.txt because it's under version control (and I'm not yet familiar enough with cmake)<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
>It appears that kdevelop ignores LD_LIBRARY_PATH<br>
<br>
I think it's rather the contrary, i.e. that KDevelop resets that variable.<br>
<br>
>How do I tell kdevelop where to find wxWidgets so that I can launch and<br>
>debug from within kdevelop?<br>
<br>
IIRC you can associate an environment profile to your debug configuration, and set your variable(s) that way.<br></blockquote><div><br></div><div>That's what I'm trying to do, but I can't get it to work, and I've not found any documentation for how to.</div><div><br></div><div>I was guessing that I need to set it in:</div><div>"Settings > Configure kdevelop > Environment"</div><div>with:</div><div>Variable: LD_LIBRARY_PATH<br></div><div>Value: /opt/wxWidgets/lib/</div><div><br></div><div>and then select that Environment Profile in:</div><div>"Run > Configure Launches"</div><div><br></div><div>but that doesn't work.<br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
An alternative approach would be to launch Audacity like you would normally (except the debug build), and then attach KDevelop's debugger to the running process. This is typically faster if you're not debugging the startup phase itself, sometimes a lot faster.<br></blockquote><div><br></div><div>Unfortunately that does not work if I launch Audacity from a shell script (the only way so far that I can get it to launch from within kdevelop).</div><div><br></div><div>My thinking is that if I can set the "environment profile" correctly, then Audacity should launch. Am I misunderstanding the "environment profile" feature in kdevelop?<br></div><div><br></div><div>Steve<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
R<br>
</blockquote></div></div>