Skip to main content

compiling jsr82?

5 replies [Last post]
myhouwei
Offline
Joined: 2007-01-31
Points: 0

build system: winXP target:win32_i386
I have compiled MIDP by default makefile.That's OK. Then I modified Options.gmk. Set USE_JSR_82 = true
JSR_82_DIR = d:/jwc/jsr82

I recompiled and got some error.
by the way, I compiled MR2. But there is not jsr82 in MR2 source bundle.So I use jsr82 in MR1. I also tried other jsr and got errors too.
*******************************************
...
... compiling 532 .java files and 6 generated .java files
d:/jwc/jsr82/src/protocol/btl2cap/classes/com/sun/midp/io/j2me/btl2cap/L2CAPNoti
fierImpl.java:122: incompatible types
found : int
required: java.lang.String
String suiteId = (suite != null) ? suite.getID() : null;
^
d:/jwc/jsr82/src/protocol/btspp/classes/com/sun/midp/io/j2me/btspp/BTSPPNotifier
Impl.java:130: pushCheckout(java.lang.String,java.lang.String) in com.sun.midp.i
o.j2me.btspp.BTSPPNotifierImpl cannot be applied to (java.lang.String,int)
if (suite != null && pushCheckout(connUrl, suite.getID())) {
^
d:/jwc/output/midp/generated/classes/com/sun/midp/jsr/JSRInitializer.java:42: ca
nnot resolve symbol
symbol : class Initializer
location: package jsr082
com.sun.midp.jsr082.Initializer.init();
^
3 errors
make.exe[1]: *** [d:/jwc/output/midp/classes.zip] Error 1
make.exe[1]: Leaving directory `d:/jwc/midp/build/win32'
d:\cyg4me\bin\make.exe: *** [build_classes] Error 2
**********************************

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
hallenberg
Offline
Joined: 2007-01-05
Points: 0

I just wanted to verify that I've got jsr82 from MR1 working on MR2 (b08) after a couple of slight tweaks. If it's of interest to anyone... On Linux/ARM that is, with BlueZ.

tusharj9
Offline
Joined: 2005-09-22
Points: 0

Hi hallenberg ,
I'm trying use jsr82 with bluez on linux . After modifying some make files and cpp files i was able to use native Bluez library. But seems code is not working properly. I can get the bt address properly but if start for device inquiry or try to get local name it does not work.
Got any idea ?

Regards,
Tushar

hallenberg
Offline
Joined: 2007-01-05
Points: 0

I haven't tried doing that, as far as I know. Why would you want the local name anyhow? Unless you mean the friendly name of remote devices. Scanning for devices and connecting to them works just fine (at least over RFCOMM). I've used a Bluetooth GPS to supply data to a navigation client.

aap031
Offline
Joined: 2006-10-18
Points: 0

Hi!

Unfortunately that's the way it is. In MR2 MIDP component was refactored a bit including type change for suite IDs in AMS (the cause of the error you have in your log) so you most probably will have no possibility to mix together components from different releases

I suggest you either take only MR1 code or wait till MR2 release including JSRs you need

Regards,
Andrey

myhouwei
Offline
Joined: 2007-01-31
Points: 0

thank you.
I recompiled MR1 jsr82 on windows for win32_i386.
but I got a error.
d:\jwc\jsr82\src\core\native\common\btCommon.h(38) : fatal error C1083: Cannot o
pen include file: 'stdint.h': No such file or directory

I searched MR1 source code. The file 'stdint.h' does not exist. Where I can find this file?