Error compiling juce_amalgamated on Ubuntu-9.10

For Linux specific issues

Error compiling juce_amalgamated on Ubuntu-9.10

Postby arjunen » Mon Nov 09, 2009 8:13 pm

Guys,

I am getting an error while compiling juce_amalgamated on ubuntu-9.10. It compiles fine on ubuntu-9.04. Below is the error, can you guys help me fix it.

Code: Select all
juce_amalgamated.cpp: In member function ‘virtual juce::AudioIODevice* juce::ALSAAudioIODeviceType::createDevice(const juce::String&, const juce::String&)’:
juce_amalgamated.cpp:258676: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator>=’
In file included from juce_LibrarySource.cpp:12:


Any help is appreciated.

Arjunen
arjunen
JUCE Weenie
 
Posts: 6
Joined: Mon Nov 09, 2009 8:05 pm

Postby arjunen » Mon Nov 09, 2009 11:55 pm

For time being I have disabled ALSA support and it compiles fine. But it will be nice to have JUCE library with ALSA support.
arjunen
JUCE Weenie
 
Posts: 6
Joined: Mon Nov 09, 2009 8:05 pm

Postby jules » Tue Nov 10, 2009 12:00 am

Hmm. Looks like you found a typo in the ALSA code. What I don't understand is how it ever compiled at all!

Thanks! I'll check in a fix in the next few minutes..
User avatar
jules
Fearless Leader
 
Posts: 17204
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

linux compile error (AudioIODevice* createDevice)

Postby m4tte » Sun Nov 15, 2009 3:18 pm

Ehmm, it may be the same problem I was writing for...
Here is it.
Building the following juce version:
Code: Select all
$ git log
commit 405d934e6839ed41aa6caf7ccedc68f3c4557e11
Author: Julian Storer <jules@BigMac.local>
Date:   Mon Nov 9 12:00:18 2009 +0000


in this environment:
Code: Select all
$ cat /proc/version
Linux version 2.6.31-ARCH (root@architect) (gcc version 4.4.2 (GCC) ) #1 SMP PREEMPT Tue Nov 10 19:48:17 CET 2009


I have the following error:
Code: Select all
$ make CONFIG=Release
...
juce_linux_NativeCode.cpp
In file included from ../../src/native/juce_linux_NativeCode.cpp:106:
../../src/native/linux/juce_linux_Audio.cpp: In member function ‘virtual juce::AudioIODevice* juce::ALSAAudioIODeviceType::createDevice(const juce::String&, const juce::String&)’:
../../src/native/linux/juce_linux_Audio.cpp:954: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator>=’
make[1]: *** [../../bin/intermediate_linux/Release/juce_linux_NativeCode.o] Error 1
make: *** [JUCE] Error 2


That I fixed changing a line in function
'AudioIODevice* createDevice'
(juce_linux_Audio.cpp:954 , juce_amalgamated.cpp:258011)
Code: Select all
        if (index >= 0)

to
Code: Select all
        if (inputIndex>=0 && outputIndex>=0)


Is it a correct fix?
mat
m4tte
JUCE Weenie
 
Posts: 2
Joined: Sun Nov 15, 2009 2:39 pm
Location: Italy

Postby jules » Sun Nov 15, 2009 9:30 pm

Yes, that's the same thing. I checked in a corrected version already, so just have a look at that.
User avatar
jules
Fearless Leader
 
Posts: 17204
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK

Re: Error compiling juce_amalgamated on Ubuntu-9.10

Postby _Nkey_ » Sat Jan 23, 2010 10:53 am

Hello.

Also, it is impossible to compile last juce_amalgamated on linux with USE_XSHM = 0 (need some more @ifdefs).
Thanks.
_Nkey_
JUCE Obsessive
 
Posts: 53
Joined: Mon Jun 16, 2008 5:06 pm

Re: Error compiling juce_amalgamated on Ubuntu-9.10

Postby jules » Sat Jan 23, 2010 12:15 pm

I think I already sorted that out, (though might not have checked it in yet)
User avatar
jules
Fearless Leader
 
Posts: 17204
Joined: Mon Sep 06, 2004 9:03 am
Location: London, UK


Return to Linux

Who is online

Users browsing this forum: No registered users and 0 guests