AgoControl > Developers

Z-wave devices control from NAS or router

<< < (3/9) > >>

hari:
of course you need to adjust the Makefile for your specific arm architecture/cross compiler. The RPC plugin will listen on 8088. More information here: http://svn.linuxmce.org/trac.cgi/browser/branches/LinuxMCE-0810/src/RPC_Plugin/RPC_Plugin.cpp

br Hari

LA:
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?

LA:
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с
--- End quote ---
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
--- End quote ---

valent:
LA as you are figuring this out we would really welcome that you document it on the wiki so if anybody else comes with similar request that there is already some info for others.

Cheers.

hari:

--- Quote from: LA on June 25, 2010, 07:23:01 pm ---2) choose right values for parameters -march= and -mtune

--- End 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.


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

--- End quote ---
be aware that you need the headers/libs for the target architecture, not for the host were you are running the cross compilation


--- Quote ---Tried to compile it as:

--- Quote ---make CC=arm-none-linux-gnueabi-gcc ARCH=armс
--- End quote ---
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
--- End quote ---



--- End quote ---
[/quote]
you are mixing arm with intel binaries, that is the reason why you get the elf relocation error. This line is probably not what you want:


--- Quote ---g++ -shared -o RPC_Plugin.so Main.o RPC_Plugin.o ../Gen_Devices/RPC_PluginBase.o mongoose.o  -L../lib 

--- End quote ---

it should read arm-none-linux-gnueabi-g++, not g++. You seem to still lack some defines in the Makefiles for the cross compiler.

br Hari

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Sitemap 
Go to full version