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