Using low level Z-Way C API
Posted: 07 Oct 2015 11:34
Hi,
I'm trying to compile a test tool to check the usage of low level Z-Way C API. Code sample was downloaded from
http://razberry.zwave.me/index.php?id=15 particulaly this one
http://razberry.zwave.me/fileadmin/z-way-test.tgz
Compiling main.c from this sample succeeds but the program does nothing (nothing shown on screen and no process running). Debugin with GDB gives "Signal received: SIGILL (Illegal instruction)" error. If I check the process which causes the problem it is OPENSSL_cleanse().
Razberry itself is working fine, there are several devices configured in it.
I'm using NetBeans with remote compiling in Raspberry. I've already updated all system libraries and added them to linker.
Has anybody tried to compile this sample on Raspberry? Is there any special requirement for library version or whatever? Any hint is appreciated.
The output of compiling is below:
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory '/root/.netbeans/remote/10.136.151.15/home7-Windows-x86/G/NetBean-projects/ZwaveApplication_test2'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/zwaveapplication_test2
make[2]: Entering directory '/root/.netbeans/remote/10.136.151.15/home7-Windows-x86/G/NetBean-projects/ZwaveApplication_test2'
mkdir -p build/Debug/GNU-Linux-x86
rm -f "build/Debug/GNU-Linux-x86/main.o.d"
gcc -c -g -MMD -MP -MF "build/Debug/GNU-Linux-x86/main.o.d" -o build/Debug/GNU-Linux-x86/main.o main.c
mkdir -p dist/Debug/GNU-Linux-x86
gcc -o dist/Debug/GNU-Linux-x86/zwaveapplication_test2 build/Debug/GNU-Linux-x86/main.o -L/usr/lib/libzway/ -lzway -lzcommons -L/usr/lib/arm-linux-gnueabihf/ -lpthread -lxml2 -lz -lm -lcrypto -larchive
make[2]: Leaving directory '/root/.netbeans/remote/10.136.151.15/home7-Windows-x86/G/NetBean-projects/ZwaveApplication_test2'
make[1]: Leaving directory '/root/.netbeans/remote/10.136.151.15/home7-Windows-x86/G/NetBean-projects/ZwaveApplication_test2'
Best regards,
Mike
I'm trying to compile a test tool to check the usage of low level Z-Way C API. Code sample was downloaded from
http://razberry.zwave.me/index.php?id=15 particulaly this one
http://razberry.zwave.me/fileadmin/z-way-test.tgz
Compiling main.c from this sample succeeds but the program does nothing (nothing shown on screen and no process running). Debugin with GDB gives "Signal received: SIGILL (Illegal instruction)" error. If I check the process which causes the problem it is OPENSSL_cleanse().
Razberry itself is working fine, there are several devices configured in it.
I'm using NetBeans with remote compiling in Raspberry. I've already updated all system libraries and added them to linker.
Has anybody tried to compile this sample on Raspberry? Is there any special requirement for library version or whatever? Any hint is appreciated.
The output of compiling is below:
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory '/root/.netbeans/remote/10.136.151.15/home7-Windows-x86/G/NetBean-projects/ZwaveApplication_test2'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/zwaveapplication_test2
make[2]: Entering directory '/root/.netbeans/remote/10.136.151.15/home7-Windows-x86/G/NetBean-projects/ZwaveApplication_test2'
mkdir -p build/Debug/GNU-Linux-x86
rm -f "build/Debug/GNU-Linux-x86/main.o.d"
gcc -c -g -MMD -MP -MF "build/Debug/GNU-Linux-x86/main.o.d" -o build/Debug/GNU-Linux-x86/main.o main.c
mkdir -p dist/Debug/GNU-Linux-x86
gcc -o dist/Debug/GNU-Linux-x86/zwaveapplication_test2 build/Debug/GNU-Linux-x86/main.o -L/usr/lib/libzway/ -lzway -lzcommons -L/usr/lib/arm-linux-gnueabihf/ -lpthread -lxml2 -lz -lm -lcrypto -larchive
make[2]: Leaving directory '/root/.netbeans/remote/10.136.151.15/home7-Windows-x86/G/NetBean-projects/ZwaveApplication_test2'
make[1]: Leaving directory '/root/.netbeans/remote/10.136.151.15/home7-Windows-x86/G/NetBean-projects/ZwaveApplication_test2'
Best regards,
Mike