Android build broken on windows

fyi: tried compiling vanilla juce gui project for android and encountered the build errors below. Any idea whether these are known issues?

 

1. error in juce_PNGLoader.cpp

this is fixed when I add a  #include <setjmp.h>



In file included from jni/../../../JuceLibraryCode/modules/juce_graphics/juce_graphics.cpp:118:0:
jni/../../../JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp: In function 'void juce::PNGHelpers::errorCallback(juce::pnglibNamespace::png_structp, juce::pnglibNames
nst_charp)':
jni/../../../JuceLibraryCode/modules/juce_graphics/image_formats/juce_PNGLoader.cpp:320:20: error: 'jmp_buf' was not declared in this scope
         longjmp (*(jmp_buf*) p->error_ptr, 1);

        

 

2. error in libFLAC/cpu.c.  This I could not find a workaround for, other than disabling Flac support in introjucer

 


In file included from jni/../../../JuceLibraryCode/modules/juce_audio_formats/codecs/juce_FlacAudioFormat.cpp:73:0,
                 from jni/../../../JuceLibraryCode/modules/juce_audio_formats/juce_audio_formats.cpp:110:
jni/../../../JuceLibraryCode/modules/juce_audio_formats/codecs/flac/libFLAC/cpu.c: In function 'void juce::FlacNamespace::FLAC__cpu_info(juce::FlacNamespace::FLAC__CPUInfo*)':
jni/../../../JuceLibraryCode/modules/juce_audio_formats/codecs/flac/libFLAC/cpu.c:247:36: error: '__sigemptyset' was not declared in this scope
   __sigemptyset(&sigill_sse.sa_mask);


note:

I'm using a recent tip (one day old)

I'm building on Windows 8.1, using most recent android SDK/NDK r10e (32-bit)

 

Seeing the same thing here. Thanks for the quick fix,  mucoder

 

 

This should be fixed on the latest tip now. Can you confirm that this is working for you?

yup, tried it and is building fine now.  Thx!

I fixed this by disabling FLAC audio format.