Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portaudio build with latest version of hotplug branch is broken #5

Closed
mittorn opened this issue Jan 6, 2014 · 5 comments
Closed

Portaudio build with latest version of hotplug branch is broken #5

mittorn opened this issue Jan 6, 2014 · 5 comments

Comments

@mittorn
Copy link

mittorn commented Jan 6, 2014

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

@mittorn
Copy link
Author

mittorn commented Jan 6, 2014

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

@damencho
Copy link
Member

damencho commented Jan 6, 2014

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 GitHubhttps://github.com//issues/5#issuecomment-31652400
.

@mittorn
Copy link
Author

mittorn commented Jan 19, 2014

Thank you, that works.

@mittorn
Copy link
Author

mittorn commented Jan 19, 2014

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?

@lyubomir
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants