Skip to main content

linker error for jsr135 native methods

4 replies [Last post]
tusharj9
Offline
Joined: 2005-09-22
Points: 0

Hi,
I'm getting following linker error when compiling for jsr135 on linux .. any guess whats the cause ???
I checked ROMImageGenerated.hpp as well as nativeFunctionTable.cpp . Entries of the function exist in both the files as it is available for other native method calls.

... linking /development/mr2/phoneme_feature-mr2-dev-b09/output_arm/midp_output/bin/arm/runMidlet
/development/mr2/phoneme_feature-mr2-dev-b09/output_arm/midp_output/obj/arm/libobj.a(ROMImage.o):(.rodata+0xb4474): undefined reference to `Java_com_sun_mmedia_DirectRecord_nSetLocator'
........../midp_output/obj/arm/libobj.a(ROMImage.o):(.rodata+0xb44ac): undefined reference to `Java_com_sun_mmedia_DirectRecord_nStart'
..........
...
midp_output/obj/arm/libobj.a(ROMImage.o):(.rodata+0xebff4): undefined reference to `Java_com_sun_mmedia_DirectRecord_finalize'
collect2: ld returned 1 exit status

Regards,
Tushar

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

JSR 135 is only implemented in Windows. Check the source...

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

hi,
To compile jsr135 for linux , I had modified certain files (make/ c source ) so that it uses implementation under jsr135 directory.
I modified subsytem.gmk and hard-coded to use TARGET_PLATFORM as "javacall" . So the files such as KNIDirectPlayer.c, KNIDirectRecord.c ..etc are getting compiled. Also provided black implementation for the native calls using "multimedia.c". Also I can see the corresponding generated .o files in output directory.
Am I missing something ???

Reg,
Tushar

a_krotov
Offline
Joined: 2006-10-17
Points: 0

Hello Tushar,
we plan to add support for JSR-135 on Linux in the next release. At the moment JSR-135 is supported on win32 only.

Questions are welcome.

--
Best regards,
Andrey Krotov

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

I don't know if it's too early to tell, but will the audio part use ALSA in that case?