<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Modartt user forum - Shared libraries]]></title>
		<link>https://forum.modartt.com/viewtopic.php?id=8672</link>
		<description><![CDATA[The most recent posts in Shared libraries.]]></description>
		<lastBuildDate>Wed, 04 Aug 2021 10:45:31 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Shared libraries]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=977331#p977331</link>
			<description><![CDATA[<div class="quotebox"><cite>groovy wrote:</cite><blockquote><p>ldconfig didn&#039;t help?</p></blockquote></div><p>No, I did try ldconfig but it didn&#039;t help.</p><p>I also tried copying the executable &quot;Pianoteq 7 STAGE&quot; file to /compat/linux/bin [where all the linux binaries live], plus all the shared libraries in &quot;Pianoteq 7 STAGE/x86-64bit/libs&quot; to /compat/linux/bin/libs/ but still get the error while loading shared libraries.</p>]]></description>
			<author><![CDATA[null@example.com (edrich)]]></author>
			<pubDate>Wed, 04 Aug 2021 10:45:31 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=977331#p977331</guid>
		</item>
		<item>
			<title><![CDATA[Re: Shared libraries]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=977324#p977324</link>
			<description><![CDATA[<p>ldconfig didn&#039;t help?</p>]]></description>
			<author><![CDATA[null@example.com (groovy)]]></author>
			<pubDate>Tue, 03 Aug 2021 19:18:13 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=977324#p977324</guid>
		</item>
		<item>
			<title><![CDATA[Re: Shared libraries]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=977321#p977321</link>
			<description><![CDATA[<p>Thank you sjgcit and groovy for your prompt reply.</p><p>At first I thought the problem was that there might be a string or environment variable specifying the directories to be searched for shared libraries, and that turns out to be true. The line</p><p>ldconfig_paths=&quot;&lt;space-separated list of directories to search&gt;&quot;</p><p>in the file /etc/defaults/rc.conf does the job. However, one of the directories so specified is /usr/local/lib and in there we find:</p><p>/usr/local/lib/libasound.so.2 -&gt; libasound.so.2.0.0<br />/usr/local/lib/libasound.so.2.0.0</p><p>and similarly for the other shared libraries that Pianoteq requires. I am still seeing the error while loading shared libraries so it seems that I need to do some further investigation.</p>]]></description>
			<author><![CDATA[null@example.com (edrich)]]></author>
			<pubDate>Tue, 03 Aug 2021 17:20:21 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=977321#p977321</guid>
		</item>
		<item>
			<title><![CDATA[Re: Shared libraries]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=977294#p977294</link>
			<description><![CDATA[<p>Interesting, didn&#039;t know, that FreeBSD has a &quot;Linux Compatibility mode&quot;!</p><p>On a common Linux (Debian Buster) the libasound.so.2.0.0 is a content of the (Debian) package libasound2:</p><p># dpkg --search libasound.so.2.0.0<br />libasound2:amd64: /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0</p><p>After installation of this package a softlink is created as sjgcit already described:</p><p># ls -la /usr/lib/x86_64-linux-gnu/libasound.so.2<br />lrwxrwxrwx 1 root root 18 Jan 27&nbsp; 2019 /usr/lib/x86_64-linux-gnu/libasound.so.2 -&gt; libasound.so.2.0.0</p><p>If you have to do such things manually under the compatibility mode of FreeBSD eventually just the single command <strong>ldconfig</strong> without further options might work. But I just remember doing it in the past on Linux systems, when I manually linked some libs.</p><p>Would be cool if you get PTQ running with FreeBSD!</p><p>PS: late edit</p>]]></description>
			<author><![CDATA[null@example.com (groovy)]]></author>
			<pubDate>Mon, 02 Aug 2021 13:01:39 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=977294#p977294</guid>
		</item>
		<item>
			<title><![CDATA[Re: Shared libraries]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=977290#p977290</link>
			<description><![CDATA[<p>On my Linux Mint 18.3 system libasound.so.2 is not a file but a symbolic link to libasound.so.2.0.0 (which is a file)</p><p>So :</p><p>ldd &quot;Pianoteq 7&quot;<br />&nbsp; &nbsp; libasound.so.2 =&gt; /usr/lib/x86_64-linux-gnu/libasound.so.2 (0x00007faebf81e000)</p><p>ls -lap /usr/lib/x86_64-linux-gnu/libasound.so.2</p><p>lrwxrwxrwx 1 root root 18 Oct 19&nbsp; 2016 /usr/lib/x86_64-linux-gnu/libasound.so.2 -&gt; libasound.so.2.0.0</p><p>ls -lap /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0</p><p>-rw-r--r-- 1 root root 1048248 Jan&nbsp; 4&nbsp; 2016 /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0</p><p>Not sure if that helps, but don&#039;t assume ldd is pointing to a real object.&nbsp; Also check it&#039;s libasound&#039;s dependencies exist.&nbsp; You may need more symbolic links to other files.&nbsp; Check permissions as well.</p>]]></description>
			<author><![CDATA[null@example.com (sjgcit)]]></author>
			<pubDate>Mon, 02 Aug 2021 01:03:14 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=977290#p977290</guid>
		</item>
		<item>
			<title><![CDATA[Shared libraries]]></title>
			<link>https://forum.modartt.com/viewtopic.php?pid=977280#p977280</link>
			<description><![CDATA[<p>I have been using Pianoteq for a few years on Linux and am now considering moving to FreeBSD [Unix]. FreeBSD has a Linux Compatibility mode. I have installed the Pianoteq [7] files on my FreeBSD system and when I try to run the executable Pianoteq 7 STAGE I receive, as expected, the message &quot;error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory&quot;. (This is long before I am asked to activate the copy of Pianoteq on this machine.)</p><p>As directed by the FreeBSD handbook, I have copied Pianoteq&#039;s shared libraries to the Linux Compatibility directory, but the handbook says I should also set up symbolic links to these libraries. The Linux &#039;ldd&#039; command shows the links having the exact same name as the original shared libraries, e.g. libasound.so.2 =&gt; /lib/x86_64-linux-gnu/libasound.so.2. I have tried placing the links in the same directory (Pianoteq 7 STAGE/x86-64bit/) as the executable Pianoteq file but I still receive the above error message.</p><p>Can anyone please tell me in which directory these links, e.g. libasound.so.2 on the left of the above &#039;=&gt;&#039;, should be placed? Or is there something else that I am missing?</p><p>Any help gratefully received.</p>]]></description>
			<author><![CDATA[null@example.com (edrich)]]></author>
			<pubDate>Sun, 01 Aug 2021 16:36:08 +0000</pubDate>
			<guid>https://forum.modartt.com/viewtopic.php?pid=977280#p977280</guid>
		</item>
	</channel>
</rss>
