<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">Am Di., 4. Dez. 2018, 20:19 hat Ekki Plicht (DF4OR) <<a href="mailto:ekki@plicht.de">ekki@plicht.de</a>> geschrieben:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:courier new,monospace">Moin.</div><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">Kennt sich jemand mit pkg-config aus? Ich habe hier ne SW die ich selber übersetze, die meckert das sie eine bestimmte library (ebenfalls selber compiliert) nicht findet. Diese ist ist aber vorhanden, ldconfig zeigt die an.</div><div class="gmail_default" style="font-family:courier new,monospace"><br></div><div class="gmail_default" style="font-family:courier new,monospace">Das Programm das ich compilieren will:</div><div class="gmail_default" style="font-family:courier new,monospace">----------------------------</div><div class="gmail_default"><div style="font-family:"courier new",monospace">ekki@grappa ~/src/fldigi-4.0.18 $ ./configure --with-hamlib<br></div><div style="font-family:"courier new",monospace">... [cut]</div><div><div style="font-family:Arial,Helvetica,sans-serif"><font face="courier new, monospace">configure: error: Package requirements (hamlib >= 1.2.4) were not met:</font></div><div style="font-family:Arial,Helvetica,sans-serif"><font face="courier new, monospace"><br></font></div><div style="font-family:Arial,Helvetica,sans-serif"><font face="courier new, monospace">Package 'hamlib', required by 'virtual:world', not found</font></div><div style="font-family:Arial,Helvetica,sans-serif"><font face="courier new, monospace"><br></font></div><div style="font-family:Arial,Helvetica,sans-serif"><font face="courier new, monospace">Consider adjusting the PKG_CONFIG_PATH environment variable if you</font></div><div style="font-family:Arial,Helvetica,sans-serif"><font face="courier new, monospace">installed software in a non-standard prefix.</font></div><div style="font-family:Arial,Helvetica,sans-serif"><font face="courier new, monospace"><br></font></div><div style="font-family:Arial,Helvetica,sans-serif"><font face="courier new, monospace">Alternatively, you may set the environment variables HAMLIB_CFLAGS</font></div><div style="font-family:Arial,Helvetica,sans-serif"><font face="courier new, monospace">and HAMLIB_LIBS to avoid the need to call pkg-config.</font></div><div style="font-family:Arial,Helvetica,sans-serif"><font face="courier new, monospace">See the pkg-config man page for more details.</font></div><div style="font-family:Arial,Helvetica,sans-serif"><span style="font-family:"courier new",monospace">----------------------------</span><br></div><div style="font-family:Arial,Helvetica,sans-serif"><span style="font-family:"courier new",monospace"><br></span></div><div style="font-family:Arial,Helvetica,sans-serif"><span style="font-family:"courier new",monospace">Compiliere ich ohne die Option "--with-hamlib" gehts.</span></div><div style="font-family:Arial,Helvetica,sans-serif"><span style="font-family:"courier new",monospace"><br></span></div><div style="font-family:Arial,Helvetica,sans-serif"><span style="font-family:"courier new",monospace">Die Library "hamlib" ist aber installiert, hier die Ausgaben von ldconfig (es sind zwei verschiedene Versionen von hamlib installiert):</span></div><div style="font-family:Arial,Helvetica,sans-serif"><span style="font-family:"courier new",monospace">----------------------------</span><span style="font-family:"courier new",monospace"><br></span></div><div style="font-family:Arial,Helvetica,sans-serif"><div class="gmail_default" style="font-family:"courier new",monospace">root@grappa ~ # ldconfig -p|grep hamlib</div><div class="gmail_default" style="font-family:"courier new",monospace"><span style="white-space:pre-wrap">        </span>libhamlib.so.4 (libc6,x86-64) => /usr/local/lib/libhamlib.so.4</div><div class="gmail_default" style="font-family:"courier new",monospace"><span style="white-space:pre-wrap">        </span>libhamlib.so.2 (libc6,x86-64) => /usr/local/lib/libhamlib.so.2</div><div class="gmail_default" style="font-family:"courier new",monospace"><span style="white-space:pre-wrap">        </span>libhamlib.so (libc6,x86-64) => /usr/local/lib/libhamlib.so</div><div class="gmail_default" style="font-family:"courier new",monospace"><span style="white-space:pre-wrap">        </span>libhamlib++.so.4 (libc6,x86-64) => /usr/local/lib/libhamlib++.so.4</div><div class="gmail_default" style="font-family:"courier new",monospace"><span style="white-space:pre-wrap">        </span>libhamlib++.so.2 (libc6,x86-64) => /usr/local/lib/libhamlib++.so.2</div><div class="gmail_default" style="font-family:"courier new",monospace"><span style="white-space:pre-wrap">        </span>libhamlib++.so (libc6,x86-64) => /usr/local/lib/libhamlib++.so</div><div style="font-family:"courier new",monospace"><br></div><div><div><font face="courier new, monospace">root@grappa ~ # ldconfig -v|grep hamlib</font></div><div><span style="font-family:"courier new",monospace;white-space:pre-wrap">        </span><span style="font-family:"courier new",monospace">libhamlib.so.4 -> libhamlib.so.4.0.0</span><br></div><div><font face="courier new, monospace"><span style="white-space:pre-wrap">        </span>libhamlib++.so.2 -> libhamlib++.so.2.1.3</font></div><div><font face="courier new, monospace"><span style="white-space:pre-wrap">        </span>libhamlib++.so.4 -> libhamlib++.so.4.0.0</font></div><div><font face="courier new, monospace"><span style="white-space:pre-wrap">        </span>libhamlib.so.2 -> libhamlib.so.2.1.3</font></div></div></div><div style="font-family:Arial,Helvetica,sans-serif"><span style="font-family:"courier new",monospace">----------------------------</span><span style="font-family:"courier new",monospace"><br></span></div><div style="font-family:Arial,Helvetica,sans-serif"><span style="font-family:"courier new",monospace"><br></span></div><div style="font-family:Arial,Helvetica,sans-serif"><span style="font-family:"courier new",monospace">Jetzt habe ich son bischen mit pkg-config rumgebastelt, und habe versucht dem den Pfad nach /usr/local/lib beizubringen, aber das will irgendwie nicht. Das Ergebnis bleibt immer das gleiche, die lib wird nicht gefunden.</span></div></div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default"><div><div style="font-family:Arial,Helvetica,sans-serif"><span style="font-family:"courier new",monospace"></span></div></div></div></div></blockquote></div></div><div dir="auto">Hi, erst einmal sicherstellen dass pkg-config auch installiert ist und das liefert was es soll.</div><div dir="auto">Normalerweise wird im Contitüre Script folgendes gerufen:</div><div dir="auto"><br></div><div dir="auto">$ pkg-config --libs hamlib</div><div dir="auto"><div dir="auto" style="font-family:sans-serif">$ pkg-config --cflags hamlib</div><br></div><div dir="auto"><br></div><div dir="auto">Funktionieren denn die beiden falls und liefern die sinnvolle Ausgaben?</div><div dir="auto"><br></div><div dir="auto">Wenn ja dann nutzt das config Script das oft noch um ein Test Programm zu bauen.</div><div dir="auto">Es benutzt also irgendein kurzes Programm das es mit diesen Flags baut.</div><div dir="auto">Wenn das nicht klappt kann es auch daran liegen.</div><div dir="auto"><br></div><div dir="auto">In configure.log findet man all das, Mal dort reinschauen ob und an was das ganze scheiterte.</div><div dir="auto">Wenn möglich auch einfach das ganze Log nach pastebin senden und hier verlinken.</div><div dir="auto"><br></div><div dir="auto">Mehr dazu bei <a href="https://people.freedesktop.org/~dbn/pkg-config-guide.html">https://people.freedesktop.org/~dbn/pkg-config-guide.html</a><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default"><div><div style="font-family:Arial,Helvetica,sans-serif"><span style="font-family:"courier new",monospace"><br></span></div><div><font face="courier new, monospace">Ideen was ich falsch mache?</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace">Danke.</font></div><div><font face="courier new, monospace">Ekki</font></div><div><font face="courier new, monospace"><br></font></div><div><font face="courier new, monospace"><br></font></div><div style="font-family:Arial,Helvetica,sans-serif"><span style="font-family:"courier new",monospace"><br></span></div><br class="m_-5249358631853952069gmail-Apple-interchange-newline"></div></div></div>
_______________________________________________<br>
lug-ld mailing list<br>
<a href="mailto:lug-ld@lists.lug-ld.de" target="_blank" rel="noreferrer">lug-ld@lists.lug-ld.de</a><br>
<a href="http://lists.lug-ld.de/mailman/listinfo/lug-ld" rel="noreferrer noreferrer" target="_blank">http://lists.lug-ld.de/mailman/listinfo/lug-ld</a><br>
</blockquote></div></div></div>