todbot / LinkM

BlinkM controller / programmer and general USB-to-I2C adapter
http://linkm.thingm.com/
13 stars 6 forks source link

Fix #1

Open jjaeggli opened 9 years ago

jjaeggli commented 9 years ago

When building the LinkM applications under Ubuntu 15.04 x86_64, and I would assume other variants using Java 7, I run into the following issues.

The default includes point to the Java 6 JDK, and nothing else:

gnu99 -I. -I../c_host -I../bootloadHID/commandline -c nativeLinkM.c -o nativeLinkM.o nativeLinkM.c:2:17: fatal error: jni.h: No such file or directory

Linking the library has some difficulty:

/usr/bin/ld: ../c_host/hiddata.o: relocation R_X86_64_32 against `.rodata.str1.8' can not be used when making a shared object; recompile with -fPIC ../c_host/hiddata.o: error adding symbols: Bad value