<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Problem when executing Qt app from Terminal when using libtorch]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">I have a Qt application which use libtorch library and that build and run normally when using Qt Creator. I have Qt 5.9.5 and Ubuntu 18.04.<br />
However, when I run my Qt app through terminal (./My_app) I got the error below :<br />
<img src="https://ddgobkiprc33d.cloudfront.net/5c919cec-ec6d-4ba9-a473-69737d59c8bd.png" alt="4f67dbc3-bac7-4700-a7c2-c2321cc3cbf8-Screenshot from 2023-06-14 21-32-27.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">How to fix this error knowing that the libtorch library was used without issues when executing from Qt Creator ?</p>
]]></description><link>https://forum.qt.io/topic/145765/problem-when-executing-qt-app-from-terminal-when-using-libtorch</link><generator>RSS for Node</generator><lastBuildDate>Thu, 30 Apr 2026 17:47:34 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/145765.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 Jun 2023 13:52:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem when executing Qt app from Terminal when using libtorch on Wed, 14 Jun 2023 14:22:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zine">@<bdi>ZINE</bdi></a> this lib path is not set. Do the following:<br />
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:path-to-libtorch<br />
you can use<br />
locate <a href="http://libtorch.so" target="_blank" rel="noopener noreferrer nofollow ugc">libtorch.so</a><br />
to find its path</p>
]]></description><link>https://forum.qt.io/post/761417</link><guid isPermaLink="true">https://forum.qt.io/post/761417</guid><dc:creator><![CDATA[JoeCFD]]></dc:creator><pubDate>Wed, 14 Jun 2023 14:22:07 GMT</pubDate></item></channel></rss>