[collectd] Help while crosscompiling, with java plugin
Daniel Hilst Selli
danielhilst at gmail.com
Tue Oct 29 20:55:46 CET 2013
Hi, I'm having problems while trying to cross compile collectd with java
plugin to ARM.
The first one is the jdk. Since java plugin is linked to libjvm.so, I
need an ARM libjvm.so, this is found on ejre from oracle, no problem so
far.. The problem is that I need JAR, JAVAC etc.. and this ones come
only from JDK, which I can't find for ARM,
I do this dirty trick, do pass compilation, but I don't know if is safe..
1. Get the JDK for x86_64
2. Get the JRE for ARM
3. Remove all contents on JDK/jre/*
4. Copy contents from JRE to JDK/jre/
This pass the configure stage..
The second problem is this error message:
cc1: warnings being treated as errors
cc1: error: include location "/usr/include/gdk-pixbuf-2.0" is unsafe for
cc1: error: include location "/usr/include/libpng16" is unsafe for
cc1: error: include location "/usr/include/glib-2.0" is unsafe for
I ran this configure line with this environments
./configure --host=x86_64-unknown-linux-gnu --target=$CROSS_COMPILE
--with-fp-layout=nothing --enable-java --enable-debug --disable-python
Thanks in advance, and best regards!
More information about the collectd