Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - LA

Pages: 1 [2]
16
Developers / Re: Z-wave devices control from NAS or router
« on: July 04, 2010, 12:55:41 pm »
Hi Hari,
I am still trying to complile application on the NAS.
I've installed mysql5 package (is it OK? mysql 4 doesn't have mysqlclient libs) and added the following line into Makefile:
Code: [Select]
export LDFLAGS=-L/opt/lib/mysqlso, I haven't got any mysqlclient related error during compilation.
But now I have another error:
Code: [Select]
g++ -c -DUSE_MYSQL_WRAPPER -I/usr/include/libxml2/ -I/usr/include/mysql -I.. -I../DCE   -Wall -fPIC -ggdb3  ../Gen_Devices/RPC_PluginBase.cpp -o ../Gen_Devices/RPC_PluginBase.o
../Gen_Devices/RPC_PluginBase.cpp: In member function 'virtual DCE::DeviceData_Impl* DCE::RPC_Plugin_Data::CreateData(DCE::DeviceData_Impl*, char*, long unsigned int, char*)':
../Gen_Devices/RPC_PluginBase.cpp:13: warning: unused variable 'iPK_Device'
../Gen_Devices/RPC_PluginBase.cpp:14: warning: unused variable 'iPK_Installation'
cc -Wall -fPIC -ggdb3 -c mongoose.c
make[1]: cc: Command not found
make[1]: *** [RPC_Plugin.so] Error 127
make[1]: Leaving directory `/volume2/video/temp/harimini/RPC_Plugin'
make: *** [plugins] Error 2
how should I fix it?

upd. fixed it by adding
Code: [Select]
export CC=${CROSS}gcc ${CFLAGS}to Makefile.
I also had to replace ./post_make.sh in RPC_Plugin/Makefile to direct path - /volume2/video/temp/harimini/RPC_Plugin/post_make.sh.
Now I am getting error
Code: [Select]
g++ -o ZWave Main.o ZWave.o ../Gen_Devices/ZWaveBase.o Serial.o ZWApi.o ../Generic_Serial_Device/IOUtils.o -L/opt/lib/mysql  -L../lib   -lSerializeClass -lDCECommon -lPlutoUtils -lpthread
/opt/lib/gcc/arm-none-linux-gnueabi/4.2.3/../../../../arm-none-linux-gnueabi/bin/ld: warning: libmysqlclient.so.15, needed by ../lib/libDCECommon.so, not found (try using -rpath or -rpath-link)
/opt/lib/gcc/arm-none-linux-gnueabi/4.2.3/../../../../arm-none-linux-gnueabi/lib/libpthread.so: undefined reference to `__default_sa_restorer_v2@GLIBC_PRIVATE'
/opt/lib/gcc/arm-none-linux-gnueabi/4.2.3/../../../../arm-none-linux-gnueabi/lib/libpthread.so: undefined reference to `__default_rt_sa_restorer_v2@GLIBC_PRIVATE'
/opt/lib/gcc/arm-none-linux-gnueabi/4.2.3/../../../../arm-none-linux-gnueabi/lib/libpthread.so: undefined reference to `__default_rt_sa_restorer_v1@GLIBC_PRIVATE'
/opt/lib/gcc/arm-none-linux-gnueabi/4.2.3/../../../../arm-none-linux-gnueabi/lib/libpthread.so: undefined reference to `__default_sa_restorer_v1@GLIBC_PRIVATE'
collect2: ld returned 1 exit status
make[1]: *** [ZWave] Error 1
make[1]: Leaving directory `/volume2/video/temp/harimini/ZWave'
make: *** [dcedevs] Error 2

17
Developers / Re: Z-wave devices control from NAS or router
« on: July 01, 2010, 07:42:37 pm »
Hmm, looks like compilation with usage of make only is successful.
At least, I haven't got any error.
How should I install compiled version on my NAS? Which files should I copy there and which of them should I run?

And, when I tried to compile it on the NAS itself, I've got the following error:
Code: [Select]
g++ -shared -fPIC -Wall -g -ggdb3 -D_GNU_SOURCE -DUSE_MYSQL_WRAPPER -I/usr/include/libxml2/ -I/usr/include/mysql -I./ -I../../ -I../ -I../DCE/ -I../../DCE -I../VIPShared/ -I../../VIPShared -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DUSE_LZO_DATAGRID -DKDE_LMCE -DDEBUG -DTHREAD_LOG -DLOG_ALL_QUERIES -I/stuff/tmp/staging/armv4t-angstrom-linux-gnueabi/usr/include/mysql -o libPlutoUtils.so CommonIncludes.o FileUtils.o MultiThreadIncludes.o Other.o ProcessUtils.o StringUtils.o DatabaseUtils.o getch.o md5c.o minilzo.o uuencode.o LinuxSerialUSB.o ThreadedClass.o ../db_wrapper/db_wrapper.o ../db_wrapper/ClientSocket.o ../db_wrapper/Socket.o -L/usr/lib/mysql -lmysqlclient
/opt/lib/gcc/arm-none-linux-gnueabi/4.2.3/../../../../arm-none-linux-gnueabi/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make[1]: *** [libPlutoUtils.so] Error 1
make[1]: Leaving directory `/tmp/harimini/PlutoUtils'
make: *** [libs] Error 2
seems my NAS doesn't have mysqlclient and have sqllite only.
installation of mysql package doesn't help and mysqlclient package can not be found...

18
Developers / Re: Z-wave devices control from NAS or router
« on: July 01, 2010, 07:22:07 pm »
should I just run make in the folder with sources?
If I do bash build-arm.sh, then I get the following error:
Code: [Select]
make[1]: Entering directory `/usr/local/arm-none-linux-gnueabi/bin/harimini/Lighting_Plugin'
g++ -c -DUSE_MYSQL_WRAPPER -I/usr/include/libxml2/ -I/usr/include/mysql -I.. -I../DCE   -msoft-float -D__GCC_FLOAT_NOT_NEEDED -march=armv4 -mtune=arm920t -Wall -fPIC -ggdb3  Main.cpp -o Main.o
Main.cpp:1: error: bad value (armv4) for -march= switch
Main.cpp:1: error: bad value (arm920t) for -mtune= switch
make[1]: *** [Main.o] Error 1
make[1]: Leaving directory `/usr/local/arm-none-linux-gnueabi/bin/harimini/Lighting_Plugin'
make: *** [plugins] Error 2
again it tries to use non-arm g++...

I'll also try to compile it on the NAS itself.

19
Developers / Re: Z-wave devices control from NAS or router
« on: July 01, 2010, 07:02:07 pm »
Can somebody please help me to create configure file?
Looks like this is the only way for me to compile the program...

20
Developers / Re: Z-wave devices control from NAS or router
« on: June 27, 2010, 06:09:25 pm »
Quote
that really depends on the hardware you want to use. The values in the Makefile were chosen for the mini2440 arm platform. You need to figure out the proper values for your router.
Understand that. In the document about my hardware it is mention that I should do the following:
Code: [Select]
# env CC=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc \
LD=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ld \
RANLIB=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ranlib \
CFLAGS="-I/usr/local/arm-none-linux-gnueabi/include" \
LDFLAGS="-L/usr/local/arm-none-linux-gnueabi/lib" \
./configure \
--host=armle-unknown-linux \
--target=armle-unknown-linux \
--build=i686-pc-linux \
--prefix=/usr/local
doesn't it contain or allow to identify which values should be used for parameters march and mtune?

21
Developers / Re: Z-wave devices control from NAS or router
« on: June 25, 2010, 07:23:01 pm »
Hi Hari,
sorry for bothering you with such questions...

Could you please help me either to
1) create configure file for your application OR
2) choose right values for parameters -march= and -mtune

(I've installed the following packages: g++, libmysqlclient15-dev, libattr1-dev, libxml2-dev - looks like now I have all headers needed)

Tried to compile it as:
Quote
make CC=arm-none-linux-gnueabi-gcc ARCH=armс
got the following error:
Quote
arm-none-linux-gnueabi-gcc -Wall -fPIC -ggdb3 -c mongoose.c
g++ -shared -o RPC_Plugin.so Main.o RPC_Plugin.o ../Gen_Devices/RPC_PluginBase.o mongoose.o  -L../lib   -lSerializeClass -lDCECommon -lPlutoUtils -lpthread -ldl -lpluto_main
/usr/bin/ld: mongoose.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mongoose.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mongoose.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mongoose.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mongoose.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mongoose.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mongoose.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: mongoose.o: Relocations in generic ELF (EM: 40)
mongoose.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make[1]: *** [RPC_Plugin.so] Error 1
make[1]: Leaving directory `/usr/local/arm-none-linux-gnueabi/bin/harimini/RPC_Plugin'
make: *** [plugins] Error 2


22
Developers / Re: Z-wave devices control from NAS or router
« on: June 23, 2010, 07:09:13 pm »
Looks like my toolchain doesn't have headers/libs for mysql, libattr and libxml2. Where can I download it?
May I use for libxml2 these files? Where should I put them?

23
Developers / Re: Z-wave devices control from NAS or router
« on: June 23, 2010, 12:18:59 pm »
Thanks, Hari!
But if I compile it with usage of existing makefile, then it will be compiled for another ARM processor, willn't it?
Probably I should try to use already compiled version first? But where can I take it? (installer folder has something...).

And, which url should I access to send commands thru http?

24
Developers / Re: Z-wave devices control from NAS or router
« on: June 22, 2010, 09:11:29 pm »
I've found a document, which describes how applications should be compiled for my Synology DS210j.

In accordance with this document I should configure software:
Code: [Select]
# env CC=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc \
LD=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ld \
RANLIB=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ranlib \
CFLAGS="-I/usr/local/arm-none-linux-gnueabi/include" \
LDFLAGS="-L/usr/local/arm-none-linux-gnueabi/lib" \
./configure \
--host=armle-unknown-linux \
--target=armle-unknown-linux \
--build=i686-pc-linux \
--prefix=/usr/local
I input this into terminal and getting error that ./configure: No such file or directory. I tried to run it from the folder /usr/local/arm-none-linux-gnueabi. I've also installed autoconf package.

Can somebody please help me with this? Never was compiling C (?) applications before.

PS. Tool chain is at /usr/local/arm-none-linux-gnueabi/ and sources are at /usr/tmp/harimini/.

25
Developers / Re: Z-wave devices control from NAS or router
« on: June 22, 2010, 05:30:55 pm »
Quote
you might want to look into micasa verde vera
I would prefer to use existing hardware instead of buying new one (vera1 is based on asus wl500g, which quite similiar to asus rt-n16).

Quote
I'm not aware of the specs for those devices but the parts of LinuxMCE responsible for Z-Wave run fine on an ARM 400mhz cpu with 64mb of ram.
look here: http://svn.linuxmce.org/svn/people/hari/mini/
Thanks, Hari.
Synology DS210j has 800MHz Marvell Kirkwood mv6281 ARM Processor, 128MB of RAM;
Asus RT-N16 has 480Mhz BCM4718, 128MB DDR2 RAM.

Is there any documentation about mini part of LinuxMCE? How should I install and use it? Just copy all files from the Installer folder to the device and run mini-install.sh? Will it install some web-server, where I will be able to control my devices?

upd. found some instruction here. But looks like now I don't need to compile it, since installer is available... Anyway, would appreciate if somebody provides me with more detailed guide.

btw, will it work with this USB device - Leviton ControlThink CTZUS-1EU?

Quote
another option would be to use OpenZwave
are you talking about this openZwave? It looks like tool for the developers. Don't see any binary files there...

26
Developers / Z-wave devices control from NAS or router
« on: June 21, 2010, 10:24:59 pm »
Hello!

I have NAS Synology DS210j and router Asus RT-n16.
Is there any way to install that part of LinuxMCE, which is responsible for z-wave devices control, on one of them?

Pages: 1 [2]