[jitsi-dev] [libjitsi] Portaudio build with latest version of hotplug branch is broken (#5)


#1

I'm tried to build portaudio lib and got this:

init-native:

portaudio:
       [cc] Starting dependency analysis for 2 files.
       [cc] 2 files are up to date.
       [cc] 0 files to be recompiled from dependency analysis.
       [cc] 1 total files to be compiled.
       [cc] /mnt/data/libjitsi-master/src/native/portaudio/org_jitsi_impl_neomedia_portaudio_Pa.c: In function 'Java_org_jitsi_impl_neomedia_portaudio_Pa_DeviceInfo_1getDeviceUIDBytes':
       [cc] /mnt/data/libjitsi-master/src/native/portaudio/org_jitsi_impl_neomedia_portaudio_Pa.c:229:44: error: 'PaDeviceInfo' has no member named 'deviceUID'
       [cc] /mnt/data/libjitsi-master/src/native/portaudio/org_jitsi_impl_neomedia_portaudio_Pa.c: In function 'Java_org_jitsi_impl_neomedia_portaudio_Pa_DeviceInfo_1getTransportTypeBytes':
       [cc] /mnt/data/libjitsi-master/src/native/portaudio/org_jitsi_impl_neomedia_portaudio_Pa.c:286:44: error: 'PaDeviceInfo' has no member named 'transportType'
       [cc] /mnt/data/libjitsi-master/src/native/portaudio/org_jitsi_impl_neomedia_portaudio_Pa.c:288:1: warning: control reaches end of non-void function [-Wreturn-type]
       [cc] /mnt/data/libjitsi-master/src/native/portaudio/org_jitsi_impl_neomedia_portaudio_Pa.c: In function 'Java_org_jitsi_impl_neomedia_portaudio_Pa_DeviceInfo_1getDeviceUIDBytes':
       [cc] /mnt/data/libjitsi-master/src/native/portaudio/org_jitsi_impl_neomedia_portaudio_Pa.c:231:1: warning: control reaches end of non-void function [-Wreturn-type]

BUILD FAILED
/mnt/data/libjitsi-master/src/native/build.xml:492: gcc failed with return code 1

Total time: 0 seconds

···

---
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/libjitsi/issues/5


#2

I checked pa-hotplug revisions starting from 1670 to 1913 (the laterst), but it has no transportType declared in portaudio.h. What is wrong?

···

---
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/libjitsi/issues/5#issuecomment-31652400


#3

Hi,

our patch for hotplug was not added to that branch, but you can check the
currently used portaudio sources at:
https://github.com/jitsi/libsrc/blob/master/portaudio.zip

Regards
damencho

···

On Mon, Jan 6, 2014 at 4:37 PM, mittorn <notifications@github.com> wrote:

I checked pa-hotplug revisions starting from 1670 to 1913 (the laterst),
but it has no transportType declared in portaudio.h. What is wrong?


Reply to this email directly or view it on GitHub<https://github.com/jitsi/libjitsi/issues/5#issuecomment-31652400>
.

---
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/libjitsi/issues/5#issuecomment-31652650


#4

Closed #5.

···

---
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/libjitsi/issues/5


#5

Thank you, that works.

···

---
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/libjitsi/issues/5#issuecomment-32704042


#6

And what about speex?
libjnspeex.so compiles with speex-1.2rc1, but SpeexResampler does not work.
It crashes in class initialisation:
09:55:17.156 SEVERE: [32] util.UtilActivator.uncaughtException().108 An uncaught exception occurred in thread=Thread[pool-16-thread-1,5,main] and message was: Could not initialize class org.jitsi.impl.neomedia.codec.audio.speex.SpeexResample.
When trying to use unsupported samplerate, but with original libjnspeex it works.
after replaced "Speex.assertSpeexIsFunctional();" line by "System.loadLibrary("jnspeex");" i got UnsatisfiedLinkError: net.java.sip.communicator.impl.neomedia.codec.audio.speex.Speex.speex_resampler_init(IIIIJ)J when libjnspeex.so exist
and Could not initialize class org.jitsi.impl.neomedia.codec.audio.speex.SpeexResample, when it does not exist. It means that libjnspeex is loaded.
What version of speex i should use?

···

---
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/libjitsi/issues/5#issuecomment-32704287


#7

The .c and .h files of the JNI library have been prepared for a move of the library from net.java.sip.communicator. package into the org.jitsi. package but the Java side has not been moved there yet because we have to recompile on at least three operating systems. A temporary fix may be to replace Java_net_java_sip_communicator_ with Java_org_jitsi_ in the .c and .h files in src\native\speex and rebuild libjnspeex.so. I'll try to complete the move between the packages soon.

···

---
Reply to this email directly or view it on GitHub:
https://github.com/jitsi/libjitsi/issues/5#issuecomment-32752863