Trying to build the library wrappers to push a 2.8" TFT Touchscreen. I have downloaded the source libraries, put them in their own directory, and tried to generate the B4R library xml with:
and
I'm guessing that unknown source means that I need to acquire some dependent libraries, but I'm not sure where to go to get these. I've tried copying what I could find (like spi.h & spi.c) into the directory i'm generating from, but doesn't seem to have an effect.
Java -version reports 1.8.0_91-b14
Any pointers on where to go next is appreciated.
Attached one of the source libraries, the other one is too large.
Gentry
B4X:
java -jar B4Rh2xml.jar TFTv2.h TFTv2.xml
Skipping: inline void sendCMD(INT8U index)
Skipping: {
Error parsing: TFT_DC_LOW;
parser._parsemethod (java line: 527)
java.lang.NumberFormatException: For input string: "error"
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at sun.misc.FloatingDecimal.parseDouble(Unknown Source)
at java.lang.Double.parseDouble(Unknown Source)
at b4j.example.parser._parsemethod(parser.java:527)
at b4j.example.parser._parseline(parser.java:464)
at b4j.example.parser._parseh(parser.java:422)
at b4j.example.parser._parse(parser.java:267)
at b4j.example.main._appstart(main.java:46)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)
at b4j.example.main.main(main.java:29)
and
B4X:
java -jar B4Rh2xml.jar SeeedTouchScreen.h SeeedTouchScreen.xml
Error parsing: Point(void);
parser._parsemethod (java line: 527)
java.lang.NumberFormatException: For input string: "error"
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
at sun.misc.FloatingDecimal.parseDouble(Unknown Source)
at java.lang.Double.parseDouble(Unknown Source)
at b4j.example.parser._parsemethod(parser.java:527)
at b4j.example.parser._parseline(parser.java:464)
at b4j.example.parser._parseh(parser.java:422)
at b4j.example.parser._parse(parser.java:267)
at b4j.example.main._appstart(main.java:46)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:93)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:84)
at b4j.example.main.main(main.java:29)
I'm guessing that unknown source means that I need to acquire some dependent libraries, but I'm not sure where to go to get these. I've tried copying what I could find (like spi.h & spi.c) into the directory i'm generating from, but doesn't seem to have an effect.
Java -version reports 1.8.0_91-b14
Any pointers on where to go next is appreciated.
Attached one of the source libraries, the other one is too large.
Gentry