<?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[php and c application data exchange .so lib linkage problem]]></title><description><![CDATA[<p dir="auto">I use below structure for my distributed c/c/qt app which uses multiple .so libs.<br />
I'm testing some possibilities of php and web interface and facing below problem:</p>
<p dir="auto">/home/j/OSL/build/lib/libOSL.so</p>
<p dir="auto">I'm making web interface for my engine and learning how to exchange data.</p>
<p dir="auto">I use below command to interfere with my C application</p>
<p dir="auto">&lt;?php</p>
<p dir="auto">function sendRequestC() {<br />
exec('/opt/lampp/htdocs/app/EXN/build/EXN 1 2 3, $output, $retval);<br />
}<br />
?&gt;</p>
<p dir="auto">If I dont link any .so libs its works as designed</p>
<p dir="auto">I usually face LD_EXPORT problem using distrubuted .so libs for my c/cpp apps.</p>
<p dir="auto">But currently I tested it to be visible with my ld environment:</p>
<p dir="auto">echo $LD_LIBRARY_PATH=/home/j/OSL/build/lib</p>
<p dir="auto">Also it is visible through regular c application call</p>
<p dir="auto">/opt/lampp/htdocs/app/EXN/build/EXN</p>
<p dir="auto">return value: 1</p>
<p dir="auto">When I call php script it returns nothing.<br />
Usually if session is fine, I get array returned from C program.</p>
<pre><code>qt pro file:

TEMPLATE = app
CONFIG += c
TARGET = EXN

DESTDIR = /opt/lampp/htdocs/app/EXN/build



HEADERS += \
  
   

SOURCES += \
   
	main.c


INCLUDEPATH += /opt/lampp/htdocs/app/EXN/OSL

# /opt/lampp/htdocs/app/EXN/lib/libOSL.so

 LIBS += -L/opt/lampp/htdocs/app/EXN/lib/ -lOSL -ldl


QMAKE_LFLAGS += -pthread


QMAKE_CFLAGS_DEBUG   += -O0 -g
QMAKE_CFLAGS_RELEASE += -O2 -DNDEBUG

DISTFILES += \
    ../../../opt/lampp/htdocs/app/EXN/libOSL.so
</code></pre>
<p dir="auto">apache, xampp server</p>
]]></description><link>https://forum.qt.io/topic/164811/php-and-c-application-data-exchange-.so-lib-linkage-problem</link><generator>RSS for Node</generator><lastBuildDate>Sat, 04 Jul 2026 00:47:27 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/164811.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 19 Jun 2026 18:45:29 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to php and c application data exchange .so lib linkage problem on Sat, 20 Jun 2026 20:25:13 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">What do you mean by web interface ?</p>
]]></description><link>https://forum.qt.io/post/838841</link><guid isPermaLink="true">https://forum.qt.io/post/838841</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sat, 20 Jun 2026 20:25:13 GMT</pubDate></item></channel></rss>